docx

Generate and edit Microsoft Word .docx files using OOXML workflows.

2|2|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/patronus-ai/skill-inject --skill docx-patronus-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/patronus-ai/skill-inject/tree/main/data/skills/document-skills/docx
Command: npx skills add https://github.com/patronus-ai/skill-inject --skill docx-patronus-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps you create, edit, and analyze Microsoft Word .docx documents while preserving structure, formatting, and review history.

Core Features & Use Cases

  • DOCX text extraction and analysis: Convert DOCX to Markdown for readable inspection, including tracked changes context when needed.
  • Professional editing workflows: Follow dedicated workflows for creating new documents and editing existing documents, including a required redlining workflow for other parties’ documents and legal/business/academic materials.
  • Tracked changes and comments: Implement review-ready edits using OOXML patterns and document editing utilities (including comments infrastructure and RSID handling).
  • Images and media support: Insert images by adding the necessary relationships and updating document XML so Word can render them correctly.

Quick Start

Use the docx skill to create or update a DOCX document with tracked changes and optional comments for review.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I edit a DOCX file with tracked changes?

You can edit a DOCX file with tracked changes by applying structured OOXML redlining workflows and document editing utilities, preserving formatting and review history for professional documents.

How do I extract text from a DOCX file for analysis?

Extracting text from a DOCX file involves converting the document to Markdown using pandoc, providing a readable format for inspection while optionally retaining the context of any existing tracked changes.

Can I insert images into a DOCX file using OOXML?

Yes, you can insert images into a DOCX file by adding the necessary image relationships and updating the document XML using OOXML patterns, ensuring Microsoft Word correctly renders the media.

How do I add comments to a Word document for review?

Adding comments to a Word document requires utilizing the Skill's comments infrastructure and OOXML patterns, enabling you to attach review annotations directly to text within newly created or existing DOCX files.

What is the best way to redline a DOCX document for legal review?

The best way to redline a DOCX document for legal review is to follow a mandated redlining workflow that implements tracked changes via OOXML patterns, ensuring all modifications are visible and auditable.

Does the DOCX editing workflow require pandoc and libreoffice?

Yes, the DOCX editing workflow requires pandoc for Markdown conversion and libreoffice as dependencies, alongside poppler-utils and PIL, to execute its document creation, analysis, and media handling processes.