docx

Create, edit, and analyze Word documents with tracked changes and comments.

2|Updated Nov 15, 2025
One-click install
npx skills add https://github.com/dakesan/hiro-favorite-skills --skill docx-dakesan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/dakesan/hiro-favorite-skills/tree/main/skills/docx
Command: npx skills add https://github.com/dakesan/hiro-favorite-skills --skill docx-dakesan

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates complex Microsoft Word document editing, including tracked changes and comments, preserving formatting and structure.

Core Features & Use Cases

  • Tracked Changes: programmatically insertions and deletions within word documents.
  • Comment Management: add, reply to, and resolve comments in documents.
  • Redlining Workflows: support review workflows with change-tracking for collaborative editing.

Quick Start

Use the docx skill to unpack a Word document, apply a new comment on the paragraph containing "Agreement", and save the updated file as "edited.docx".

Frequently Asked Questions about docx

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

FAQPage Schema
How do I add tracked changes and comments to Word documents programmatically?

Tracked changes and comments enable collaborative editing in Word documents. This Skill lets you programmatically insert deletions, add comments, and manage redlining workflows while preserving the document structure and author metadata in the .docx format.

Can I edit .docx files while preserving formatting and structure?

Yes. This Skill creates, edits, and extracts text from Word documents while maintaining OOXML structure, formatting rules, and metadata. It integrates Python OOXML libraries to handle complex document operations without corrupting the file.

What's the best way to automate review workflows with redlining in Word?

Redlining workflows track document changes for collaborative review. This Skill automates insertions and deletions with tracked changes, manages comments and replies, and resolves edits—enabling end-to-end document review automation in .docx files.

Do I need XML knowledge to work with Word document structure?

No, but this Skill provides raw XML access if you need it. You can create and modify documents without direct XML handling, or drop down to manipulate OOXML structure directly when working with complex formatting or metadata requirements.

How do I extract text from Word documents while keeping the layout intact?

Text extraction from Word documents preserves paragraphs and structure. This Skill extracts content from .docx files while maintaining document hierarchy and formatting, making it suitable for analysis or migration of professional documents.

Can this handle comments with replies and resolution status?

Yes. This Skill manages full comment workflows—adding comments, replying to them, and marking comments as resolved. It integrates with tracked changes for complete collaborative editing and review tracking in Word documents.