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

Read the whole file at its exact version.

How to install

Latest version
mdr add chancegraff/rules-for-claude/docx@git:20260921.64add91
Exact content
mdr add chancegraff/rules-for-claude/docx@sha256:62a566a86aea0530

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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_hznpzm7ubkndiz3p.svg)](https://markdownregistry.com/a/art_hznpzm7ubkndiz3p)

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260921.64add91 latest2026-09-21 64add91 7,090 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (7090 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

chancegraff/rules-for-claude · 4 stars · license none · pushed 2026-09-21 · branch main

API

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.

More from chancegraff/rules-for-claude

CLAUDE.md claude
chancegraff/rules-for-claude · CLAUDE.md
git:20260921.64add91 · audit A · 4 stars
archify skill
chancegraff/rules-for-claude · skills/archify/SKILL.md · Create polished, validated architecture, workflow, sequence, data-flow, and lifecycle/state diagrams as explorable…
v2.17 · audit A · 4 stars
incident skill
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…
git:20260921.64add91 · audit A · 4 stars
jira-ticket-workflow skill
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…
git:20260910.449f34f · audit A · 4 stars
pr-review-response skill
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…
git:20260910.449f34f · audit A · 4 stars
attentive-brand-artifacts skill
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…
git:20260921.64add91 · audit A · 4 stars
attentive-pixel-perfect-slides skill
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…
git:20260921.64add91 · audit A · 4 stars
import-memory skill
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…
git:20260921.64add91 · audit B · 4 stars
morning skill
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…
git:20260921.64add91 · audit A · 4 stars
pdf skill
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…
git:20260921.64add91 · audit A · 4 stars
pptx skill
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…
git:20260921.64add91 · audit A · 4 stars
skill-creator skill
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…
git:20260921.64add91 · audit A · 4 stars

Every file in chancegraff/rules-for-claude

Other files named docx

docx skill
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…
git:20260717.fa0fa64 · audit A · 177,978 stars
docx skill
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…
v2.1 · audit A · 46,526 stars
docx skill
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…
git:20260226.343050b · audit A · 15,412 stars
docx skill
thinkinaixyz/deepchat · resources/skills/docx/SKILL.md · Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting…
git:20260812.5b18395 · audit A · 6,342 stars
docx skill
davepoon/buildwithclaude · plugins/all-skills/skills/docx/SKILL.md · Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting…
git:20260104.903b22f · audit A · 3,530 stars
docx skill
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…
git:20260921.26f807b · audit A · 1,774 stars
docx skill
axoviq-ai/synthadoc · synthadoc/skills/docx/SKILL.md · Extract text from Microsoft Word documents
v1.0 · audit A · 1,332 stars
docx skill
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…
git:20260720.d26d2c8 · audit A · 1,153 stars

Browse by kind, by grade A, or by owner.