docx

Create, edit, and extract text from .docx files with tracked changes.

Updated Jan 15, 2026
One-click install
npx skills add https://github.com/lips85/antigravity-skills-bootstrap --skill docx-lips85
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/lips85/antigravity-skills-bootstrap/tree/main/skills/docx
Command: npx skills add https://github.com/lips85/antigravity-skills-bootstrap --skill docx-lips85

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 workflows by enabling programmatic creation, editing, and analysis of Microsoft Word (.docx) files, including sophisticated handling of tracked changes and comments.

Core Features & Use Cases

  • Document Creation: Generate new .docx files from scratch using structured data.
  • Content Editing: Modify existing documents, including text replacement and formatting.
  • Tracked Changes: Implement and manage tracked changes for collaborative review and redlining.
  • Comment Management: Add, review, and manage comments within documents.
  • Text & XML Access: Extract plain text or access raw XML for advanced manipulation.
  • Use Case: A legal team needs to review a contract. This Skill can automatically apply specific edits as tracked changes, add comments to clauses requiring attention, and then export the reviewed document.

Quick Start

Use the docx skill to create a new document with a title and two headings.

Frequently Asked Questions about docx

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

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

Automating redlining and tracked changes in Word documents involves programmatically editing .docx files to insert revisions using OOXML manipulation libraries like python-docx. This approach applies specific edits as tracked changes for collaborative review without manual input.

Can I convert docx files to PDF using command line tools?

Converting docx files to PDF using command line tools is supported through pandoc and LibreOffice. This conversion process transforms Microsoft Word documents into PDF format while preserving document structure and visual layout.

How do I extract text and raw XML from a docx file for analysis?

Extracting text and raw XML from a docx file requires accessing the underlying OOXML structure using libraries like python-docx and defusedxml. This process yields plain text or raw XML outputs for advanced document manipulation and visual analysis.

Does python-docx support adding and managing comments in Word files?

Python-docx supports adding and managing comments in Word files by manipulating the OOXML structure of .docx documents. This capability enables programmatic comment insertion to annotate specific clauses for legal review and collaborative workflows.

What is the best way to batch edit multiple Word documents programmatically?

Batch editing multiple Word documents programmatically is best handled by scripting text replacement and formatting modifications across .docx files using python-docx. This method processes complex workflows including batch edits efficiently.

What dependencies are needed to manipulate docx files and convert formats?

Manipulating docx files and converting formats requires dependencies including pandoc for format conversion, LibreOffice and poppler-utils for image conversion, python-docx and docx-js for OOXML manipulation, and defusedxml for safe XML parsing.