docx

Create, edit, and analyze Microsoft Word documents with tracked changes.

103|30|Updated Dec 24, 2025
One-click install
npx skills add https://github.com/CommandCodeAI/agent-skills --skill docx-commandcodeai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/CommandCodeAI/agent-skills/tree/main/skills/document-skills/docx
Command: npx skills add https://github.com/CommandCodeAI/agent-skills --skill docx-commandcodeai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables automated creation, editing, and analysis of professional Word documents (.docx), preserving formatting, tracked changes, and comments as part of standard enterprise workflows.

Core Features & Use Cases

  • Create new Word documents programmatically with preserved formatting and styles.
  • Edit existing documents while safely applying tracked changes and comments for collaborative reviews.
  • Use cases include legal drafts, technical reports, and client deliverables where precise redlining and audit trails are required.

Quick Start

  • Open an unpacked Word document and apply a sample tracked change to a paragraph.
  • Run the docx skill against an example document to generate an edited version with comments and revision tracking.

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 creation and apply tracked changes using Python?

Yes, you can edit existing Word documents programmatically while preserving their original formatting and styles. The skill injects RSIDs and author metadata to safely apply redlining and manage comments for professional reviews.

Can I programmatically add comments and revisions to an existing .docx file?

Yes, you can edit existing Word documents programmatically while preserving their original formatting and styles. The skill injects RSIDs and author metadata to safely apply redlining and manage comments for professional reviews.

What is OOXML and how is it used for redlining Word documents?

The skill relies on the built-in Python OOXML tooling and requires the defusedxml dependency to safely process XML. You need unpacked Word documents to apply tracked changes and generate edited versions with comments.

Do I need any specific Python dependencies to process Word OOXML files?

The skill relies on the built-in Python OOXML tooling and requires the defusedxml dependency to safely process XML. You need unpacked Word documents to apply tracked changes and generate edited versions with comments.

Is automated document generation suitable for legal drafts and technical reports?

Automated document generation is highly suitable for legal drafts, technical reports, and client deliverables. It handles professional workflows by maintaining audit trails, preserving styles, and applying tracked changes for precise reviews.