docx

Create, edit, and analyze .docx files via Office Open XML.

1|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/rustykuntz/rocie-tools --skill docx-rustykuntz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/rustykuntz/rocie-tools/tree/main/skills/docx
Command: npx skills add https://github.com/rustykuntz/rocie-tools --skill docx-rustykuntz

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 process of creating, editing, and analyzing Word documents, handling complex formatting, tracked changes, and comments efficiently.

Core Features & Use Cases

  • Document Creation: Generate new .docx files from scratch using programmatic control over text, tables, lists, and styles.
  • Document Editing: Modify existing .docx files, including adding or removing content, applying formatting, and managing tracked changes.
  • Redlining & Review: Facilitate document review processes by systematically implementing tracked changes and comments.
  • Content Analysis: Extract text, comments, and other document elements for analysis.
  • Conversion: Convert .docx files to PDF or images for easier sharing and visual inspection.

Quick Start

Use the docx skill to convert the document 'report.docx' into a PDF file named 'report.pdf'.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I programmatically generate Word documents with specific formatting?

Programmatic generation of Word documents with specific formatting is achieved by manipulating Office Open XML to control text, tables, lists, and styles. This enables the precise creation of structured .docx files.

Can I add tracked changes and comments to an existing docx file for redlining?

Yes, you can modify existing .docx files to systematically implement tracked changes and comments for redlining. This facilitates document review processes by managing edits directly within the Word document structure.

Does this approach require external tools like Pandoc and LibreOffice for PDF conversion?

Yes, converting .docx files to PDF or images requires external tools like Pandoc and LibreOffice. These dependencies handle the format conversion alongside Python libraries used for OOXML manipulation.

What is the best way to extract text and comments from a Word document for content analysis?

The best way to extract text and comments for content analysis is through programmatic manipulation of Office Open XML. This method allows you to pull specific document elements directly from the .docx file structure.

Are there limitations when manipulating OOXML directly for document editing?

Manipulating OOXML directly for document editing requires Python libraries and external dependencies like pandoc and poppler-utils. Complex formatting may require careful XML handling to avoid structural corruption in the .docx file.