docx

Create, edit, and analyze Word DOCX documents with Python OOXML tooling.

24|2|Updated Dec 30, 2025
One-click install
npx skills add https://github.com/michaelboeding/skills --skill docx-michaelboeding
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/michaelboeding/skills/tree/main/skills/docx
Command: npx skills add https://github.com/michaelboeding/skills --skill docx-michaelboeding

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables automated Word DOCX document creation, editing, and analysis, preserving formatting and enabling efficient collaboration through redlining and comments.

Core Features & Use Cases

  • Comprehensive DOCX creation, editing, and analysis using Python OOXML tooling and the Document Library for automated workflows.
  • Built-in support for tracked changes and comments, enabling reproducible reviews, document approvals, and change tracking.
  • Text extraction and formatting preservation to support archival, content extraction, and downstream processing.

Quick Start

Create a new Word document using the DOCX library and apply a sample tracked change and comment, then save.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate creating and editing Word documents with tracked changes?

Tracked changes in Word documents automate the redlining process by marking insertions, deletions, and formatting modifications. This Skill uses Python OOXML tooling to create and edit DOCX files with native tracked changes, enabling reproducible reviews and document approvals without manual markup.

Can I add comments to Word documents programmatically?

Yes, this Skill supports adding comments to DOCX documents programmatically. Comments are embedded in the Word file and preserved during editing, making them suitable for automated review workflows, feedback loops, and collaborative document processing.

How do I extract text from Word documents while preserving formatting?

Text extraction from DOCX files preserves formatting by parsing the underlying OOXML structure. This Skill extracts content while maintaining layout, styles, and structure, enabling downstream processing for archival, content reuse, or automated analysis without losing document integrity.

What dependencies do I need to work with DOCX automation in Python?

DOCX automation requires XML parsing and validation libraries. This Skill uses defusedxml for secure XML handling and lxml for document structure manipulation, providing safe pack/unpack utilities to manage the OOXML format end-to-end.

Can I automate Word document workflows for document review and approval?

Document review and approval workflows benefit from automated tracked changes and comments. This Skill creates reproducible DOCX processing pipelines that track modifications and embed feedback, streamlining collaborative drafting, review cycles, and final archival.

Does this work for batch processing multiple Word documents?

Yes, this Skill supports end-to-end DOCX workflows suitable for batch operations. Python-based automation enables processing multiple documents with consistent tracked changes, comment insertion, and formatting preservation across large document sets.