docx

Create and edit Word documents with tracked changes and comments.

31.8k|3.2k|Updated Aug 7, 2025
One-click install
npx skills add https://github.com/iOfficeAI/AionUi --skill docx-iofficeai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/iOfficeAI/AionUi/tree/main/skills/docx
Command: npx skills add https://github.com/iOfficeAI/AionUi --skill docx-iofficeai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the creation, editing, and auditing of Word documents (.docx), preserving formatting, enabling precise tracked changes and comments, and reducing manual repetitive work.

Core Features & Use Cases

  • Document creation and modification with tracked changes to capture edits.
  • Commenting and review workflows to facilitate team collaboration inside documents.
  • Formatting preservation and extraction to maintain layout while querying text or data.
  • Use Case: When reviewing a proposal, apply edits via tracked changes and add comments, then re-pack the final document for distribution.

Quick Start

To begin, run the docx skill to create a new document with tracked changes on sample content.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I create and edit Word documents with tracked changes in Python?

Tracked changes in Word documents capture edits as revisions, preserving the original content and metadata. Use Python-based OOXML tooling to programmatically apply tracked changes when creating or modifying .docx files, enabling audit trails and collaborative review workflows without manual intervention.

Can I add comments to Word documents programmatically?

Yes. Comments enable team collaboration within documents. Automate comment insertion alongside tracked changes using Python scripts that manipulate the underlying OOXML structure, facilitating distributed review processes and feedback aggregation in .docx files.

How do I preserve formatting when editing DOCX files programmatically?

Formatting preservation requires direct manipulation of the OOXML specification underlying Word documents. Python-based OOXML libraries handle layout, styles, and structure during edit operations, ensuring that programmatic changes maintain visual and structural integrity across document revisions.

What's the best way to automate Word document workflows with Python?

Automate document creation, modification, and review cycles using Python scripts that handle OOXML parsing, tracked changes, and comment management. This approach reduces manual repetition in proposal reviews, feedback cycles, and collaborative editing at scale.

Does Python OOXML tooling handle security for untrusted XML content?

Defusedxml prevents XML injection attacks by safely parsing untrusted content before OOXML processing. When automating Word document handling from external sources, defusedxml protects against entity expansion and other XML-based vulnerabilities in .docx payloads.