What problem does it solve?
Many workflows require precise, auditable edits to Microsoft Word documents while preserving formatting, comments, and tracked changes; manual redlining or naive format conversions break structure and introduce errors. This Skill provides deterministic tools and workflows for reading, modifying, and validating .docx (OOXML) packages so that edits are traceable and documents remain valid.
Core Features & Use Cases
- Text extraction & analysis: Convert DOCX to markdown with tracked changes preserved and extract comments, metadata, and embedded media.
- Raw OOXML access: Unpack docx, inspect and edit document.xml, comments.xml, and relationships for complex structural edits.
- Programmatic creation & editing: Create new documents using docx-js patterns or edit existing files with the Document Python library that injects RSIDs, authors, and tracked-change wrappers.
- Redlining workflow: Plan changes in markdown, group into batches, implement tracked <w:ins>/<w:del> edits, add comments, and verify with pandoc and validation tools.
- Validation & packaging: Pack and validate Office files, run XSD and redlining validators, and ensure content types, relationships, and whitespace rules are correct.
- Use case: Perform a legal redline: convert a contract to markdown with tracked changes, plan batched amendments, apply precise OOXML edits preserving RSIDs and formatting, then repack and validate the final docx.
Quick Start
Convert a .docx with tracked changes to markdown, plan 3–8 grouped edits in markdown, then run the redlining workflow to apply tracked <w:ins>/<w:del> edits and validate the repackaged .docx.