officecli-docx
Skill by iOfficeAI
Teaches an AI assistant to create, read, and edit .docx Word files using the officecli command-line tool. Useful for anyone producing or changing reports, letters, memos, and proposals.
Install officecli-docx
Built from the published package, never by AI.
git clone --depth 1 https://github.com/iOfficeAI/OfficeCLI /tmp/OfficeCLI && mkdir -p ~/.claude/skills && cp -r /tmp/OfficeCLI/skills/officecli-docx ~/.claude/skills/officecli-docxRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/iOfficeAI/OfficeCLI /tmp/OfficeCLI && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/OfficeCLI/skills/officecli-docx ~/.gemini/antigravity-cli/skills/officecli-docxAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill teaches an AI assistant how to create, read, and edit .docx files with the officecli command-line tool. It covers Word documents, reports, letters, memos, and proposals, along with templates, tracked changes, comments, headers and footers, and tables of contents. The skill explains how to install officecli, inspect structure with outline, text, and HTML views, and query elements with semantic paths.
The skill sets quality rules for outputs, such as a clear heading hierarchy, explicit heading sizes, and live page-number fields in footers. It also warns about shell escaping for paths containing brackets and dollar signs, and recommends validating the file and running a visual check before finishing. It is written for people and assistants who need to work with Word files.
Written from the project's SKILL.md and checked against it.
What it can do
- Create and edit Word filesBuilds and changes .docx documents through officecli add, set, and get commands.
- Inspect document structureShows the heading tree, text, and HTML preview with view outline, view text, and view html.
- Query elementsFinds paragraphs and other elements with CSS-like selectors such as paragraph[style=Heading1].
- Headers and footersAdds headers and footers, including live PAGE fields for page numbers.
- Tables of contentsAdds a table of contents when a document has three or more headings.
- Batch editsApplies many paragraph changes in one pass with the batch command.
- Validate filesChecks the .docx file with the validate command after edits.
- Raw XML editsChanges underlying XML parts directly with raw-set when needed.
What you need
- officecli command-line tool installed
- macOS, Linux, or Windows with PowerShell for the install commands
Try asking
- Create a three-page Q4 report in review.docx with headings and a footer page number
- Read the text and heading outline of proposal.docx and summarize it
- Update the memo in draft.docx and check the result with validate
Good to know
- Command help is pinned to the installed officecli version and is authoritative over this skill.
- Fields such as TOC and PAGE carry cached values that may be stale until recalculated in Word.
- Changes are saved to disk only when save or close runs before a non-officecli program reads the file.
Security check
C- Downloads a script from the internet and runs itIn
skills/officecli-docx/SKILL.md:curl -fsSL https://d.officecli.ai/install.sh | bash
Checked automatically: skills/officecli-docx/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md42 KB
Alternatives to officecli-docx
All alternatives →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
officecli-docx: common questions
Does this skill need officecli installed?
Yes. The skill depends on the officecli command-line tool, and the source gives install commands for macOS, Linux, and Windows.
How does the skill add page numbers?
It uses a live PAGE field with --prop field=page instead of literal text, so Word can update the number.
Where should I check exact command options?
Run officecli help docx and related help commands. The source says help is authoritative when it disagrees with the skill.
How do I install officecli-docx?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is officecli-docx free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is officecli-docx safe to use?
It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.
What are alternatives to officecli-docx?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
