docx

Generate and modify Word documents by manipulating WordprocessingML.

1|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/Rysnz/OpenHarness --skill docx-rysnz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Rysnz/OpenHarness/tree/main/src/crates/core/builtin_skills/docx
Command: npx skills add https://github.com/Rysnz/OpenHarness --skill docx-rysnz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires defusedxml, lxml.

What problem does it solve?

Automate creation, reading, editing, and formatting of Word documents (.docx) to save time and ensure consistency.

Core Features & Use Cases

  • Create new .docx files programmatically, applying headings, tables, and basic formatting using a Word document library.
  • Read and analyze Word documents by inspecting WordprocessingML (XML) to extract content, verify structure, and validate formatting.
  • Generate templates and documents (letters, reports, proposals) from structured data sources, enabling repeatable result quality.

Quick Start

Create a polished Word document from a structured outline and apply basic formatting.

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 generation from structured data?

Automating Word document generation from structured data is achieved by manipulating WordprocessingML and applying a docx library to populate templates. This enables repeatable, deterministic creation of letters, reports, and proposals with consistent formatting.

How do I read and extract content from a .docx file programmatically?

Reading and extracting content from a .docx file programmatically involves inspecting the underlying WordprocessingML XML structure. This approach allows you to extract text, verify document structure, and validate formatting against DOCX schemas.

Does defusedxml and lxml work with WordprocessingML for DOCX formatting validation?

Yes, defusedxml and lxml work with WordprocessingML to parse and validate DOCX formatting. Using these dependencies ensures reliable XML processing and schema validation when creating or editing Word documents.

What is the best way to edit an existing Word document without losing formatting?

The best way to edit an existing Word document without losing formatting is by directly manipulating the WordprocessingML XML. This method applies targeted modifications while validating changes against DOCX schemas to ensure outputs remain reliable.

When do I need to validate WordprocessingML against DOCX schemas during document automation?

Validating WordprocessingML against DOCX schemas is needed during document automation to ensure reliable outputs and prevent structural corruption. This validation confirms that programmatically created or edited Word documents maintain correct formatting.