docx

Automate Word document editing and redlining workflows with Python scripts.

38|6|Updated Aug 4, 2025
One-click install
npx skills add https://github.com/hacket/AICodingGuide --skill docx-hacket
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/hacket/AICodingGuide/tree/main/.claude/skills/docx
Command: npx skills add https://github.com/hacket/AICodingGuide --skill docx-hacket

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Word document work often requires repetitive creation, editing, and auditing. This Skill automates Word (.docx) tasks, including generating documents, applying edits with tracked changes, and extracting text or metadata, reducing manual effort.

Core Features & Use Cases

  • Word document creation and editing with tracked changes
  • Redlining and commenting support for collaboration
  • Text extraction and formatting preservation for archival or migration

Quick Start

Run the included Python scripts to create, edit, and track changes in a Word document.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I apply tracked changes to a Word document using Python?

You can add comments to a Word document via Python by executing the included scripts that manipulate OOXML elements. This Skill automates the insertion of comments directly into .docx files for collaborative review and auditing workflows.

Can I extract text from a docx file while preserving formatting?

Yes, you can extract text from a docx file while preserving formatting using the provided Python scripts. This Skill processes the underlying XML to pull text and metadata for archival or migration without losing document structure.

Do I need lxml to automate Word document editing with Python?

Yes, you need lxml and defusedxml to automate Word document editing with Python. These dependencies are required for secure XML processing of OOXML structures when creating, updating, or redlining .docx files.

What is the best way to automate Word document creation without losing formatting?

The best way to automate Word document creation without losing formatting is using Python scripts that manipulate OOXML directly. This Skill generates .docx files programmatically, ensuring structural integrity and formatting preservation.

Does this approach support batch redlining for collaborative document review?

Yes, this approach supports batch redlining for collaborative document review. The Skill applies tracked changes and comments across Word documents programmatically, reducing manual effort for professional editing and auditing tasks.