docx

Automate Word document creation, editing, and analysis with OOXML.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Word documents (.docx) are often created and updated manually, which is error-prone and time-consuming. This Skill automates Word document creation, editing, formatting, and analysis, while preserving structure, styles, and collaboration artifacts like tracked changes and comments.

Core Features & Use Cases

  • Automated Word document creation with consistent styles and formatting
  • Full editing capabilities including tracked changes and comments
  • Text extraction and preservation of OOXML structure for downstream processing
  • Use Case: Generate a standardized report with predefined styles, apply tracked changes for review, and export for sharing.

Quick Start

Create a new Word document with tracked changes and preserved formatting using the Docx skill.

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 while preserving styles and formatting?

You can automate Word document creation with consistent styles by using Python tools to manipulate OOXML structures directly, ensuring formatting is preserved without manual input.

Can I add tracked changes and comments to a .docx file programmatically?

Yes, you can apply tracked changes and insert comments into a .docx file programmatically by editing the underlying OOXML structure, enabling automated redlining and collaborative review workflows.

How does OOXML manipulation help with Word document text extraction?

OOXML manipulation allows precise text extraction from Word documents while preserving the structural integrity of the file, providing clean downstream data for processing and analysis tasks.

Do I need Python libraries like lxml to edit .docx files?

Yes, editing .docx files requires Python libraries like lxml and defusedxml to securely parse and manipulate the underlying OOXML structure for reliable document generation.

What is the best way to generate standardized reports with predefined styles?

The best way to generate standardized reports is by automating Word document creation scripts to apply predefined styles and formatting consistently, then exporting the final .docx file for sharing.

Why does my Word document formatting break when I edit the OOXML directly?

Formatting breaks when OOXML edits miss required structural elements; using dedicated Python utilities ensures proper handling of styles, tracked changes, and comments during document modification.