docx

Process DOCX files by editing Office XML, tracked changes, and comments.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Enables reliable programmatic creation, editing, inspection, and repair of .docx (Word) files by operating on the Office XML package, removing the need for fragile manual edits and ad-hoc tooling.

Core Features & Use Cases

  • Unpack and pretty-print DOCX package XML for direct editing and validation.
  • Edit tracked changes and comments, accept or export redlines, and merge adjacent runs to produce clean documents.
  • Pack and validate DOCX/PPTX/XLSX with schema checks, auto-repair for common ID/whitespace issues, and integration with LibreOffice for conversions.
  • Use Case: Automate accepting tracked changes across many collaborators, repair durableId/paraId issues, and repack a validated DOCX for downstream publishing.

Quick Start

Open an existing DOCX, accept all tracked changes, and write a clean output file using the provided accept_changes script.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I programmatically accept tracked changes in a Word DOCX file?

You can programmatically accept tracked changes in a DOCX file by unpacking the Office XML, merging adjacent runs, and repacking the validated document using the provided accept_changes script for clean output.

What is the best way to edit Office XML directly to repair durableId and paraId issues?

The best way to repair durableId and paraId issues is by unpacking and pretty-printing the DOCX package XML for direct editing, applying auto-repair for common ID issues, and validating with schema checks.

Does this approach support validating and repacking PPTX and XLSX files, or just DOCX?

This approach supports validating and repacking PPTX and XLSX files alongside DOCX, providing schema checks and auto-repair for common whitespace and ID issues across Office XML packages.

How do I preserve redlines and comments when converting Word documents with LibreOffice?

To preserve redlines and comments during conversion, you can unpack the DOCX XML to edit or export tracked changes, then integrate with LibreOffice to convert formats while maintaining editorial redlining.

Why does XSD validation fail when unpacking DOCX packages for XML-level editing?

XSD validation can fail during XML-level editing due to malformed IDs or whitespace issues, but this is resolved by using auto-repair functionality to fix common durableId and paraId problems before repacking.

Can I use docx-js integration to automate editorial workflows for Word documents?

Yes, you can use docx-js integration to automate editorial workflows by combining XML-level editing, tracked changes acceptance, and format conversion to produce validated DOCX files for downstream publishing.