office-docx

Unpack, edit, validate, and repack Word DOCX files via Python scripts.

8|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/ChoshimWy/iOSAgentSkills --skill office-docx-choshimwy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: office-docx
Source: https://github.com/ChoshimWy/iOSAgentSkills/tree/main/skills/office-docx
Command: npx skills add https://github.com/ChoshimWy/iOSAgentSkills --skill office-docx-choshimwy

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Word DOCX documents require careful handling of content, structure, and revision metadata. This skill provides a robust workflow to read, extract, modify, and QA DOCX files without manual MS Word interactions.

Core Features & Use Cases

  • Read and extract content from DOCX files, including tracked changes and comments.
  • Unpack and modify the underlying WordprocessingML XML safely, enabling templating and automation.
  • Validate document structure and content types via existing scripts and re-pack into a clean DOCX for delivery.

Quick Start

Use the end-to-end workflow to unpack a Word DOCX, edit its content via the XML scripts, validate with the toolkit, and repack into a final DOCX.

Frequently Asked Questions about office-docx

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

FAQPage Schema
How do I automate editing Word DOCX files without opening Microsoft Word?

Automate DOCX editing without Microsoft Word by unpacking the file, modifying its underlying WordprocessingML XML using Python scripts, and re-packing it into a final validated DOCX document.

What is the best way to extract tracked changes and comments from a DOCX file?

Extracting tracked changes and comments from a DOCX file requires parsing the internal document XML. This skill uses robust libraries like lxml and defusedxml to read and extract that revision metadata safely.

How do I validate Word document structure before repacking?

Validate Word document structure before repacking by running the provided Python validation scripts against the unpacked XML content to ensure structure and content types conform to DOCX standards.

Does DOCX XML editing with lxml support template-driven document automation?

Yes, DOCX XML editing with lxml supports template-driven document automation by allowing you to safely unpack and modify the underlying WordprocessingML structure to inject dynamic content.

Do I need defusedxml and lxml to safely process WordprocessingML XML?

Yes, you need defusedxml and lxml to safely process WordprocessingML XML because these dependencies provide robust XML parsing and security against malicious payloads during document automation workflows.