docx

Generate and edit DOCX files via XML unpack, modify, and repack workflows.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/living-relation/tailormade --skill docx-living-relation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/living-relation/tailormade/tree/main/.agents/skills/anthropics--docx
Command: npx skills add https://github.com/living-relation/tailormade --skill docx-living-relation

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill eliminates the manual effort of creating, editing, and validating polished Word (.docx) documents by providing reliable workflows for document generation and direct DOCX XML manipulation.

Core Features & Use Cases

  • DOCX generation and formatting: Create Word documents with consistent page sizing, typography, headings, tables, lists, TOCs, headers/footers, hyperlinks, footnotes, images, and page breaks.
  • DOCX editing via unpack/edit/pack: Unpack DOCX to editable XML, perform controlled edits (including tracked changes and comments), then pack back into a validated DOCX.
  • Document integrity and redline hygiene: Validate XML against Word XSD schemas, auto-repair common OOXML issues, and support accepting tracked changes and adding comments.
  • Use Case: Turn a rough outline into a formatted Word report with a table of contents, consistent headings, and embedded images—then apply tracked edits and comments for review.

Quick Start

Use the docx skill to convert your requested report into a professionally formatted .docx document.

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 a table of contents and embedded images?

Generate Word documents with TOCs, headings, tables, lists, and images by using docx-js for creation guidance and ensuring deterministic document packaging. This workflow turns rough outlines into professionally formatted .docx files.

Can I add tracked changes and comments to an existing DOCX file without breaking the XML structure?

Add tracked changes and comments by unpacking the DOCX archive, modifying the XML directly while maintaining correct comment and track-change relationships, then repacking it into a validated output file.

How do I perform a find-and-replace inside a Word document at the XML level?

Find-and-replace at the XML level by unpacking the existing DOCX archive, editing the underlying XML code directly, and repacking it back into a valid DOCX file.

Why does my edited DOCX file have broken formatting or invalid XML constraints after repacking?

Edited DOCX files break formatting when OOXML constraints are violated. Validate the XML against Word XSD schemas and auto-repair common issues like xml:space and durableId constraints before repacking.

Do I need pandoc and LibreOffice installed to create and edit Word documents?

Dependencies like pandoc, LibreOffice, poppler, and soffice are required to support the document generation, unpacking, XML validation, and repacking workflows for creating and editing DOCX files.

What is the best way to automate report creation and apply redline edits to Word documents?

Automate report creation by generating formatted .docx files with docx-js, then apply redline edits by unpacking the archive for XML-level tracked changes, validating against schemas, and repacking the output.