Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 88
  • 34k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-docx

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install officecli-docx in Claude Code

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 →

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.

officecli-docx Install

Add to stack

Loading.