docx

Create and edit DOCX files with XML-level formatting and round-tripping.

52|8|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/eddie-292/grapwork --skill docx-eddie-292
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/eddie-292/grapwork/tree/main/frontend/skills/examples/docx
Command: npx skills add https://github.com/eddie-292/grapwork --skill docx-eddie-292

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires defusedxml, lxml, and includes scripts (resource) components.

What problem does it solve?

This Skill removes the friction of creating, reading, and editing Word documents by handling formatting-heavy work, XML-level document surgery, and reliable DOCX round-tripping.

Core Features & Use Cases

  • Document Creation: Build professional Word files with headings, tables, lists, images, headers, footers, page numbers, hyperlinks, and footnotes.
  • Document Editing: Unpack existing DOCX files, modify XML safely, accept tracked changes, add comments, and preserve formatting across edits.
  • Document Analysis and Conversion: Extract text, convert legacy DOC files, render documents to PDF or images, and validate OOXML structure before repacking.
  • Use Case: Use this Skill when turning meeting notes into a formatted report, updating a contract with tracked changes, or repairing a broken DOCX after manual XML edits.

Quick Start

Use the docx skill to turn the attached content into a professionally formatted Word document with clean headings, tables, and tracked changes.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I create a Word document with professional formatting and tracked changes?

To create a Word document with professional formatting and tracked changes, this Skill builds DOCX files with headings, tables, lists, images, headers, footers, hyperlinks, and footnotes. It unpacks existing DOCX files, modifies XML safely, and applies tracked changes while preserving formatting across edits.

Can I edit the XML inside a DOCX file without breaking the document structure?

Yes, you can edit XML inside a DOCX file without breaking the structure using DOCX-aware unpacking and repacking. This Skill validates the OOXML structure before repacking, ensuring reliable round-tripping and preventing corruption from manual XML modifications.

Does this Skill require LibreOffice to convert legacy DOC files to PDF?

Yes, LibreOffice conversion support is required to convert legacy DOC files. This Skill uses LibreOffice to render documents to PDF or images, extract text, and validate the OOXML structure before completing the conversion workflow.

What's the best way to accept tracked changes and add comments to an existing Word document?

The best way to accept tracked changes and add comments to an existing Word document is through XML-level document surgery. This Skill unpacks the DOCX file, safely modifies the underlying XML, accepts tracked changes, and adds comments while preserving the original formatting.

Why does my DOCX file get corrupted after manual XML edits?

Your DOCX file gets corrupted after manual XML edits because the OOXML structure was not validated before repacking. This Skill prevents this by using DOCX-aware unpacking, safe XML parsing with lxml and defusedxml, and structural validation before repacking the document.

Do I need lxml and defusedxml installed to parse Word document XML?

Yes, you need lxml and defusedxml installed to parse Word document XML safely. These dependencies provide the XML parsing support required for DOCX-aware unpacking, safe XML modification, and reliable document round-tripping during creation and editing workflows.