OfficeCLI is a standalone command-line Office suite that lets AI agents read, edit, render, and automate Word, Excel, and PowerPoint files without requiring Microsoft Office. Developers and other users employ it to create and inspect documents through commands, with HTML or PNG rendering supporting visual review. The catalogue skills teach coding agents how to install and use OfficeCLI.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add iOfficeAI/OfficeCLI --skill officecli-docxgit clone --depth 1 https://github.com/iOfficeAI/OfficeCLIWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/iofficeai/officecli/officecli-docx)<a href="https://agentmods.dev/skills/iofficeai/officecli/officecli-docx"><img src="https://agentmods.dev/badge/skills/iofficeai/officecli/officecli-docx/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/iofficeai/officecli/officecli-docx"><img src="https://agentmods.dev/badge/skills/iofficeai/officecli/officecli-docx.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Supply Chain · line 12 Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.Fix: Avoid downloading and executing remote scripts. Use trusted packages from PyPI/npm. If remote fetch is required, verify checksums and use HTTPS.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00114 | $0.11723 |
| Opus 5.5 | $0.00046 | $0.04689 |
| Sonnet 5.5 | $0.00023 | $0.02345 |
| Haiku 4.5 | $0.00011 | $0.01172 |
Grade C, and why
officecli-docx scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
- **macOS / Linux**: `curl -fsSL https://d.officecli.ai/install.sh | bash` Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- **macOS / Linux**: `curl -fsSL https://d.officecli.ai/install.sh | bash` How it starts
The opening of the file, as written. The whole thing — 563 lines — stays where its author put it; the contents beside it link to each section on GitHub.
OfficeCLI DOCX Skill
Setup
If officecli is missing:
- macOS / Linux:
curl -fsSL https://d.officecli.ai/install.sh | bash - Windows (PowerShell):
irm https://d.officecli.ai/install.ps1 | iex
Verify with officecli --version (open a new terminal if PATH hasn't picked up). If install fails, download a binary from https://github.com/iOfficeAI/OfficeCLI/releases.
⚠️ Help-First Rule
This skill teaches what good docx looks like, not every command flag. When a property name, enum value, or alias is uncertain, consult help BEFORE guessing.
officecli help docx # List all docx elements
officecli help docx <element> # Full element schema (e.g. paragraph, field, numbering, watermark, toc)
officecli help docx <verb> <element> # Verb-scoped (e.g. add field, set section)
officecli help docx <element> --json # Machine-readable schema
Help is pinned to the installed CLI version. When this skill and help disagree, help is authoritative.
Mental Model
A .docx is a ZIP of XML parts (document.xml, styles.xml, numbering.xml, header*.xml, footer*.xml, comments.xml, …). Everything the user sees — headings, tables, page numbers, TOC, tracked changes — is XML inside that ZIP. officecli gives you a semantic-path API (/body/p[1]/r[2]) over it, so you almost never touch raw XML; when you must, use raw-set (see the XML appendix).
Shell & Execution Discipline
docx paths contain []; some prop values contain $. Both are shell metacharacters. Escaping happens at three layers — keep them separate.
- Shell. ALWAYS quote element paths:
"/body/p[1]", not/body/p[1](zsh/bash glob[N]). Single-quote any value containing$:--prop text='$50M'— at any length, the whole value inside one pair of single quotes. Unquoted$50Mis stripped toM; mixing'…$var…'and"…$50…"on one long string is where the$50silently vanishes. - CLI (
text=). The two-char escapes\n,\vand\tARE interpreted in--prop text=(same rule as pptx):\nstarts a new paragraph (each new<w:p>inherits the source paragraph's style),\vis a soft line break within one paragraph (<w:br/>),\ta<w:tab/>. Double the backslash (\\n) for a literal backslash-n (rarely wanted). Row-level table shortcutsc1…cNare the exception: there\nis a<w:br/>line break inside the cell (see recipe (e)). - JSON (batch). Batch does NOT interpret the two-char escapes — a JSON
"\\n"or"\\v"lands as literal text. Use JSON escapes for the real characters:"\n"(a newline) starts a new paragraph,"\u000b"is a soft line break.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed a5a294fc04ec
- 2mo ago Changed 4dbeacba4bd1
- 3mo ago First seen · 563 lines · 114 tokens per session scan C 1da56ed53a30
officecli-docx is a skill published in the GitHub repository iOfficeAI/OfficeCLI (33,715 stars, last pushed yesterday), licensed Apache-2.0. It adds 114 tokens to every session and 11,723 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
officecli-docx compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| officecli-docxiOfficeAI/OfficeCLI | Skill | 34k | yesterday | Apache-2.0 | C | 114 | Claude Code, Codex |
| consulting-pdf-from-youtubedavidtoby/agent-skills | Skill | 11 | 12d ago | MIT | A | 76 | Claude Code, Codex |
| lark-sheetsdavidtoby/agent-skills | Skill | 11 | 12d ago | MIT | A | 259 | Claude Code, Codex |
| chinese-pdf-reportdavidtoby/agent-skills | Skill | 11 | 12d ago | MIT | A | 80 | Claude Code, Codex |
| lark-minutesdavidtoby/agent-skills | Skill | 11 | 12d ago | MIT | A | 133 | Claude Code, Codex |
| youtube-bilingual-transcript-reportdavidtoby/agent-skills | Skill | 11 | 12d ago | MIT | A | 57 | Claude Code, Codex |
| lark-docdavidtoby/agent-skills | Skill | 11 | 12d ago | MIT | A | 162 | Claude Code, Codex |