docx

Create, edit, and analyze .docx files with tracked changes via Python and JavaScript.

11|3|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/MuduiClaw/ClawKing --skill docx-muduiclaw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/MuduiClaw/ClawKing/tree/main/workspace/skills/docx
Command: npx skills add https://github.com/MuduiClaw/ClawKing --skill docx-muduiclaw

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 complex document operations, from creating new .docx files to meticulously editing existing ones with tracked changes and detailed analysis.

Core Features & Use Cases

  • Document Creation: Generate professional .docx files from scratch using JavaScript.
  • Content Editing: Modify existing documents, including complex formatting and tracked changes, using Python's OOXML library.
  • Redlining Workflow: Implement precise tracked changes for document review and collaboration.
  • Text & XML Access: Extract text content or access raw XML for in-depth analysis and manipulation.
  • Use Case: A legal team needs to review a 50-page contract. They can use this Skill to automatically apply specific edits, track all changes made by the AI, and ensure the final document adheres to strict formatting standards.

Quick Start

Use the docx skill to convert the document 'report.docx' into markdown format, preserving tracked changes.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I programmatically add tracked changes to an existing Word document?

To add tracked changes to a Word document, this Skill leverages Python's OOXML library to implement precise redlining workflows. It enables detailed content modification while preserving professional formatting and tracking all edits for review.

What is the best way to extract raw XML from a .docx file for analysis?

Extracting raw XML from a .docx file is handled by accessing the underlying OOXML structure directly. This approach allows in-depth analysis and manipulation of document elements, comments, and formatting beyond standard text extraction.

Can I create a .docx file from scratch using JavaScript?

Yes, you can create a .docx file from scratch using JavaScript through the integrated docx-js library. This functionality supports generating professional documents programmatically without needing a pre-existing file.

Do I need pandoc and LibreOffice installed to manage Word document workflows?

Yes, full document management requires pandoc, LibreOffice, and Poppler dependencies. These tools facilitate format conversion, markdown extraction, and comprehensive manipulation of OOXML structures within professional workflows.

How do I convert a .docx file to markdown while preserving tracked changes?

Converting a .docx file to markdown while preserving tracked changes utilizes pandoc and Python libraries. This workflow extracts text content and formatting accurately, ensuring redlining metadata remains intact during the format transition.