docx

Create, edit, and validate DOCX files while preserving OOXML integrity.

1|Updated Feb 16, 2026
One-click install
npx skills add https://github.com/Ieer/OpenClaw-PWTInstaller --skill docx-ieer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Ieer/OpenClaw-PWTInstaller/tree/main/panopticon/global-skills/docx
Command: npx skills add https://github.com/Ieer/OpenClaw-PWTInstaller --skill docx-ieer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-docx, pandoc, and includes scripts (resource) components.

What problem does it solve?

This skill enables reliable creation, editing, and validation of Word documents (.docx) while preserving structure, styles, and OOXML integrity across edits and conversions.

Core Features & Use Cases

  • Structured document creation from templates or Markdown drafts with correct headings, lists, and tables
  • Safe in-place editing of existing Word files while preserving styles, numbering, and track changes
  • OOXML analysis and repair of core parts (word/document.xml, word/styles.xml, word/numbering.xml, relationships) to ensure Word compatibility
  • Use cases include generating reports, contracts, SOPs, and technical docs with consistent formatting

Quick Start

Provide a Markdown draft to generate a properly structured DOCX with correct headings and numbering

Frequently Asked Questions about docx

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

FAQPage Schema
How do I generate a Word document from a Markdown draft while preserving styles and numbering?

Yes, you can safely perform in-place editing of existing Word files while preserving styles, numbering, and track changes. The skill validates OOXML relationships and uses safe fallbacks to maintain document compatibility.

How does OOXML validation work for repairing Word documents?

OOXML validation works by analyzing and repairing core document parts like word/document.xml, word/styles.xml, and word/numbering.xml. This ensures structural relationships are maintained and guarantees Word compatibility across edits and conversions.

Do I need python-docx and pandoc to edit DOCX files with this approach?

Yes, python-docx and pandoc are required dependencies for creating, editing, and validating DOCX files. They enable structured document generation from templates and ensure OOXML integrity during transformations.

What is the best way to create structured reports and contracts in Word format?

The best way to create structured reports and contracts in Word format is by using templates or Markdown drafts that enforce correct headings and numbering. This approach maintains consistent formatting and OOXML integrity for technical documents.

Why does my Word document lose numbering and styles after editing?

Numbering and styles are lost when OOXML relationships between word/document.xml, word/styles.xml, and word/numbering.xml are broken during edits. Validating these core parts and using safe fallbacks preserves formatting integrity.