The document toolchain in workflows: Anthropic's vendored Office skills plus
the project's own repair/build/render utilities. These are not a separate
plugin — Claude Code discovers skills at skills/<name>/SKILL.md, so they live
flat in skills/ and are grouped here by convention (this index), not by
directory. Think of it as one pipeline with decoupled stages:
EXTRACT → CREATE/EDIT → REPAIR → BUILD → RENDER → VERIFY
Each stage is an independent concern — you can run any one on any .docx
without the others. The deliberate decoupling (2026-06-23): footnote repair,
OOXML package repair, and PDF export are three separate things that the
law-review-docx build happens to chain.
| Skill / tool | Role |
|---|---|
look-at |
Visual/semantic read of PDFs, images, charts, screenshots |
pdf (vendored) |
PDF text/table extraction, form fill, page ops |
scripts/prose_extract.py |
Pull clean prose from .docx/.md for analysis |
| Skill | Role |
|---|---|
docx |
Word doc creation, editing, tracked changes, comments |
pptx |
Presentation creation/editing, layouts, speaker notes |
xlsx |
Spreadsheet creation/editing, formulas, recalc |
Vendored from anthropics/skills under
external/anthropic-skills/. They also ship the OOXML validator + schemas
(external/anthropic-skills/skills/docx/ooxml/) the repair stage relies on.
| Skill / tool | Fixes |
|---|---|
docx-repair (skill) |
Front door for both repair tracks. Track A: OOXML package corruption (composes docx_repair.py). Track B: footnote structure + NOTEREF cross-refs after Google Docs / Word Online round-trips. |
scripts/docx_repair.py |
Track A library — Google Docs exports' case-broken customXML part paths, evenAndOddHeaders phantom pages. Case-normalize → docbuilder reserialize fallback. Importable (repair_docx, reserialize_docx, opc_integrity_issues) + CLI. Lives at plugin root because doc_render.py composes it as a render preflight. |
The two tracks are distinct concerns under one front door — package wiring (never touches content) vs. footnote markup. A file can need either, both, or neither.
| Skill | Role |
|---|---|
law-review-docx |
Markdown/legal draft → law-review-styled Word doc (pandoc + template; chains footnote repair, NOTEREF, widow control). Footnote/Bluebook citations, small caps, TOC. |
law-econ-docx |
Markdown → law-and-economics Word manuscript for JLE / JLS / JLEO / ALER (pandoc + Latin Modern template; citeproc author-date + reference list, double spaced, numbered subheads). Same machinery as law-review-docx, opposite citation model — pick by discipline, not by file type. |
| Skill / tool | Role |
|---|---|
docx-render |
The faithful .docx→PDF path (Word's engine, incl. from background jobs) |
pptx-render |
.pptx→PDF/PNG |
scripts/doc_render.py |
Shared converter: Word > LibreOffice > x2t by fidelity, each with its fixes. Word path composes docx_repair as a preflight so a Google export "just renders." |
| Skill | Role |
|---|---|
visual-verify |
Render-and-review of visual output (slides, docs, charts) |
doc_render.py— the three-engine converter (importsdocx_repair).docx_repair.py— OOXML package repair (no deps beyond stdlib; lazy-importsdoc_render._run_docbuilderfor the reserialize fallback).x2t_kern.py— render-time GPOS/kern injection for x2t output.
Skills reach these via sys.path.insert(0, <plugin_root>/scripts). Keeping them
in one scripts/ dir is why the group stays a single plugin: relocating a skill
into a sub-plugin would break those relative imports.
A marketplace can host multiple plugins, so a sibling documents plugin (in
this repo's marketplace.json) is the idiomatic "plugin within the plugin" if
independent install/versioning is ever wanted. The migration cost is relocating
these skills with scripts/doc_render.py + scripts/docx_repair.py and
re-pointing the shared-script imports. Until then, this index is the group.