One-click install
npx skills add https://github.com/yutaoshao/agent-skills --skill docx-yutaoshao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/yutaoshao/agent-skills/tree/main/glm-skills/document-skills/docx
Command: npx skills add https://github.com/yutaoshao/agent-skills --skill docx-yutaoshao

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Streamline Word document creation, editing, review, and formatting preservation by providing a structured, repeatable workflow for .docx tasks including tracked changes and comments.

Core Features & Use Cases

  • Create new Word documents from templates with consistent formatting and structure.
  • Edit existing documents using tracked changes and redlining, while preserving original styles and metadata.
  • Manage comments and review workflows, including replies and context notes, in a collaborative environment.
  • Extract and inspect document text and structure to support migrations, analysis, or auditing.

Quick Start

Create a new Word document with a basic template and a starter tracked-change comment on a paragraph.

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 with tracked changes and comments?

Automating Word document editing with tracked changes and comments is achieved through structured OOXML workflows. This approach applies redlining, manages review context notes, and preserves original styles using Python-based XML processing.

How do I preserve formatting when editing existing .docx files programmatically?

To preserve formatting when editing existing .docx files, the workflow utilizes robust XML processing with defusedxml and lxml. This ensures original document styles and metadata remain intact while applying text modifications.

What is the best way to extract and inspect text and structure from a Word document?

Extracting and inspecting text and structure from a Word document is handled by parsing the underlying OOXML. This workflow supports content migrations, document analysis, and auditing by accessing the raw XML structure.

Do I need Python and lxml to manage redlining and review workflows in Word?

Yes, managing redlining and review workflows in Word requires Python-based OOXML tooling. Specifically, library support from defusedxml and lxml is necessary for secure, robust XML processing and RSID-author tracking.

Can I create Word documents from templates with consistent formatting and structure?

You can create Word documents from templates with consistent formatting and structure by applying a repeatable OOXML generation workflow. This ensures professional drafting environments maintain standard styles across new documents.

What are the limitations of using OOXML for collaborative Word document reviews?

Limitations of using OOXML for Word document reviews involve handling complex XML structures directly. While it supports tracked changes and comments, managing deep metadata or heavily nested revisions requires careful XML parsing to avoid corruption.