docx

Create, edit, and track changes in Word .docx files with Python.

5|2|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/hyperbolic-c/auto-writing --skill docx-hyperbolic-c
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/hyperbolic-c/auto-writing/tree/main/claude-scientific-writer/skills/document-skills/docx
Command: npx skills add https://github.com/hyperbolic-c/auto-writing --skill docx-hyperbolic-c

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a programmable toolkit to create, edit, track changes, and annotate Word documents (.docx), enabling consistent document workflows and reducing manual editing overhead.

Core Features & Use Cases

  • Document creation, editing, and tracked changes: programmatically generate Word documents, apply edits, wrap text changes in w:ins and w:del, and preserve formatting.
  • Commenting and collaboration: attach comments to tracked changes and paragraphs, manage comments.xml and related metadata.
  • Format preservation and validation: ensure OOXML integrity with RSID generation, content types, and validation tooling for Word documents.
  • Use case: A consultant needs to draft a 20-page report with multiple revisions and reviewer comments, producing a ready-to-submit Word document.

Quick Start

Start by loading an existing Word document unpacked to the skill workspace, insert a new paragraph wrapped in a tracked change, and then save and validate.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I programmatically add tracked changes to a Word document?

Yes, you can programmatically add comments to Word documents by attaching them to tracked changes and paragraphs while managing comments.xml and related metadata for collaborative workflows.

How do I automate creating a Word document with multiple revisions and reviewer comments?

To automate creating a Word document with revisions and comments, you can programmatically generate .docx files, apply tracked changes, and attach reviewer comments to produce a ready-to-submit report.

Does Python tooling support OOXML validation for .docx files?

Yes, Python-based tooling can preserve formatting during .docx automation by ensuring OOXML integrity with RSID generation, content types, and validation utilities throughout the editing process.

What's the best way to attach comments to tracked changes in OOXML?

The best way to attach comments to tracked changes in OOXML is to manage comments.xml and related metadata directly, linking annotations to the specific paragraphs or revisions within the document.

Do I need lxml to validate Word document tracked change integrity?

Yes, you need lxml and defusedxml dependencies to validate Word document tracked change integrity, ensuring proper RSIDs, content types, and OOXML validation during automated editing.