docx

Automate Word document creation, editing, redlining, and commenting in DOCX files.

Updated Jan 25, 2026
One-click install
npx skills add https://github.com/bigbigbo/my-skills --skill docx-bigbigbo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/bigbigbo/my-skills/tree/main/.claude/skills/docx
Command: npx skills add https://github.com/bigbigbo/my-skills --skill docx-bigbigbo

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Word document tasks are often manual, error-prone, and hard to audit. This skill automates creating, editing, redlining with tracked changes, and commenting in DOCX files to speed professional document workflows and ensure consistent formatting.

Core Features & Use Cases

  • Create new .docx documents with preserved formatting and structure.
  • Edit existing Word documents using tracked changes, redlining, and integrated comments.
  • Support document review workflows (redlining, comments, and approvals) for contracts, reports, and proposals.
  • Extract, analyze, and preserve text and structure from Word documents as needed for audits or processing.
  • Validate and apply deterministic changes using the provided OOXML tooling and templates.

Quick Start

Create a new Word document and apply a sample tracked-change workflow to see how redlines and comments are captured.

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 and comments?

Automating Word document editing with tracked changes and comments involves applying OOXML tooling to stamp RSIDs, author information, and validate structure, ensuring consistent formatting and auditable edits within DOCX files.

Can I use Python to add redlines and comments to DOCX files for contract review?

Yes, you can use Python to add redlines and comments to DOCX files for contract review. The skill leverages dependencies like lxml and defusedxml to automate document review workflows, preserving tracked changes and author metadata for professional audits.

What is the best way to programmatically create a Word document with preserved formatting?

The best way to programmatically create a Word document with preserved formatting is using OOXML tooling and templates. This approach automates end-to-end document workflows, ensuring structural validation and consistent formatting for professional proposals and reports.

Does docx skill support extracting and analyzing text from existing Word documents?

Yes, the docx skill supports extracting, analyzing, and preserving text and structure from existing Word documents. This functionality is essential for processing audits or preparing reports where document structure and tracked changes must remain intact.

How do tracked changes and RSIDs work when editing OOXML documents?

Tracked changes and RSIDs in OOXML documents work by stamping unique revision identifiers and author information onto edits. This mechanism ensures that all redlines and comments are structurally validated, preserved, and fully auditable during document review workflows.

What are the limitations of using defusedxml and lxml for document-editing tasks?

Using defusedxml and lxml for document-editing tasks limits operations strictly to OOXML-based DOCX files. While these dependencies provide robust structural validation and redlining, they are specifically tailored for deterministic changes and may not support non-XML legacy formats.