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

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

Good fit Use it to preview and extract document content, replace or insert paragraphs, create simple documents, or script changes to structured reports, letters, and templates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/matingai/crab/docx-edit
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 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/github.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/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 docx-edit

Your own site · 80×15
<a href="https://agentmods.dev/skills/matingai/crab/docx-edit"><img src="https://agentmods.dev/badge/skills/matingai/crab/docx-edit.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00031 $0.00415
Opus 5.5 $0.00012 $0.00166
Sonnet 5.5 $0.00006 $0.00083
Haiku 4.5 $0.00003 $0.00042

Measured 1mo ago against content hash edd17acced06, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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. 1mo 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 4mo ago), licensed MIT. It adds 31 tokens to every session and 415 once invoked, about $0.0001 per session on Opus 5.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

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

docx-draft

Convert Word documents to structured markdown for LLM-assisted editing, then convert back to Word with preserved formatting. Make sure to use this whenever the user wants to work on, revise, draft, fill in, or collaboratively edit a .docx and then produce a final .docx again. Prefer this over markitdown or…

valtterimelkko/agent-workflow-skills · 82 tokens

docx-manipulation

Create, edit, and manipulate Word documents programmatically using python-docx.

claude-office-skills/skills · 20 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