docx

Automate Word (.docx) creation, editing, review with tracked changes and comments using Python and OOXML libraries.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

The Skill enables automated creation, editing, and review of Word documents (.docx) by providing a structured workflow for applying tracked changes and comments, reducing manual editing overhead.

Core Features & Use Cases

  • Create new Word documents from templates with consistent styles and content.
  • Apply tracked changes and comments to documents to support collaborative editing.
  • Batch process multiple documents while preserving formatting and change history.

Quick Start

Use the docx Skill to create a new Word document with a title and a paragraph, then apply a tracked change to replace a word and add a comment.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate applying tracked changes to Word documents?

You can automate tracked changes in Word documents by using a structured workflow that manipulates OOXML data to insert revisions and comments programmatically. This approach reduces manual editing overhead while preserving the document's change history.

Can I batch process multiple docx files to add comments and revisions?

Yes, batch processing multiple docx files is supported, allowing you to apply comments and tracked changes across documents while preserving original formatting and change history. This streamlines collaborative editing workflows for professional use.

What Python libraries are needed to programmatically edit Word documents with tracked changes?

To programmatically edit Word documents with tracked changes, you need the defusedxml and ooxml Python libraries. These libraries allow you to safely manipulate OOXML data required for inserting revisions and comments into docx files.

How do I create Word documents from templates with consistent styles?

Creating Word documents from templates with consistent styles involves using automation to generate new docx files based on predefined layouts. This ensures uniform formatting across professional documents while structuring content input.

What is the best way to collaborate on Word document revisions without manual editing?

The best way to collaborate on Word document revisions without manual editing is to automate the application of tracked changes and comments through OOXML manipulation. This enables structured review workflows and batch processing for professional document collaboration.

Does manipulating OOXML data safely require specific Python dependencies?

Yes, safely manipulating OOXML data requires the defusedxml and ooxml Python libraries to prevent XML vulnerabilities. These dependencies are essential for securely parsing and modifying the internal structure of docx files during automated editing workflows.