spinabot/brigade/docx
Claude Code and agent skill by spinabot/brigade
- community
Checking that the SKILL.md file is still in the repository.
Create and edit Microsoft Word (.docx) documents to a professional standard — reports, proposals, contracts, letters, memos — with custom styles, multi-level lists, styled/merged tables, headers/footers, table of contents, hyperlinks, footnotes, tracked changes and comments. Use when the user asks Brigade to make, write, draft, fill, redline, or edit a Word document or .docx file.
Install
npx vskill@latest install spinabot/brigade/docxSKILL.md
The same SKILL.md was published earlier as spinabot/brigade/docx.
docx — professional Word documents
Pick the lightest path that meets the need. Never declare a document done without opening/validating the result at least once (see Verify).
| Need | Path | |
|---|---|---|
| Simple structured doc (headings, paragraphs, bullets, a basic table, an image) | Path 1 — `make_document` tool | |
| Anything richer (custom styles, numbered/multi-level lists, merged/shaded table cells, headers/footers, TOC, hyperlinks, footnotes, inline bold/italic/color, tracked changes, comments) | Path 2 — script the `docx` library via `brigade exec-node` | |
Fill / redline an EXISTING branded .docx without disturbing its styling | Path 3 — OOXML round-trip | |
| Markdown → branded Word inheriting a corporate template | Path 4 — `pandoc` (optional) |
Path 1 — quick structured doc (make_document tool)
Good for a fast first draft. It is deliberately limited (single-level bullets, string-only tables, no inline formatting). The moment you need more, go to Path 2 — don't fight the schema.
Path 2 — full power: script the docx library
Brigade bundles the `docx` library (dolanmiu/docx). Write a CommonJS script and run it with `brigade exec-node`, which makes Brigade's bundled libraries require()-able from anywhere (no install):
writea filegen.cjs.- Run:
brigade exec-node gen.cjs
The docx library also supports: footnotes (FootnoteReferenceRun + footnotes), comments, tracked changes (InsertedTextRun/DeletedTextRun with author/date), multi-section layouts, page breaks, columns, internal bookmarks, and images inside table cells. Read its API as needed — anything Word can express, this can author.
Path 3 — fill / redline an EXISTING .docx (highest fidelity)
To fill a branded company template or surgically edit a real document without regenerating it (which would drop the theme), use the OOXML round-trip — unzip, edit the XML, rezip. For plain placeholder/text swaps the `edit_document` tool (replace_text / fill_template / append) already does exactly this and is the first choice.
For edits beyond text, script it via brigade exec-node with `fflate`:
Rules for raw OOXML edits:
- Safe: replacing text inside
<w:t>; pointing a run/paragraph at an already-definedstyleId; appending<w:p>/<w:r>that reference existing styles. - Do NOT add a new part (image, hyperlink target, header) by hand — that also needs
[Content_Types].xml+ the matching_rels/*.relsupdated atomically, or Word reports corruption. For those, regenerate with thedocxlibrary instead. - Tracked changes are
<w:ins>/<w:del>as siblings of<w:r>(never inside a run); copy the original<w:rPr>into the change runs; keep edits minimal so an "accept all" yields exactly the intended text. Author yourself as "Brigade".
Path 4 — Markdown → branded Word (optional, needs pandoc)
For long prose where the brand styling lives in a corporate .docx, if pandoc is installed it inherits every style/margin/header:
Detect first; else fall back to Path 2. pandoc is GPL — a separate program shelled out to, never bundled.
Conventions that make output professional
- Page size is explicit — US Letter
12240×15840DXA (1440 DXA = 1"); landscape = portrait dims +orientationflip. - Tables: give both
columnWidths(table) and per-cellwidthin `WidthType.DXA` (PERCENTAGE breaks some viewers), summing to content width;ShadingType.CLEAR(never SOLID → black boxes); add cell margins; never use a table as a horizontal rule (use a paragraph bottom border). - Lists: real numbering config for numbered/multi-level lists; never paste literal "1." / "•" characters.
- Prefer bullets + tables over walls of text; one
TITLE, thenHEADING_1..3with proper outline levels (required for a working TOC). - Use typographic quotes (' ' " ") and en/em dashes.
Verify (required)
After writing, confirm the file exists and is non-trivial. If LibreOffice is available, render to PDF and look at it — fix overflow/placeholder leftovers, then re-verify:
TOC/page-number fields show blank until Word (or a soffice convert) recalculates them — note this to the user if you can't run the convert. Never declare success without at least one look-and-fix pass.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/docx/SKILL.md
Popularity
- Repository stars
- 5,226
- Repository forks
- 51
- 7-day trend score
- 43
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/spinabot/brigade/docx)