docx

Create and edit Word .docx documents with tracked changes and comments.

5|3|Updated Feb 1, 2026
One-click install
npx skills add https://github.com/SebastianLHY/ruoyi-develop-claude --skill docx-sebastianlhy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/SebastianLHY/ruoyi-develop-claude/tree/main/.claude/skills/document-skills/docx
Command: npx skills add https://github.com/SebastianLHY/ruoyi-develop-claude --skill docx-sebastianlhy

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Claude users can automate the creation, editing, and analysis of Microsoft Word documents (.docx) while preserving formatting and enabling tracked changes and comments, reducing manual boilerplate work and ensuring consistency.

Core Features & Use Cases

  • Create new .docx documents with structured formatting and style overrides.
  • Edit existing documents while preserving OOXML structure, including tracked changes and comments.
  • Manage redlining workflows: insertions, deletions, comments, and replies, with RSIDs and authorship preserved.
  • Extract and inspect content from Word documents, ensuring fidelity of formatting and embedded elements.

Quick Start

Use the docx skill to automatically generate and modify a .docx document with tracked changes and comments.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate Word document creation and editing while preserving OOXML formatting?

To automate Word document creation and editing, this skill parses and validates OOXML structures using defusedxml and lxml, ensuring that formatting and embedded elements remain intact when generating or modifying .docx files.

Can I manage tracked changes and comments in a .docx file programmatically?

Yes, you can manage tracked changes and comments programmatically. This skill handles redlining workflows by inserting, deleting, and replying to comments while preserving RSIDs and authorship metadata within the Word document.

What is the best way to extract and inspect content from existing Word documents without losing formatting?

To extract and inspect content from Word documents without losing formatting, this skill analyzes the native OOXML structure, ensuring fidelity of text, styles, and embedded elements during the extraction process.

Do I need to install lxml and defusedxml to edit .docx files with this automation tool?

Yes, you need to install lxml and defusedxml. These dependencies are required to parse and validate the OOXML structures necessary for creating, editing, and analyzing Word documents safely and accurately.

Does this Word automation approach support structured formatting and style overrides for new documents?

Yes, this Word automation approach supports structured formatting and style overrides. It allows you to create new .docx documents with specific formatting rules applied directly through the underlying OOXML structure.

Why does editing a .docx file manually sometimes break the OOXML structure?

Editing a .docx file manually can break the OOXML structure because the format relies on strict XML schemas. This skill uses lxml and defusedxml to validate changes, preventing structural corruption during document modification.