docx

Create and edit .docx documents with tracked changes and comments.

1|2|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/hanlinlibham/skills --skill docx-hanlinlibham
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/hanlinlibham/skills/tree/main/docx
Command: npx skills add https://github.com/hanlinlibham/skills --skill docx-hanlinlibham

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Automates the creation, editing, and review of professional Word documents (.docx) to reduce manual formatting, tracking, and review overhead.

Core Features & Use Cases

  • Create new Word documents with consistent styles and structure.
  • Edit existing documents while preserving formatting and supporting tracked changes, comments, and redlining.
  • Read, extract, and analyze text from .docx files for downstream workflows.
  • Use Case: generate a formatted contract draft, apply revisions, attach reviewer comments, and export a final proofed document.

Quick Start

Create a sample Word document with a title, sections, and a simple table 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 with consistent formatting?

Automating Word document creation is achieved through a programmatic OOXML workflow that builds new .docx files with consistent styles, structured sections, and tables while preserving professional formatting.

How do I apply tracked changes and comments to an existing .docx file?

Applying tracked changes and comments to an existing .docx file involves programmatic redlining within the document's OOXML structure, ensuring safe, auditable edits that preserve the original formatting.

Can I extract and analyze text from Word documents for downstream workflows?

Extracting and analyzing text from Word documents is supported natively, pulling raw content from .docx files to feed into downstream validation workflows or data processing pipelines.

Does this Word document editing approach require defusedxml?

Yes, the workflow requires the defusedxml dependency to safely parse and manipulate OOXML structures, securing the document editing process against potentially malicious XML payloads.

What is the best way to generate a formatted contract draft and attach reviewer comments?

Generating a formatted contract draft with reviewer comments is handled by creating a structured .docx file, applying tracked redlining edits, and programmatically attaching annotations before exporting the final proofed document.

What are the limitations of programmatic .docx redlining?

Programmatic .docx redlining limitations center on OOXML complexity, where highly intricate visual formatting or embedded macro structures may not fully translate through automated text extraction and safe XML editing workflows.