docx

Generate, edit, and redline Microsoft Word .docx documents with tracked changes.

112|26|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/Wide-Moat/open-computer-use --skill docx-wide-moat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Wide-Moat/open-computer-use/tree/main/skills/public/docx
Command: npx skills add https://github.com/Wide-Moat/open-computer-use --skill docx-wide-moat

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill removes the complexity of working with Microsoft Word .docx files by guiding reliable creation, modification, and analysis workflows, including tracked changes (redlining) and comments, while preserving document structure and formatting.

Core Features & Use Cases

  • Create DOCX documents from scratch using a JavaScript/TypeScript approach (docx-js) that exports valid .docx files.
  • Edit existing DOCX files safely using an OOXML-focused Python document library that unpacks, modifies, and repacks documents.
  • Implement tracked changes (redlining) with comments using Pandoc-assisted markdown + systematic OOXML insertion/deletion patterns, including validation guardrails.
  • Analyze DOCX content via text extraction (Pandoc to markdown) or deep inspection through raw OOXML XML access (unpack and read XML like document.xml and comments.xml).
  • Handle visual verification by converting DOCX → PDF → page images (JPEG) when structural correctness needs to be visually confirmed.

Quick Start

Use the docx skill to create a new .docx document from a specified outline using docx-js.

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 and comments to an existing DOCX file?

To programmatically redline an existing DOCX file, you unpack the OOXML structure, apply systematic w:ins and w:del tags for tracked changes, manage comments via comments.xml, and repack the document with validation guardrails.

What is the best way to convert DOCX to markdown for text analysis?

The best way to convert DOCX to markdown for analysis is using Pandoc-based text extraction, which safely unpacks the document content while supporting track-changes handling for accurate text representation.

Can I edit an existing Word document without breaking its original formatting and structure?

Yes, you can edit an existing Word document without breaking formatting by using a Python OOXML library to unpack, modify the raw XML directly, and repack the document, ensuring structural integrity is preserved.

How do you verify structural correctness after modifying OOXML elements in a Word document?

You verify structural correctness after modifying OOXML elements by converting the resulting DOCX to PDF using LibreOffice and poppler-utils, then rendering pages as JPEG images for visual confirmation.

Does Pandoc support extracting text from DOCX files with tracked changes?

Yes, Pandoc supports extracting text from DOCX files with tracked changes by utilizing its track-changes support feature during the markdown conversion process to accurately capture insertions and deletions.