docx

Automate DOCX creation, editing, and QA with Python-based tooling.

1.8k|247|Updated Feb 16, 2026
One-click install
npx skills add https://github.com/phodal/routa --skill docx-phodal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/phodal/routa/tree/main/tools/office-skills/.agents/skills/docx
Command: npx skills add https://github.com/phodal/routa --skill docx-phodal

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-docx, lxml, Pillow, pdf2image, defusedxml, and includes scripts (resource) components.

What problem does it solve?

Creating, editing, and validating DOCX documents is often a multi-tool, error-prone process. This Skill consolidates those steps into a programmable, repeatable workflow.

Core Features & Use Cases

  • Create, edit, render, and validate DOCX documents using a consistent, scriptable workflow.
  • Patch OOXML for advanced tasks like content controls, tracked changes, comments, and accessibility checks.
  • Render and diff DOCX pages to QA artifacts to ensure layout and content fidelity across environments.
  • Use cases include templated reports, QA pipelines, and automated document preparation for software delivery.

Quick Start

Run an end-to-end DOCX workflow: author content, apply templates, render pages, and verify with visual QA.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate DOCX workflow creation and visual QA in a CI pipeline?

Automate DOCX workflow creation and visual QA by scripting document generation, applying templates, rendering pages to images, and diffing outputs to verify layout fidelity. This scriptable approach ensures reliable final documents in automated review cycles.

Can I patch OOXML directly to add content controls and tracked changes in Word documents?

Yes, you can patch OOXML directly to inject content controls, tracked changes, and comments into Word documents. This allows advanced template-driven document production beyond standard API capabilities while maintaining structural integrity.

What's the best way to validate DOCX accessibility and layout fidelity programmatically?

Validate DOCX accessibility and layout fidelity programmatically by rendering pages to QA artifacts and running automated checks. This catches rendering inconsistencies and accessibility issues before final document delivery.

Does this DOCX automation approach work with python-docx and lxml for template-driven reports?

Yes, DOCX automation works with python-docx and lxml for template-driven reports. You can script content creation, edit headings and tables, and patch underlying OOXML for complex document requirements.

How do I render and diff DOCX pages to ensure content consistency across environments?

Render DOCX pages to images using pdf2image and Pillow, then diff the outputs to ensure content consistency across environments. This visual QA step verifies that layout and content fidelity remain stable.

Why does my DOCX template patching lose formatting when applying tracked changes?

DOCX template patching may lose formatting if OOXML modifications bypass python-docx structural constraints. Use defusedxml for secure parsing and ensure patches align with the document schema to maintain formatting integrity.