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 agentmods add skills/matingai/crab/docx-editnpx skills add matingai/crab --skill docx-editgit clone --depth 1 https://github.com/matingai/crabWrote 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/matingai/crab/docx-edit)<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>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 | $0.00031 | $0.00415 |
| Opus 5 | $0.00015 | $0.00208 |
| Sonnet 5 | $0.00006 | $0.00083 |
| Haiku 4.5 | $0.00003 | $0.00042 |
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.
What it actually says
DOCX Edit
Use this skill when the user wants to inspect, draft, or modify .docx content.
Default Workflow
- Call
office_inspectfirst to confirm the file is.docx. - Use
office_previewfor a quick paragraph snapshot. - Use
office_extract_irbefore planning edits so you can target paragraph ids explicitly. - Use
office_apply_opsfor paragraph-oriented changes:replace_paragraph,insert_paragraph_after,append_paragraph,remove_paragraph. - Use
office_createfor simple new documents. - 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.
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.
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.
- 3d ago First seen · 55 lines · 31 tokens per session scan A edd17acced06
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.
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.
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…
hapo:docx
Create, edit, analyze .docx Word documents. Use for document creation, tracked changes, comments, formatting preservation, text extraction, template modification.
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.
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.
aos-agent-skill-document
面向白皮书、报告、提案、手册和品牌文档的端到端出版工作流,覆盖内容规划、可编辑 DOCX、PDF 转换、元数据清理和逐页视觉验收。.