docx

Generate, read, and edit Word .docx files via OOXML ZIP/XML content.

Updated Apr 6, 2026
One-click install
npx skills add https://github.com/daanteijema-beep/ai-gids-platform --skill docx-daanteijema-beep
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/daanteijema-beep/ai-gids-platform/tree/main/.agents/skills/docx
Command: npx skills add https://github.com/daanteijema-beep/ai-gids-platform --skill docx-daanteijema-beep

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill eliminates the complexity of creating, editing, and fixing Word (.docx) documents by handling the underlying OOXML ZIP/XML structure and common pitfalls that break formatting or tracked changes.

Core Features & Use Cases

  • Create and structure DOCX files: Generate documents with consistent page sizing, typography, headings (for TOC), tables, page breaks, headers/footers, hyperlinks, footnotes, and multi-column layouts.
  • Edit existing DOCX files safely: Unpack DOCX to XML, apply targeted XML edits (including tracked changes and comments), then repack and validate.
  • Analyze and convert content: Extract text (including tracked changes), access raw XML, and convert to/from legacy DOC formats or convert to images/PDF for review.
  • Use-case examples: Produce a polished report/memo as a DOCX template, update an existing Word document by replacing sections while preserving correct tracked-change structure, or accept tracked changes into a clean version for publishing.

Quick Start

Ask the AI to create an edited Word document as a .docx by unpacking the existing file, applying your requested text and formatting changes, and repacking it into a validated output DOCX.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate Word document generation with tracked changes and comments?

Automating Word document generation involves creating OOXML ZIP/XML structures to programmatically insert tracked changes and comments. You can generate reports or templates by applying docx-js creation patterns and XML edits, then validate the structure for correct DOCX output.

Can I edit an existing .docx file without breaking its formatting or tracked changes?

Editing an existing .docx file safely requires unpacking it to raw XML, applying targeted edits, and repacking it with validation guardrails. This preserves correct tracked-change structure and formatting while allowing text replacements or section updates.

What is the best way to convert legacy DOC files or extract text from a .docx?

The best way to convert legacy DOC files or extract text from a .docx is through conversion and extraction workflows. Using LibreOffice and poppler, you can convert .docx assets to PDF or images for review and extract text including tracked changes.

Does this approach support adding tables of contents, footnotes, and multi-column layouts?

Yes, creating and structuring DOCX files supports adding tables of contents, footnotes, headers, footers, hyperlinks, and multi-column layouts. It generates documents with consistent page sizing and typography by manipulating the underlying OOXML structure.

How do I accept tracked changes into a clean version for publishing?

To accept tracked changes into a clean version for publishing, you can use LibreOffice-based tracked-change acceptance workflows. This processes the underlying OOXML content to resolve all revisions and output a finalized document without markup.

What dependencies do I need to unpack and repack .docx XML structures?

To unpack and repack .docx XML structures, you need dependencies like pandoc for conversion, LibreOffice for tracked-change processing, and poppler for PDF rendering. These tools enable the XML unpack, edit, and pack flows required for correct DOCX structure.