docx

Create, edit, and analyze Microsoft Word .docx documents with Python and JavaScript.

3|Updated Nov 11, 2025
One-click install
npx skills add https://github.com/xingranya/CervixDetectAI --skill docx-xingranya
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/xingranya/CervixDetectAI/tree/main/.agent/skills/docx
Command: npx skills add https://github.com/xingranya/CervixDetectAI --skill docx-xingranya

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 analysis of Microsoft Word (.docx) documents, automating complex tasks like tracked changes, comment management, and formatting preservation.

Core Features & Use Cases

  • Document Creation: Generate new .docx files programmatically using JavaScript/TypeScript.
  • Document Editing: Modify existing .docx files using Python, including tracked changes and comments.
  • Text Extraction & Analysis: Convert .docx to Markdown, preserving structure and tracked changes.
  • Redlining Workflow: Implement professional tracked changes for document review.
  • 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 generate a redlined version for the client, ensuring all changes are tracked and formatted correctly.

Quick Start

Use the docx skill to convert the document 'report.docx' into markdown format with all tracked changes preserved.

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?

Automate redlining in Word documents by using Python libraries to modify existing .docx files programmatically. This skill applies specific edits, adds comments, and generates redlined versions with tracked changes while preserving professional formatting for review workflows.

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

Convert .docx files to Markdown by integrating pandoc for document conversion. This process preserves document structure and tracked changes, allowing you to extract text and analyze document revisions directly in Markdown format.

Do I need pandoc and libreoffice installed to generate and edit .docx files programmatically?

Pandoc and libreoffice are required dependencies for this document editing environment. You also need poppler-utils and defusedxml installed to process file conversions and manipulate OOXML structures securely when generating or editing Word documents.

What is the best way to programmatically generate a new Word .docx file?

Generate new Word .docx files programmatically by using JavaScript or TypeScript with the docx-js Document library. This approach allows automated creation of OOXML structures for professional document processing without manual formatting.

Does this approach support adding and manipulating comments in Word documents?

Comment manipulation in Word documents is fully supported through Python libraries. You can automate the addition, modification, and management of review comments alongside tracked changes when editing existing .docx files.

Can I extract raw XML from a .docx file for custom document analysis?

Extract raw XML from .docx files using defusedxml for secure parsing and access to the underlying OOXML structure. This enables custom document analysis, text extraction, and detailed formatting preservation beyond standard conversion tools.