docx-edit

docx-edit is a skill for Claude Code, Codex from matingai/crab. It costs 31 tokens per session (415 once invoked), scanned A, original, MIT.

A workflow for inspecting, editing, or creating DOCX files, the document format used by Microsoft Word. It starts with paragraph-based tools and uses Python scripts when the document has richer structure.

In plain words
What is it for?
Use it to preview and extract document content, replace or insert paragraphs, create simple documents, or script changes to structured reports, letters, and templates.
Why use it?
It provides a defined way to make document changes while accounting for headings, tables, images, page layout, lists, and formatting complexity.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/matingai/crab/docx-edit
Any agent
npx skills add matingai/crab --skill docx-edit
Clone the repo
git clone --depth 1 https://github.com/matingai/crab

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/matingai/crab/docx-edit.svg)](https://agentmods.dev/skills/matingai/crab/docx-edit)
Your own site
<a href="https://agentmods.dev/skills/matingai/crab/docx-edit"><img src="https://agentmods.dev/badge/skills/matingai/crab/docx-edit.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 415 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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 $0.00031 $0.00415
Opus 5 $0.00015 $0.00208
Sonnet 5 $0.00006 $0.00083
Haiku 4.5 $0.00003 $0.00042

Measured 3d ago against content hash edd17acced06, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

docx-edit scanned grade A with 0 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 3d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

bundled-skills/office/docx-edit/SKILL.md · 55 lines

What it actually says

DOCX Edit

Use this skill when the user wants to inspect, draft, or modify .docx content.

Default Workflow

  1. Call office_inspect first to confirm the file is .docx.
  2. Use office_preview for a quick paragraph snapshot.
  3. Use office_extract_ir before planning edits so you can target paragraph ids explicitly.
  4. Use office_apply_ops for paragraph-oriented changes: replace_paragraph, insert_paragraph_after, append_paragraph, remove_paragraph.
  5. Use office_create for simple new documents.
  6. Save to a new output path unless the user explicitly asks for overwrite semantics.

Escalate To A Python Script

Prefer write_file + execute_code with python-docx when the user expects richer document structure:

  • headings, sections, spacing, or page layout
  • tables, images, headers, footers, or lists
  • polished reports, memos, letters, or templates
  • consistent style application across many paragraphs

When using a script:

  • generate a new output file path
  • keep the document structure explicit and deterministic
  • print the output path and a compact summary of sections, tables, or paragraphs changed
  • state clearly when tracked changes, comments, or exact style fidelity are out of scope

See DOCX.md for a script pattern.

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago First seen · 55 lines · 31 tokens per session scan A edd17acced06

Subscribe to this mod's changes

docx-edit is a skill published in the GitHub repository matingai/crab (4 stars, last pushed 2mo ago), licensed MIT. It adds 31 tokens to every session and 415 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

docx

Read, create, and convert Microsoft Word (.docx) documents — extract text and tables, build reports from markdown/JSON, and export to PDF.

zhixuli0406/DuDuClaw · 34 tokens

docx

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of "Word doc", "word document", ".docx", or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when…

desirecore/market · 203 tokens

hapo:docx

Create, edit, analyze .docx Word documents. Use for document creation, tracked changes, comments, formatting preservation, text extraction, template modification.

haposoft/cafekit · 36 tokens

docx

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Covers polished document output, tracked changes, comments, image updates, XML-level repairs, and safe conversion workflows.

PracticalSwan/agent-skills · 48 tokens

document-converter

Convert Office documents (PPTX, DOCX, XLSX, PDF, HTML, CSV, JSON, XML, images) to Markdown using Microsoft MarkItDown. Provides the agent with conversion strategies for academic and research workflows.

wentorai/Research-Claw · 50 tokens

aos-agent-skill-document

面向白皮书、报告、提案、手册和品牌文档的端到端出版工作流,覆盖内容规划、可编辑 DOCX、PDF 转换、元数据清理和逐页视觉验收。.

axutse/aos-agent-skill-document · 49 tokens