docx
Create and edit Word documents
Also available from: davila7,7Spade,Azeem-2,DYAI2025,ArtemisAI,anthropics,Cam10001110101,ZhanlinCui,ComposioHQ,7Spade
This skill provides a complete toolkit for Word document operations. Create new documents from scratch with JavaScript, edit existing documents with Python, and manage tracked changes and comments with proper OOXML compliance.
Download the skill ZIP
Upload in Claude
Go to Settings → Capabilities → Skills → Upload skill
Toggle on and start using
Test it
Using "docx". Create a new Word document with title 'Meeting Notes' and add three bullet points: Action items, Attendees, and Next steps.
Expected outcome:
- Created new document: Meeting_Notes.docx
- Added title with Heading1 style
- Created numbered list with proper OOXML numbering configuration
- Added 3 list items under 'Action items' section
Using "docx". Edit the quarterly report to replace all instances of '2024' with '2025' while keeping track of all changes.
Expected outcome:
- Opened quarterly_report.docx and unpacked to temporary directory
- Found 12 instances of '2024' in word/document.xml
- Applied tracked changes for each replacement (w:ins/w:del elements)
- Repacked document with proper OOXML structure
- Saved as quarterly_report_2025.docx
Security Audit
SafeThis is a legitimate document processing skill with no security concerns. All 1146 static findings are false positives: documentation code blocks (pandoc, soffice commands), OOXML schema namespace URLs, and XML attribute names misidentified as crypto/C2 patterns. The code uses safe XML parsing (defusedxml) to prevent XXE attacks.
Risk Factors
📁 Filesystem access (3)
🌐 Network access (2)
⚡ Contains scripts (2)
Quality Score
What You Can Build
Generate professional documents
Create well-formatted Word documents with headings, tables, and styling using JavaScript.
Review documents with tracked changes
Edit contracts and legal documents while maintaining full revision history.
Automate document processing
Extract text, modify content, and batch process multiple documents programmatically.
Try These Prompts
Create a new Word document with a title 'Report' and two paragraphs of placeholder text.
Edit document.docx to change all occurrences of 'company' to 'Corporation' with tracked changes enabled.
Extract all text from quarterly_report.docx and save as markdown with tracked changes preserved.
Edit contract.docx to update the termination clause: change '30 days' to '60 days' notice period, maintaining proper tracked change markup.
Best Practices
- Always use tracked changes (w:ins, w:del) when editing documents you did not create
- Validate XML structure after editing to ensure OOXML compliance
- Use proper RSID values to track revision sessions
Avoid
- Do not manually edit XML without understanding OOXML namespace requirements
- Avoid skipping tracked changes when editing third-party documents
- Do not ignore XML validation errors - they indicate OOXML compliance issues
Frequently Asked Questions
How do I create a new Word document?
How do I edit an existing document?
What are RSIDs and why do they matter?
How do tracked changes work in OOXML?
Can I extract text from a document?
What tools are required?
Developer Details
File structure
📁 ooxml/
📁 schemas/
📁 ecma/
📄 dml-wordprocessingDrawing.xsd
📄 pml.xsd
📄 shared-additionalCharacteristics.xsd
📄 shared-commonSimpleTypes.xsd
📄 shared-customXmlDataProperties.xsd
📄 shared-customXmlSchemaProperties.xsd
📄 shared-documentPropertiesCustom.xsd
📄 shared-documentPropertiesExtended.xsd
📄 shared-documentPropertiesVariantTypes.xsd
📄 shared-relationshipReference.xsd
📄 sml.xsd
📄 vml-wordprocessingDrawing.xsd
📄 wml.xsd
📄 xml.xsd
📁 mce/
📄 mc.xsd
📁 scripts/
📄 base.py
📄 docx.py
📄 pptx.py
📄 pack.py
📁 scripts/
📄 ooxml.md
📄 SKILL.md