What problem does it solve?
This Skill automates the management of tracked changes and comments in Word DOCX documents, enabling programmatic control over author metadata, RSIDs, and redlining workflows.
Core Features & Use Cases
- Automated tracking: Create and review tracked changes and comments via a Python API that manipulates Word's OOXML structures.
- Author metadata management: Inject RSIDs and author details across word/document.xml, settings.xml, and related parts to maintain audit trails.
- Validation integration: Validate XML structure against OOXML schemas and ensure proper relationships, content types, and references during edits.
- Use Case: A team collaborates on a large Word document; through the scriptable API, they apply edits, comments, and reviews with consistent metadata, then save and re-pack.
Quick Start
Use the Docx Document API to load an unpacked DOCX and start editing tracked changes and comments. For example:
- Load: doc = Document('path/to/unpacked')
- Add a comment: doc.add_comment(start_node, end_node, "Review note")
- Save: doc.save()