docx

Create, edit, redline, comment, and analyze Word .docx documents.

26|15|Updated Dec 25, 2025
One-click install
npx skills add https://github.com/AnswerZhao/agent-skills --skill docx-answerzhao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/AnswerZhao/agent-skills/tree/main/glm-skills/document-skills/docx
Command: npx skills add https://github.com/AnswerZhao/agent-skills --skill docx-answerzhao

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

The docx Skill streamlines end-to-end Word document work, enabling creation, editing, redlining, commenting, and formatting preservation to support collaborative professional document work.

Core Features & Use Cases

  • Document creation: generate new .docx files from templates or skeletons.
  • Editing with tracked changes: apply edits and capture redlines for review.
  • Comments & collaboration: insert and manage comments during review, with support for replies.
  • Formatting preservation & extraction: maintain styles, layout, and extract text or data for downstream tasks.

Quick Start

Use the docx skill to create a new Word document with a title and sections for Introduction, Body, and Conclusion.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I apply tracked changes to a Word document programmatically?

To apply tracked changes to a Word document, this skill automates editing and captures redlines for review. It directly manipulates OOXML structure to ensure revisions are visible as native tracked changes.

Can I insert and resolve comments in a .docx file for collaboration?

Yes, you can insert and manage comments in a .docx file to support collaborative review. The skill enables adding comments, managing replies, and resolving them directly within the Word document workflow.

How do I extract plain text from a Word document while preserving formatting?

You can extract plain text or structured content from a Word document while preserving the original styles and layout. This allows downstream processing of the extracted data without losing the document's formatting integrity.

Does this approach to Word document editing require specific XML libraries?

Yes, handling Word document editing programmatically requires the defusedxml and lxml libraries. These dependencies provide the necessary XML manipulation and validation for safely processing OOXML files.

What is the best way to create a new Word document from a template?

The best way to create a new Word document from a template is to use automated document generation capabilities. This skill creates new .docx files from templates or skeletons while preserving professional formatting.

Why does redlining a Word document programmatically preserve formatting?

Redlining a Word document programmatically preserves formatting because the skill relies on Python-based OOXML tooling. This ensures that styles and layout are maintained during document editing and tracked changes application.