docx

Create and edit DOCX files by transforming and validating OOXML structure.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docx-js, python, pandoc, LibreOffice, gcc, lxml, defusedxml, validators, and includes scripts (resource) components.

What problem does it solve?

This Skill removes the hard, error-prone work of creating, editing, or polishing Microsoft Word documents by giving you reliable, structured procedures for generating and manipulating DOCX files (including tables, page layout, images, hyperlinks, and tracked changes).

Core Features & Use Cases

  • Create DOCX from scratch: Generate new .docx files using docx-js and validate the output for correctness.
  • Edit existing DOCX files safely: Unpack DOCX to XML, apply precise XML changes, then repack with repair/validation support.
  • Work with advanced Word features: Handle page size/orientation, headers/footers, tables (with correct widths), images, hyperlinks/bookmarks, footnotes, tab stops, table of contents, comments, and tracked changes.
  • Produce clean revision outputs: Accept tracked changes using LibreOffice automation to create a final, cleaned document.
  • Validate Office XML: Run schema validation and tracked-change consistency checks to catch corrupt/invalid structure early.

Quick Start

Use the docx skill to generate a polished Word memo from the attached outline and return a downloadable .docx file.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I edit the underlying XML of a Word document to change page layout?

You can generate DOCX files from scratch using docx-js, then validate the generated output against Office schemas and common repair rules to ensure the final document is structurally correct.

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

DOCX editing handles tables with correct widths, hyperlinks, bookmarks, footnotes, tab stops, table of contents, headers, footers, and images by manipulating the underlying OOXML structure safely.

Can I convert older DOC files to DOCX using this approach?

Yes, DOCX conversion tasks are supported, including converting older DOC files to DOCX format and transforming DOCX documents into PDF or images using pandoc and LibreOffice.

How do I validate OOXML structure to catch corrupt Word documents?

You validate OOXML by running schema validation and tracked-change consistency checks against Office schemas to detect corrupt or invalid XML structure early before repacking the document.

Do I need Python and LibreOffice installed to generate and edit Word documents?

Yes, generating and editing Word documents requires Python, LibreOffice, pandoc, docx-js, and lxml installed in your environment to support unpacking, XML transformation, validation, repacking, and format conversion tasks.

What is the best way to handle tracked changes and comments in Word documents?

The best way to handle tracked changes and comments in Word documents is to unpack the DOCX to XML, apply precise tracked-change manipulations, and then use LibreOffice automation to accept revisions and produce a clean final document.