docx

Create and edit Word documents with tracked changes using Python OOXML tooling.

33|6|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/gaogg521/1ONE-ClaudeCode --skill docx-gaogg521
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/gaogg521/1ONE-ClaudeCode/tree/main/src/process/resources/skills/_deprecated-docx
Command: npx skills add https://github.com/gaogg521/1ONE-ClaudeCode --skill docx-gaogg521

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires defusedxml, lxml, Pillow, and includes scripts (resource) components.

What problem does it solve?

Word documents often require meticulous formatting preservation, tracking of edits, and coordinated collaboration. This Skill automates the end-to-end lifecycle for Word (.docx) documents, enabling creation, modification with tracked changes, and inline comments while preserving layout and change history.

Core Features & Use Cases

  • Create new Word documents programmatically with formatting preserved and styles controlled.
  • Edit existing documents with tracked changes and comments, supporting redlining workflows.
  • Maintain author metadata, timestamps, and change history, while ensuring OpenXML compatibility during edits.
  • Real-world use cases include contract reviews, policy updates, and collaborative document authoring.

Quick Start

Create a new Word document and apply an initial set of tracked changes using the built-in editor workflow.

Frequently Asked Questions about docx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Word document editing with tracked changes using Python?

You can automate Word document editing with tracked changes using Python-based OOXML tooling. This approach applies modifications, redlines, and inline comments to existing .docx files while preserving layout and maintaining author metadata.

What is the best way to programmatically create and redline .docx files?

The best way to programmatically create and redline .docx files is by manipulating the underlying OOXML structure. This ensures OpenXML compatibility, allowing you to apply styles, format text, and track edits without corrupting the document.

Does Python OOXML tooling preserve formatting and change history during document redlining?

Yes, Python OOXML tooling preserves formatting and change history during document redlining. It maintains author metadata, timestamps, and original layout while applying new edits, ensuring professional workflows remain intact.

Can I add inline comments to existing Word documents while ensuring OpenXML compatibility?

You can add inline comments to existing Word documents while ensuring OpenXML compatibility. The tooling directly modifies the document structure to inject comments and tracked changes without breaking the file format.

How do tracked changes work when editing OOXML documents programmatically?

Tracked changes work by manipulating the OOXML elements directly to record edits, author metadata, and timestamps. This ensures all modifications are logged as redlines within the document's change history, maintaining full transparency.

Are there limitations when using Python for Word document creation and modification?

Limitations depend on the complexity of the OOXML structure and the dependencies used, such as lxml and Pillow. Extremely complex layouts or advanced Word features may require careful XML manipulation to avoid formatting loss during document creation.