Creates, edits, reviews, and reads Word documents (.docx) with support for tracked changes, comments, footnotes, tables, images, headers, and page setup. Includes a redlining workflow for legal, academic, and business documents.
Ships in document-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You already know Word's features. This skill adds what you can't see from the code: a library that makes tracked changes and comments correctly, validation that catches untracked edits, a way to see pages as a reader will, and the docx-js and OOXML behaviours that silently produce broken files.
<skill> is the directory containing this file. Run bundled scripts by absolute path from the user's working directory, so relative paths to their files keep working:
uv run <skill>/ooxml/scripts/unpack.py contract.docx unpacked
Run Python you write with its dependencies declared, either uv run --with defusedxml script.py or a PEP 723 header. Run Node scripts as NODE_PATH=<skill>/node_modules node build.js; if <skill>/node_modules is missing, run npm install in <skill> once. Rendering pages needs LibreOffice (soffice) and poppler (pdftoppm); reading needs pandoc.
| Task | Use |
|---|---|
| Read the text | pandoc --track-changes=all file.docx -t markdown. It also shows tracked changes and comments. Use accept or reject instead of all to see either outcome. |
| Create a document | docx-js: read docx-js.md first. It covers the page size, style and image behaviours that otherwise break the file. |
| Edit someone else's document, or anything legal, academic, business or official | Tracked changes, so every edit is reviewable: the redlining workflow below. |
| Small edits to a document you created in this session | The same library, untracked. Make the edits, then call doc.save(require_tracking=False), which still checks the schema. For larger changes, regenerate the file with docx-js. |
| Comments, metadata, embedded media, raw structure | Unpack and read the XML; ooxml.md has the patterns. |
uv run <skill>/ooxml/scripts/unpack.py contract.docx unpacked prints a suggested RSID. Pass it as Document(..., rsid=...) so the session's edits share one revision ID.Document library. tracked_replace(old, new) handles most edits: it finds text across runs and marks only the words that differ. Work in batches of related changes, a few to a dozen per script, so a failure is easy to locate. Grep unpacked/word/document.xml again before each batch, because line numbers move after every save.doc.save() refuses to write a document with untracked edits, or with XML that breaks the schema, and prints what differs. Fix the script rather than skipping validation.uv run <skill>/ooxml/scripts/pack.py unpacked reviewed.docx repacks the file and checks that LibreOffice can open it.pandoc --track-changes=all reviewed.docx -t markdown and confirm every intended change appears and nothing else changed. Then check the output (below).To accept or reject existing changes, call doc.accept_all_changes() or doc.reject_all_changes() before making edits of your own.
uv run <skill>/ooxml/scripts/validate.py reviewed.docx --original contract.docx checks the schema, and that every change from the original is tracked; doc.save() runs the same checks. Pass --author NAME to let that author's earlier insertions be edited directly. For a document generated from scratch, leave out --original to check the schema alone.uv run <skill>/ooxml/scripts/render.py reviewed.docx pages prints one PNG path per page (--pages 2-4 for a range). Read them before delivering a document you created or restructured. LibreOffice renders a docx-js table of contents empty; Word fills it in when it opens the file.<w:del> inside it. Never edit their text directly.docx-js.md (opens in a new tab)ooxml.md (opens in a new tab)ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd (opens in a new tab)ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd (opens in a new tab)ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd (opens in a new tab)ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd (opens in a new tab)ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd (opens in a new tab)ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd (opens in a new tab)ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd (opens in a new tab)ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd (opens in a new tab)ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd (opens in a new tab)ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd (opens in a new tab)ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd (opens in a new tab)ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd (opens in a new tab)ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd (opens in a new tab)ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd (opens in a new tab)ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd (opens in a new tab)ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd (opens in a new tab)ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd (opens in a new tab)ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/document-skills:docxfrom document-skills
npx claudepluginhub appautomaton/document-skills --plugin document-skills4 skills in this plugin
/pdfRead, create, fill, and transform PDF files. Covers extracting text and tables, OCR of scanned pages, filling fillable and flat forms, and flattening, merging, splitting, rotating, stamping and encrypting. Use when a task takes a .pdf as input or must produce one./pptxCreate, edit, and analyze PowerPoint decks (.pptx). Build new decks from HTML slides, fill an existing template, duplicate or reorder slides, edit slide XML, and read or write speaker notes. Use when a task produces or modifies a .pptx file, or needs text, layout, or notes read from one./xlsxCreate, edit, analyze, and recalculate Excel workbooks (.xlsx, .xlsm) with live formulas, formatting, and charts. Use when a task produces or modifies a spreadsheet file, turns CSV/TSV data into one, or needs values, formulas, or formatting read from one.Other plugins' skills for the same job