by kklimuk
Let AI agents edit Word documents without breaking them: fill in forms, update tables, restyle, write reports, and redline with tracked changes and comments.
# Add to your Claude Code skills
git clone https://github.com/kklimuk/docx-clidocx-cli is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by kklimuk. Let AI agents edit Word documents without breaking them: fill in forms, update tables, restyle, write reports, and redline with tracked changes and comments. It has 256 GitHub stars.
docx-cli's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/kklimuk/docx-cli" and add it to your Claude Code skills directory (see the Installation section above).
docx-cli is primarily written in TypeScript. It is open-source under kklimuk on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh docx-cli against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Let your AI agent do real work in your Word documents. Fill in contracts and forms, update tables and figures, restyle a résumé, write a report from scratch, or review a draft with tracked changes and comments. When you open the file in Word, it still looks like yours.
docx-cli makes the work familiar by standardizing most operations as creating, updating, deleting, or replacing Markdown.In short: on our six-task benchmark, docx-cli got the same results as Anthropic's docx skill (the skill Claude uses for Word files) in 27% less time, with 22% fewer input tokens and 41% fewer output tokens using Haiku 5.5. Compared to OfficeCLI, it was roughly 2x faster at half of the tokens, while finishing every task that OfficeCLI got wrong.
| Haiku 5.5 | docx-cli 0.27.0 | Anthropic docx skill | OfficeCLI 1.0.156 |
|---|---|---|---|
| Tasks solved (of 6) | 6.0 | 6.0 | 4.7 |
| Every run solved (all 3) | 6/6 | 6/6 | 4/6 |
| Input tokens (cache-weighted) | 902k | 1.15M (+27%) | 1.92M (+113%) |
| Output tokens | 32k | 54k (+70%) | 63k (+97%) |
| Wall-clock, all 6 tasks | 914 s | 1,254 s (+37%) | 1,834 s (+101%) |
| Tool calls | 98 | 124 (+26%) | 165 (+69%) |
What to know about this benchmark. We wrote docx-cli, the six tasks, and the grading rubrics, and these tasks are also the regression suite docx-cli is developed against. It's three runs per tool on one model. The judge knew which tool produced each result; competitor runs carried an instruction to grade the rendered pages and not penalize a different internal approach. Competitors were pinned (Anthropic skill at anthropics/skills@dbd4588, OfficeCLI 1.0.156 by SHA-256). On older models the correctness gap was large (Haiku 4.5, July 2026: 5.0/6 vs 0.7/6 for the default skill); on current models it has closed. Per-task numbers, every caveat, and how to reproduce: benchmarks/2026-10-10.
Paste this messages into your agent of choice:
Set up docx-cli (https://github.com/kklimuk/docx-cli) so you can edit Word documents for me.
1. Install the skill for the agent you are:
- Claude Code: claude plugin marketplace add kklimuk/docx-cli && claude plugin install docx-cli@docx-cli
- Codex: codex plugin marketplace add kklimuk/docx-cli (the skill loads automatically; nothing else to install)
- Any other agent: npx skills add kklimuk/docx-cli -g -y
2. Install the `docx` program:
- If Bun is installed: bun add -g bun-docx
- Otherwise, from an empty temporary directory:
curl -fsSLO https://github.com/kklimuk/docx-cli/releases/latest/download/install.sh
curl -fsSLO https://github.com/kklimuk/docx-cli/releases/latest/download/SHA256SUMS
shasum -a 256 -c SHA256SUMS --ignore-missing (or: sha256sum -c SHA256SUMS --ignore-missing)
Only if that prints "install.sh: OK", run: REQUIRE_CHECKSUM=1 sh install.sh
- Windows: download docx-windows-x64.exe from https://github.com/kklimuk/docx-cli/releases/latest,
compare `Get-FileHash docx-windows-x64.exe` with its line in SHA256SUMS, rename it to docx.exe,
and put it on PATH.
3. Run `docx --version`. If it isn't found, add ~/.local/bin to PATH and try again.
4. Tell me it's ready. (In Claude Code, the skill is available from the next session.)
Note: the npm package is `bun-docx`. The npm packages named `docx` and `docx-cli` are unrelated.
Any agent (skills.sh):
npx skills add kklimuk/docx-cli
Claude Code:
/plugin marketplace add kklimuk/docx-cli
/plugin install docx-cli@docx-cli
Codex (the plugin's skills auto-discover):
codex plugin marketplace add kklimuk/docx-cli
Pi (the pi manifest in package.json pulls in the skill), then invoke /skill:docx-cli:
pi install git:github.com/kklimuk/docx-cli # global; add -l for a project (team-shared) install
Manual: copy skills/docx-cli/ into your agent's skills directory (e.g. ~/.claude/skills/ or the cross-tool ~/.agents/skills/). If docx isn't installed, the skill tells the agent to run scripts/bootstrap.sh, which installs a pinned, checksum-verified binary (and, run again later, updates one that's behind).
The skill is thin on purpose: it teaches the workflows, then defers to docx <command> --help, which ships with the program, so it can't go stale. docx info skill prints the canonical SKILL.md for the installed version.
On our benchmark docx-cli solved every task and was the cheapest and fastest of the three tools above. Here's how it compares with each alternative.
track-changes apply --accept rev1 --reject rev0. It's one program instead of Python, Node, pandoc, and LibreOffice, and it's MIT-licensed, while the skill's license limits it to Anthropic's services; docx-cli runs under Codex or any other agent. The skill was cheaper on our one from-scratch document, so if you mostly write new documents with Claude, it's a reasonable choice.create --from draft.md does that too), but editing an existing file means regenerating it from Markdown, which drops what Markdown can't hold. On our test fixtures (tests/fixtures/text-boxes.docx and sections.docx), pandoc in.docx -o in.md && pandoc in.md --reference-doc=in.docx -o out.docx