docx

Create, read, edit, and analyze Word documents with Python and docx-js.

Updated Mar 13, 2026
One-click install
npx skills add https://github.com/UNO998/rla_skills --skill docx-uno998
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/UNO998/rla_skills/tree/main/docx
Command: npx skills add https://github.com/UNO998/rla_skills --skill docx-uno998

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Word documents (.docx) are central to business communication, but creating, editing, and formatting them programmatically can be time-consuming and error-prone. This skill provides a self-contained workflow to generate new documents, read and analyze existing ones, and perform advanced edits like inserting images, tables, headers/footers, and handling tracked changes.

Core Features & Use Cases

  • Create new documents with programmatic content and styles.
  • Read, analyze, and modify existing .docx files including images, tables, and tracked changes.
  • Validate OOXML structure and repair common issues to ensure cross-compatibility and predictable rendering; export or convert via supported tools.

Quick Start

Create a sample Word document from an outline and save it as a polished .docx.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate Word document creation with consistent styling and images?

Automate Word document creation by using Python tooling and docx-js to programmatically generate .docx files with consistent styling, images, and tables. This workflow ensures deterministic output and validates OOXML structure for predictable rendering.

Can I read and modify tracked changes in an existing .docx file?

Yes, you can read, analyze, and modify existing .docx files including tracked changes, images, and tables. The workflow handles advanced edits while validating OOXML structure and repairing common issues to maintain cross-compatibility.

What's the best way to programmatically format Word documents for reports and resumes?

The best way to programmatically format Word documents for reports and resumes is using a self-contained workflow that applies consistent headers, footers, and styles across multiple documents. It ensures deterministic results with OOXML validation and repair.

Does this approach validate OOXML structure and repair common formatting issues?

Yes, this approach validates OOXML structure and repairs common issues to ensure cross-compatibility and predictable rendering across Word documents. This validation step is built into the deterministic workflow for creating and editing .docx files.

Do I need Python and lxml to generate and edit Word documents?

Yes, you need Python with lxml and defusedxml dependencies to generate and edit Word documents programmatically. These libraries support XML parsing and structure validation required for reliable OOXML output and document manipulation.

What are the limitations of automating .docx formatting with Python tooling?

Automating .docx formatting with Python tooling requires handling OOXML structure carefully to avoid rendering errors. While it validates and repairs common issues, complex tracked changes across multiple documents may need additional manual review for complete cross-compatibility.