docx

Create, edit, and analyze DOCX files with tracked changes and comments.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solves? This Skill automates complex Microsoft Word document editing, including legal redlining, content generation, and collaborative feedback, eliminating manual effort and ensuring consistency.

Core Features & Use Cases

  • Advanced Document Editing: Programmatically create new .docx files or modify existing ones, preserving complex formatting and structure.
  • Tracked Changes & Comments: Implement precise tracked changes (insertions, deletions) and manage comments, essential for legal, academic, or business document review workflows.
  • Content Extraction: Convert .docx files to Markdown, including tracked changes, for easy analysis and content reuse.
  • Use Case: Automatically apply a set of legal revisions to a contract draft, ensuring all changes are tracked and comments are added for review, or generate a new report with dynamic data and professional formatting.

Quick Start

In the attached document 'policy_draft.docx', find the phrase 'annual review' and replace it with 'biannual review', ensuring the change is tracked for review.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate creating and editing Word documents programmatically?

Automate Word document creation and editing by programmatically modifying .docx files while preserving complex formatting, structure, and metadata. This Skill enables you to generate new documents or update existing ones with dynamic content, tracked changes, and comments without manual intervention.

Can I implement tracked changes and redlining workflows in Word documents?

Yes. Implement precise tracked changes for insertions and deletions, plus comments and author metadata, essential for legal contracts, academic reviews, and collaborative business workflows. Changes remain visible for review and approval within Word.

How do I extract content from Word documents and convert to other formats?

Extract content from .docx files and convert to Markdown, preserving tracked changes and structure. This enables content reuse, easier analysis, and integration with documentation systems or downstream processes.

What's the best way to apply batch revisions to contract drafts while maintaining audit trails?

Apply legal revisions to contract drafts programmatically with all changes tracked and commented for review. This ensures consistency, creates an audit trail, and eliminates manual editing errors across multiple documents.

Can I validate Word document structure and relationships during automated workflows?

Yes. Validate OOXML structure, relationships, and content integrity during document creation and modification workflows. This ensures compliance with Word standards and prevents corruption when generating or editing .docx files at scale.

Do I need special libraries to handle Word document redaction and metadata management?

This Skill uses the docx library to manage OOXML handling, redlining, author metadata, and RSIDs. You can apply and validate tracked changes, comments, and document properties without manually parsing XML or managing Word's internal structure.