docx

Create, edit, and analyze Word .docx documents with OOXML.

1|Updated Nov 4, 2025
One-click install
npx skills add https://github.com/ThomasRohde/strands-cli --skill docx-thomasrohde
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/ThomasRohde/strands-cli/tree/main/examples/skills/docx
Command: npx skills add https://github.com/ThomasRohde/strands-cli --skill docx-thomasrohde

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solves? This Skill automates complex Microsoft Word document tasks, including content generation, advanced editing, and managing collaborative features like comments and tracked changes. It eliminates manual document processing, ensuring consistency, accuracy, and efficiency in professional writing workflows, allowing you to focus on content, not formatting.

Core Features & Use Cases

  • OOXML Editing: Directly manipulate the underlying XML of .docx files for precise control over document structure, styles, and content.
  • Tracked Changes & Comments: Programmatically add, modify, and manage insertions, deletions, and comments, crucial for legal and editorial workflows.
  • Document Generation: Create new Word documents from structured data or templates, maintaining consistent formatting and branding.
  • Use Case: A legal professional needs to review a contract, add specific clauses, track all changes, and insert comments for a colleague. This Skill can automate these actions, ensuring all modifications are properly recorded and easily reviewable, saving significant time and reducing errors.

Quick Start

Use the docx skill to open the attached document 'contract_draft.docx'. Add a new paragraph "This is a new clause." after the section titled "Definitions". Ensure this addition is marked as a tracked change.

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?

Word document automation uses the OOXML format underlying .docx files. This Skill creates new documents, modifies content, manages tracked changes and comments, and extracts text while preserving formatting and XML structure for precise control over professional documents.

Can I add tracked changes and comments to Word documents automatically?

Yes. This Skill programmatically adds, modifies, and manages insertions, deletions, and comments in .docx files, ensuring all modifications are properly recorded and reviewable—essential for legal, editorial, and collaborative workflows.

How do I extract text and access raw XML from .docx files?

This Skill extracts text from Word documents and provides direct access to the underlying OOXML, enabling you to unpack and pack the file structure, validate against XML schema, and handle RSID and author metadata with whitespace preservation.

What's the best way to perform document redlining and review tasks?

Document redlining combines tracked changes, comments, and content modification into a single workflow. This Skill automates these review tasks across professional documents, eliminating manual processing while maintaining integrity rules and consistency.

Can I use this for legal document workflows with format preservation?

Yes. The Skill handles legal and compliance documents, maintaining consistent formatting and branding across document generation, content modification, and review tasks while meeting functional requirements for professional document quality.

Does this work with existing Document library workflows?

This Skill is compatible with docx-js and Document library workflows, supporting integration into existing text extraction, OOXML unpacking, and document processing pipelines with full schema validation.