Add ODT skill — OpenDocument text creation and template filling#486
Open
GitHubNewbie0 wants to merge 4 commits intoanthropics:mainfrom
Open
Add ODT skill — OpenDocument text creation and template filling#486GitHubNewbie0 wants to merge 4 commits intoanthropics:mainfrom
GitHubNewbie0 wants to merge 4 commits intoanthropics:mainfrom
Conversation
Author
|
Hi @klazuka — I submitted this PR a while back adding an ODF/ODT skill. It fills the gap between the existing docx, pdf, pptx, and xlsx document skills — ODF is the ISO standard format required by 20+ governments. Would appreciate a look when you have a chance, or guidance on whether community skill PRs are being reviewed. Thank you very much, I appreciate!!! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add ODT skill — OpenDocument text creation and template filling
What this adds
A new
skills/odt/skill enabling Claude to create and fill OpenDocument Format text files (.odt) using odf-kit, a Node.js library built specifically for this purpose.Why
The current document skills cover docx, pdf, pptx, and xlsx — but not odt. ODT is:
Without this skill, Claude falls back to Python workarounds (odfpy) when users request .odt files — producing correct output but using an ad-hoc approach rather than a purpose-built tool.
What odf-kit provides
Two modes of document generation:
Programmatic creation — Builder API for headings, paragraphs, formatted text, tables (with cell merging, borders, backgrounds), bullet/numbered lists with nesting, images, hyperlinks, bookmarks, tab stops, page layout, headers/footers, page breaks. Fluent method chaining throughout.
Template filling — Load a .odt template created in LibreOffice with
{placeholder}syntax, fill with JSON data. Supports loops, conditionals, dot notation for nested data, and automatic healing of XML fragments (LibreOffice splits placeholders across multiple XML spans — odf-kit reassembles them before replacement).Library details:
Environment requirement
odf-kit would need to be added to the pre-installed global npm packages in Claude's environment, matching the pattern used by
docxandpptxgenjs:SKILL.md structure
Follows the established pattern of the docx skill:
Checklist
SKILL.mdwith YAML frontmatter (name, description, license)