docx
/docx
Create, edit, review, and read Word documents (.docx), including tracked changes (redlines), comments, footnotes, tables, images, headers and page setup. Use when a task produces or modifies a .docx, reviews or redlines one, or needs its text, comments or tracked changes read.
- Author
- appautomaton ↗
- Repository
- document-skills ↗
- Licence
- MIT
- Last repository change
- 15.10.2026
Assessment and security
- Files in this package
- 62
- Scripts
- 13
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 15.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 13 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: ooxml/scripts/pack.py, ooxml/scripts/render.py, ooxml/scripts/soffice.py, ooxml/scripts/unpack.py, ooxml/scripts/validate.py, ooxml/scripts/validation/__init__.py, ooxml/scripts/validation/base.py, ooxml/scripts/validation/docx.py, ooxml/scripts/validation/pptx.py, ooxml/scripts/validation/redlining.py, scripts/__init__.py, scripts/document.py, scripts/utilities.py
What it does and when to use it
Create, edit, review, and read Word documents (.docx), including tracked changes (redlines), comments, footnotes, tables, images, headers and page setup. Use when a task produces or modifies a .docx, reviews or redlines one, or needs its text, comments or tracked changes read.
Original author description
Create, edit, review, and read Word documents (.docx), including tracked changes (redlines), comments, footnotes, tables, images, headers and page setup. Use when a task produces or modifies a .docx, reviews or redlines one, or needs its text, comments or tracked changes read.
How it works
- Running scripts
- Choosing a workflow
- Redlining workflow
- Checking the output
- Pitfalls that fail silently
SKILL.md preview
--- name: docx description: Create, edit, review, and read Word documents (.docx), including tracked changes (redlines), comments, footnotes, tables, images, headers and page setup. Use when a task produces or modifies a .docx, reviews or redlines one, or needs its text, comments or tracked changes read. --- # Word documents 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. ## Running scripts `<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: ```bash 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. ## Choosing a workflow | 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](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](ooxml.md) has the patterns. | ## Redlining workflow 1. **Read.** Convert the document with pandoc (above) and list every change you will make. Locate each one by its surrounding text, never by markdown line numbers, which have no relation to the XML. 2. **Unpack.** `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. 3. **Edit.** Read [ooxml.md](ooxml.md), then write a script that uses the `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. 4. **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. 5. **Pack.** `uv run <skill>/ooxml/scripts/pack.py unpacked reviewed.docx` repacks the file and checks that LibreOffice can open it. 6. **Verify.** Run `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. ## Checking the output 1. **Validate.** `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. 2. **Look.** `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. ## Pitfalls that fail silently - **Partial edits inside other authors' changes.** To remove text inside someone else's insertion, nest your `<w:del>` inside it. Never edit their text directly. - **pandoc as an editor.** It rewrites the whole document and drops formatting, comments and tracked changes. Use it to read, never to produce the deliverable.
Files in this package (62)
- SKILL.md 5 KB
- docx-js.md 10 KB
- ooxml.md 14 KB
- package-lock.json 8 KB
- package.json 1 KB
- ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd 73 KB
- ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd 7 KB
- ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd 50 KB
- ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd 1 KB
- ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd 149 KB
- ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd 1 KB
- ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd 9 KB
- ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd 14 KB
- ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd 82 KB
- ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd 1 KB
- ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd 7 KB
- ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd 6 KB
- ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd 1 KB
- ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd 1 KB
- ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd 3 KB
- ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd 3 KB
- ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd 7 KB
- ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd 23 KB
- ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd 1 KB
- ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd 237 KB
- ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd 26 KB
- ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd 25 KB
- ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd 1 KB
- ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd 6 KB
- ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd 4 KB
- ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd 167 KB
- ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd 5 KB
- ooxml/schemas/ecma/fourth-edition/opc-contentTypes.xsd 2 KB
- ooxml/schemas/ecma/fourth-edition/opc-coreProperties.xsd 2 KB
- ooxml/schemas/ecma/fourth-edition/opc-digSig.xsd 3 KB
- ooxml/schemas/ecma/fourth-edition/opc-relationships.xsd 1 KB
- ooxml/schemas/mce/mc.xsd 3 KB
- ooxml/schemas/microsoft/wml-2010.xsd 26 KB
- ooxml/schemas/microsoft/wml-2012.xsd 4 KB
- ooxml/schemas/microsoft/wml-2018.xsd 1 KB
- ooxml/schemas/microsoft/wml-cex-2018.xsd 2 KB
- ooxml/schemas/microsoft/wml-cid-2016.xsd 1 KB
- ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd 1 KB
- ooxml/schemas/microsoft/wml-symex-2015.xsd 1 KB
- ooxml/scripts/pack.py 4 KB
- ooxml/scripts/render.py 2 KB
- ooxml/scripts/soffice.py 4 KB
- ooxml/scripts/unpack.py 1 KB
- ooxml/scripts/validate.py 3 KB
- ooxml/scripts/validation/__init__.py 1 KB
- ooxml/scripts/validation/base.py 41 KB
- ooxml/scripts/validation/docx.py 10 KB
- ooxml/scripts/validation/pptx.py 13 KB
- ooxml/scripts/validation/redlining.py 7 KB
- scripts/__init__.py 1 KB
- scripts/document.py 75 KB
- scripts/utilities.py 13 KB
- scripts/templates/comments.xml 3 KB
- scripts/templates/commentsExtended.xml 3 KB
- scripts/templates/commentsExtensible.xml 3 KB
- scripts/templates/commentsIds.xml 3 KB
- scripts/templates/people.xml 1 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · appautomaton/document-skills | 100 | MIT |
| rongxinzy/rongxinai | 100 | AGPL-3.0 |
| mateaix/mateclaw | 100 | Apache-2.0 |
| neromtoobad/creator-skills | 100 | MIT |
| TerminalSkills/skills | 100 | Apache-2.0 |
| okou-ai/okou-skills | 100 | MIT |
| openbmb/pilotdeck | 100 | AGPL-3.0 |
| wrongstack/wrongstack | 100 | MIT |
| asgeirtj/system_prompts_leaks | 100 | CC0-1.0 |
Database snapshot: 13.11.2026 · package version f38353e30cff (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100documents
Create, read, edit, review, comment on, sanitize, render, and validate Microsoft Word DOCX documents. Use whenever a DOCX or Word document is a primary input or deliverable, including reports, proposals, forms, templates, tracked revisions, comments, tables, images, headers,… - 100word-document
Word (.docx) manipulation via MCP server. Use for reading, creating, editing, formatting Word documents including tables, footnotes, comments, images, headers, styles, and PDF conversion. - 100docx-cli
Edits, redlines, and comments on Word .docx files in place, keeping their formatting — prefer it over unzipping and hand-editing the XML. Use for tracked changes (redline, accept/reject), comments (add/reply/resolve), filling contracts/NDAs/forms, restyling headings/fonts,… - 90documents
Create, inspect, edit, review, import, and export durable document artifacts and explicit DOCX file boundaries. Use when the user asks for a document, asks to edit one, or the result is too long for chat (forms, tables, sections, headers, footers, comments and tracked changes),… - 90word-docx
Create, inspect, and edit Microsoft Word documents and DOCX files with reliable styles, numbering, tracked changes, tables, sections, and compatibility checks. Use when (1) the task is about Word or `.docx`; (2) the file includes tracked changes, comments, fields, tables,… - 100docx-generator
Create, read, and edit Word (.docx) files - styles, tables, images, headers, and templates - using python-docx. Use whenever a deliverable must be a Word document.