docx

Create and edit Word documents with tracked changes and comments via Python OOXML.

2.7k|627|Updated Sep 11, 2025
One-click install
npx skills add https://github.com/jjyaoao/HelloAgents --skill docx-jjyaoao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/jjyaoao/HelloAgents/tree/main/skills/docx
Command: npx skills add https://github.com/jjyaoao/HelloAgents --skill docx-jjyaoao

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables programmatic creation, editing, tracking of changes, and inline commenting for Word documents (.docx), eliminating manual formatting toil and ensuring repeatable, auditable outputs.

Core Features & Use Cases

  • DOCX creation and editing: Build new Word documents from code while preserving formatting and structure.
  • Tracked changes and comments: Apply and manage redlines (insertions/deletions) and inline comments for collaborative reviews.
  • Document analysis and templates: Analyze and modify existing documents, maintain styles, charts, and tables, and prepare drafts for review or publication.
  • Use Case: Automate a standard proposal workflow by generating a filled draft with sections, applying tracked edits, and adding reviewer comments before exporting to document.docx.

Quick Start

Create a new Word document with a title, apply tracked changes to a paragraph, and add a comment, then save as document.docx.

Frequently Asked Questions about docx

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

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

You can programmatically apply tracked changes to a Word document by manipulating the OOXML structure to insert tracked insertions and deletions. This Skill automates applying redlines and inline comments for collaborative reviews and auditable edits.

Can I add inline comments to a docx file using Python?

Yes, you can add inline comments to a docx file using Python by leveraging OOXML tooling. This Skill enables programmatic comment annotation alongside tracked changes for collaborative document review workflows.

What is the best way to automate Word document generation for enterprise proposals?

Automating Word document generation for enterprise proposals is best handled by programmatically assembling deterministic document sections. This Skill builds new Word documents from code while preserving formatting, styles, and structure for repeatable outputs.

Does this docx automation approach preserve existing styles and tables when editing?

Yes, this docx automation approach preserves existing styles, charts, and tables when editing. It analyzes and modifies existing documents programmatically while maintaining their original structure for review or publication.

Do I need defusedxml to manage tracked changes in Word documents?

Yes, you need the defusedxml dependency to securely parse and manage tracked changes in Word documents. It provides the required XML parsing capabilities for manipulating OOXML structures safely during document automation.

Why use OOXML tooling instead of standard document editors for contract drafting?

Using OOXML tooling instead of standard document editors for contract drafting ensures deterministic document assembly and auditable edits. It eliminates manual formatting toil and guarantees reproducible formatting across enterprise teams.