docx

Create, edit, and analyze DOCX documents with tracked changes and formatting.

Updated Mar 13, 2026
One-click install
npx skills add https://github.com/colinmxs/double-hexagon --skill docx-colinmxs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/colinmxs/double-hexagon/tree/main/.kiro/skills/document-skills/docx
Command: npx skills add https://github.com/colinmxs/double-hexagon --skill docx-colinmxs

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

The DOCX skill enables you to programmatically create, modify, and analyze Word documents (.docx) while preserving formatting, tracked changes, and comments.

Core Features & Use Cases

  • Create new Word documents with custom content and styling.
  • Edit existing documents, apply changes, and manage tracked changes and comments.
  • Analyze document structure, formatting, and metadata to support review processes and auditing.

Quick Start

Generate a new Word document with a title and a paragraph using code.

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 formatting?

Automating Word document creation while preserving formatting is achieved by manipulating OOXML structures via Python scripts. This approach ensures consistent styling and reliable generation of .docx files for automated reporting workflows.

Can I edit existing DOCX files and manage tracked changes programmatically?

Editing existing DOCX files and managing tracked changes programmatically is supported. The scripts apply modifications directly to the document structure, allowing you to track changes and preserve comments during automated editing workflows.

How do I analyze Word document structure and metadata for auditing?

Analyzing Word document structure and metadata for auditing involves parsing the underlying OOXML format. The Python scripts extract formatting details and document properties to support review processes and compliance auditing.

Does this DOCX automation approach work with defusedxml for secure parsing?

This DOCX automation approach works with defusedxml for secure parsing. The dependency ensures reliable and safe XML manipulation when modifying Word documents, protecting against potential XML external entity attacks during analysis.

What is the best way to programmatically apply custom styling to Word documents?

The best way to programmatically apply custom styling to Word documents is by manipulating their OOXML elements directly. Using Python scripts ensures consistent formatting and versioning across generated report files.

Are there limitations when modifying OOXML structures in Word documents?

Limitations when modifying OOXML structures in Word documents depend on the complexity of the original formatting. While the scripts handle reliable manipulation, highly irregular custom XML structures may require specific validation to preserve document integrity.