docx

Create, edit, and analyze Word documents using python-docx and pandoc.

43|6|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/MarcelLeon/skills-zh --skill docx-marcelleon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/MarcelLeon/skills-zh/tree/main/skills/docx
Command: npx skills add https://github.com/MarcelLeon/skills-zh --skill docx-marcelleon

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandoc, docx, libreoffice, poppler-utils, defusedxml, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the creation, editing, and review of professional Word documents, handling complex formatting, tracked changes, and content analysis efficiently.

Core Features & Use Cases

  • Document Creation: Generate new .docx files from scratch using programmatic control over structure and formatting.
  • Content Editing: Modify existing documents, including text replacement, formatting adjustments, and structural changes.
  • Revision Tracking: Implement tracked changes (redlining) for collaborative document review, mirroring standard word processor functionality.
  • Use Case: A legal team needs to review a 50-page contract. They can use this Skill to automatically apply specific edits, add comments, and track all changes made by different reviewers, ensuring a clear audit trail.

Quick Start

Use the docx skill to convert the document 'report.docx' into a markdown file named 'report.md'.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate tracked changes and redlining in Word documents?

You can automate tracked changes in Word documents by programmatically manipulating the OOXML structure and using python-docx to add edits, insert comments, and track reviewer modifications for a clear audit trail.

Can I convert a docx file to markdown while preserving tracked changes?

Yes, you can convert a docx file to markdown while preserving tracked changes by using pandoc to extract text content and translate revision marks into markdown syntax for easier review.

What is the best way to generate a professional Word document from scratch?

The best way to generate a professional Word document from scratch is using python-docx to programmatically control document structure, apply advanced formatting, and build the complete file.

Does this approach work for large-scale legal document processing and review?

Yes, this approach supports large-scale legal document processing by automatically applying specific edits, adding comments, and tracking all changes across lengthy contracts to ensure a clear audit trail.

What dependencies do I need to extract text and analyze existing Word files?

To extract text and analyze existing Word files, you need dependencies including pandoc for conversion, python-docx for manipulation, and libreoffice with poppler-utils for rendering and processing.

How do I modify the formatting and structure of an existing Word document?

You modify the formatting and structure of an existing Word document by using python-docx to perform text replacements, adjust formatting, and directly manipulate the underlying OOXML structure.