docx

Create, edit, and analyze DOCX files via XML manipulation and Python scripts.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Word document workflows often require manual, repetitive editing and formatting. This Skill automates DOCX creation, reading, editing, and analysis to save time and reduce errors.

Core Features & Use Cases

  • Create new documents programmatically using docx-js for consistent formatting.
  • Read and analyze content by unpacking DOCX and parsing underlying XML.
  • Edit existing documents by manipulating the document.xml and related parts, then repack into a new DOCX.
  • Validate and repair common issues (e.g., whitespace preservation, tracked changes) using bundled Python scripts and tooling.
  • Use cases include generating reports, templates, or letters with structured formatting and tracked-change handling.

Quick Start

Unpack a sample DOCX, edit its word/document.xml using the included scripts, then repack to produce a revised .docx.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I programmatically edit a Word document and manipulate its XML?

To create a Word document programmatically, this Skill uses docx-js to generate new .docx files with consistent formatting. It automates the document creation workflow to produce structured reports, templates, or letters while reducing repetitive manual errors.

Can I preserve tracked changes and validate whitespace when editing DOCX files?

Yes, this Skill supports reading and analyzing DOCX content by unpacking the file and parsing its underlying XML structure. This allows you to extract and inspect document content programmatically for automated document analysis workflows.

What is the best way to generate structured reports and templates in DOCX format?

Yes, you can automate end-to-end DOCX processing including creation, editing, validation, and tracked-change handling. The Skill provides frontmatter-driven discovery, XML-based editing, and bundled scripts to support complete document workflow automation.

Does this approach work with existing Word documents or only for creating new ones?

This Skill handles DOCX files by unpacking them to parse underlying XML, manipulating document.xml and related parts, then repacking into a new .docx. It uses lxml and defusedxml for secure XML processing during document editing workflows.