officecli-docx

officecli-docx is a skill for Claude Code, Codex from Team-Commonly/commonly. It costs 114 tokens per session (15,037 once invoked), scanned C, a copy of officecli-docx, Apache-2.0.

A skill for working with DOCX files, the standard document format used by Microsoft Word. It covers creating, reading, editing, and reviewing documents, including comments and tracked changes.

In plain words
What is it for?
Use it whenever a Word document is an input or output, such as for reports, letters, proposals, or edits to an existing DOCX.
Why use it?
It provides a consistent way to handle Word documents and encourages checking the available command options before making uncertain changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it whenever a Word document is an input or output, such as for reports, letters, proposals, or edits to an existing DOCX.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/team-commonly/commonly/officecli-docx
About the project

Commonly is a self-hosted collaborative workspace where people work with multiple AI agents, each retaining its own name, memory, skills, and workstation. Teams use it to assign and refine real work across different agent runtimes, and the catalogue entries supply agents, skills, and instructions for use in those rooms.

Team-Commonly/commonly · 1,363 stars · on GitHub · commonly.me

Install

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.

Any agent
npx skills add Team-Commonly/commonly --skill officecli-docx
Clone the repo
git clone --depth 1 https://github.com/Team-Commonly/commonly

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for officecli-docx

README.md
[![agentmods](https://agentmods.dev/badge/skills/team-commonly/commonly/officecli-docx/github.svg)](https://agentmods.dev/skills/team-commonly/commonly/officecli-docx)
Your own site
<a href="https://agentmods.dev/skills/team-commonly/commonly/officecli-docx"><img src="https://agentmods.dev/badge/skills/team-commonly/commonly/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.

agentmods 80×15 button for officecli-docx

Your own site · 80×15
<a href="https://agentmods.dev/skills/team-commonly/commonly/officecli-docx"><img src="https://agentmods.dev/badge/skills/team-commonly/commonly/officecli-docx.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 15,037 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 98% copy Near-identical to another mod in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00114 $0.15037
Opus 5.5 $0.00046 $0.06015
Sonnet 5.5 $0.00023 $0.03007
Haiku 4.5 $0.00011 $0.01504

Measured 1mo ago against content hash 838bd67f8da3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/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://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.sh | bash`
Origin

This is a copy

98% identical to officecli-docx — 26 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

backend/commonly-bundled-skills/officecli/skills/officecli-docx/SKILL.md · 662 lines

How it starts

The opening of the file, as written. The whole thing — 662 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://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.sh | bash
  • Windows (PowerShell): irm https://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/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. Special-topic mini-sections below end with an explicit pointer back to help.

Mental Model & Inheritance

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.

Shell & Execution Discipline

Shell quoting (zsh / bash). docx paths contain [], some prop values contain $. Both are shell metacharacters. Rules:

  • ALWAYS quote element paths: "/body/p[1]", not /body/p[1].
  • Use single quotes for any prop value containing $: --prop text='$50M'. The rule holds at any length — a 200-word body paragraph containing $50M needs the whole value inside single quotes, same as a three-word heading: --prop text='In Q4 we hit $50M ARR, up 18% YoY — the strongest quarter since inception...'. Mixing '... $var ...' and "... $50 ..." on long strings is where shell-leak silently strips $50 → nothing.
  • NEVER hand-write \$, \t, \n inside executable examples. The CLI does not interpret backslash escapes; they will land in your file as literal characters. In a cell / paragraph text, a real newline goes through the JSON layer (batch heredoc with "\n" inside the JSON string).

Read the full file on GitHub · 662 lines

Changes

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.

  1. 1mo ago First seen · 662 lines · 114 tokens per session scan C 838bd67f8da3

Subscribe to this mod's changes

officecli-docx is a skill published in the GitHub repository Team-Commonly/commonly (1,363 stars, last pushed today), licensed Apache-2.0. It adds 114 tokens to every session and 15,037 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). It is 98% identical to officecli-docx, differing in 26 lines, and is treated as a copy.