docx

Create and edit Word documents with tracked changes and comments.

288|42|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/shuyu-labs/WebCode --skill docx-shuyu-labs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/shuyu-labs/WebCode/tree/main/skills/claude/docx
Command: npx skills add https://github.com/shuyu-labs/WebCode --skill docx-shuyu-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Claude can automate DOCX creation, editing, and analysis tasks, including preserving formatting, tracking changes, and managing comments, reducing manual editing time.

Core Features & Use Cases

  • Word creation: generate new documents programmatically with formatting.
  • Editing and redlining: apply edits while preserving track changes and comments.
  • Document analysis: extract text, analyze structure, and export formatting-preserving content.
  • Use Case: Imagine drafting a project PRD in Word with tracked changes and inline comments, and then exporting a clean version for stakeholders.

Quick Start

Use the docx skill to create a new Word document from scratch or modify an existing one using the Document class in the provided library.

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 editing while preserving tracked changes and comments?

Automated Word document editing that preserves tracked changes and comments is achieved by using OOXML tooling and the Document API to apply modifications while retaining all existing metadata and audit trails.

Can I programmatically create a .docx file with formatting from scratch?

Yes, you can create .docx files programmatically with full formatting by leveraging the Document class to generate new Word documents, define structures, and apply styles directly through code.

What is the best way to redline a Word document for technical documentation workflows?

Redlining a Word document for technical documentation is best handled by applying automated edits through OOXML, which ensures formatting is preserved and tracked changes are maintained for collaboration.

Does this Word automation approach work with XML manipulation for document analysis?

Yes, document analysis and XML manipulation work together by extracting text, analyzing document structure, and exporting content while preserving the original formatting through OOXML tooling.

Do I need defusedxml to process Word documents with tracked changes?

Yes, defusedxml is required as a dependency to securely process the underlying XML structure of Word documents, ensuring safe parsing and manipulation when applying tracked changes and inline comments.