docx

Create, edit, and audit .docx files with tracked changes.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/favouritehu/call_tracking --skill docx-favouritehu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/favouritehu/call_tracking/tree/main/skills/docx
Command: npx skills add https://github.com/favouritehu/call_tracking --skill docx-favouritehu

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a comprehensive toolkit for programmatically creating, editing, and auditing Word documents (.docx) with robust support for tracked changes, comments, and formatting preservation. It enables automation of complex document workflows, reducing manual editing and review overhead.

Core Features & Use Cases

  • Document creation: Build DOCX files from structured data with precise styling and formatting controls.
  • Redlining & comments: Apply and manage tracked changes (insertions/deletions) and comments to enable audit trails during reviews.
  • Workflow automation: Integrate into pipelines to generate, modify, and finalize documents for legal, business, or content workflows.
  • Use Case: Generate a contract from a template, apply edits with full tracking, then export a review-ready document for sign-off.

Quick Start

Load an existing DOCX in unpacked form, use the Document class to apply a tracked change or add comments, and repack the folder into a new DOCX with the provided pack utility.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate tracked changes and redlining in Word documents?

Automating tracked changes involves using an OOXML toolkit to manipulate WordprocessingML, managing RSIDs and authors for insertions and deletions, then repacking the document to preserve an audit trail during reviews.

Can I generate a DOCX file from a template and add comments?

Yes, you can generate DOCX files from templates and add comment-based annotations. The toolkit supports loading unpacked document structures, applying comment-based annotations, and repacking the folder into a finalized document for drafting workflows.

What is the best way to programmatically audit Word documents for revisions?

Auditing Word documents for revisions is best handled by unpacking the DOCX format and parsing the underlying WordprocessingML. This exposes tracked changes and author metadata, enabling automated review of document edits and formatting.

Do I need to understand OOXML to use this document automation approach?

A basic understanding of OOXML helps, but the toolkit abstracts much of the WordprocessingML complexity. You primarily work with document classes to apply tracked changes and comments, while the library manages RSIDs and repacking.

Does defusedxml work well for parsing DOCX files safely?

Yes, defusedxml is used as a dependency to safely parse the XML structures within DOCX files. It mitigates XML parsing vulnerabilities while manipulating WordprocessingML during automated document generation and redlining workflows.

How do I preserve formatting when editing a Word document programmatically?

To preserve formatting when editing a Word document, you unpack the DOCX file, modify the WordprocessingML directly to apply changes, and repack the folder. This ensures precise styling controls remain intact during automated workflow generation.