Home / chancegraff / rules-for-claude · skills/synced/b274f0e7-ba7f-4b80-9128-3c20a62a5a94_fb1313aa-c023-436b-bd7f-af7178660a2a/docx/SKILL.md · GitHub
docx skillA
docx is agent-read markdown (skill) from chancegraff/rules-for-claude: Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx) or Word templates (.dotx). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, find-and-replace in Word files, working with tracked chan.
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# DOCX creation, editing, and analysis
A `.docx` is a ZIP archive of XML files. Choose your approach by task:
| Task | Approach |
|---|---|
| **Create** a new document | Write a `docx` (npm) script — see gotchas below |
| **Edit** an existing document | `unzip` → edit `word/document.xml` → `zip` (docx-js cannot open existing files) |
| **Read** content | `pandoc -t markdown file.docx` |
> Script paths below are relative to this skill's directory.
## Creating with docx-js — gotchas
`docx` is preinstalled — do not run `npm install` first; write the script and `require('docx')` directly. Only if that require fails: `npm install docx`. The model knows the API; these are the footguns:
- **Page size defaults to A4.** For US Letter set `page: { size: { width: 12240, height: 15840 } }` (DXA; 1440 = 1″).
- **Landscape:** pass portrait dimensions and `orientation: PageOrientation.LANDSCAPE` — docx-js swaps width/height internally.
- **Tables need dual widths:** set `columnWidths` on the table AND `width` on every cell, both in `WidthType.DXA` (PERCENTAGE breaks in Google Docs). Column widths must sum to the table width.
…
Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
GET https://markdownregistry.com/api/v1/artifacts/art_hznpzm7ubkndiz3p
GET https://markdownregistry.com/api/v1/resolve?ref=chancegraff/rules-for-claude/docx
GET https://markdownregistry.com/api/v1/blob/62a566a86aea05305124e8c4b2632edc49fa70e61a9be5d3cdcbdffdc7d4ad50
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
chancegraff/rules-for-claude · skills/incident/SKILL.md · The process for a caught rule break. Open an incident folder, name the cause, record the fix and the check, close it…
chancegraff/rules-for-claude · skills/jira-ticket-workflow/SKILL.md · End-to-end Jira ticket workflow that manages a cross-functional team of agents to plan, implement, review, and ship…
chancegraff/rules-for-claude · skills/pr-review-response/SKILL.md · End-to-end workflow for responding to PR review feedback. Reads all review comments and requested changes on the…
chancegraff/rules-for-claude · skills/synced/b274f0e7-ba7f-4b80-9128-3c20a62a5a94_fb1313aa-c023-436b-bd7f-af7178660a2a/attentive-brand-artifacts/SKILL.md · Use when creating or editing Attentive-branded artifacts, React components, HTML pages, Sandpack themes, decks, docs…
chancegraff/rules-for-claude · skills/synced/b274f0e7-ba7f-4b80-9128-3c20a62a5a94_fb1313aa-c023-436b-bd7f-af7178660a2a/attentive-pixel-perfect-slides/SKILL.md · Use when creating, converting, editing, or QAing Attentive PowerPoint decks with the canonical 2026 template, including…
chancegraff/rules-for-claude · skills/synced/b274f0e7-ba7f-4b80-9128-3c20a62a5a94_fb1313aa-c023-436b-bd7f-af7178660a2a/import-memory/SKILL.md · Import a memory export from another AI assistant into Claude's memory — conversationally, additively, and with the…
chancegraff/rules-for-claude · skills/synced/b274f0e7-ba7f-4b80-9128-3c20a62a5a94_fb1313aa-c023-436b-bd7f-af7178660a2a/morning/SKILL.md · Render the user's morning brief as a styled HTML artifact, or set it up as a recurring weekday task. Use only when the…
chancegraff/rules-for-claude · skills/synced/b274f0e7-ba7f-4b80-9128-3c20a62a5a94_fb1313aa-c023-436b-bd7f-af7178660a2a/pdf/SKILL.md · Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables…
chancegraff/rules-for-claude · skills/synced/b274f0e7-ba7f-4b80-9128-3c20a62a5a94_fb1313aa-c023-436b-bd7f-af7178660a2a/pptx/SKILL.md · Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes…
chancegraff/rules-for-claude · skills/synced/b274f0e7-ba7f-4b80-9128-3c20a62a5a94_fb1313aa-c023-436b-bd7f-af7178660a2a/skill-creator/SKILL.md · Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a…
anthropics/skills · skills/docx/SKILL.md · Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word…
k-dense-ai/scientific-agent-skills · skills/docx/SKILL.md · Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word…
eigent-ai/eigent · resources/example-skills/docx/SKILL.md · Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers…
thinkinaixyz/deepchat · resources/skills/docx/SKILL.md · Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting…
davepoon/buildwithclaude · plugins/all-skills/skills/docx/SKILL.md · Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting…
ginlix-ai/langalpha · plugins/langalpha_deliverables/skills/docx/SKILL.md · Word documents a human will review and edit: build with python-docx, edit an existing file in place with tracked…
fcakyon/claude-codex-settings · plugins/anthropic-office-skills/skills/docx/SKILL.md · Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word…