docx

Create and edit Word documents with tracked changes using OOXML.

10|3|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/rangerrick337/operator-os --skill docx-rangerrick337
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/rangerrick337/operator-os/tree/main/3.%20Skills/docx
Command: npx skills add https://github.com/rangerrick337/operator-os --skill docx-rangerrick337

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables automated creation, editing, and analysis of Word documents (.docx) with deterministic, trackable changes. It preserves formatting, comments, and tracked changes, reducing manual effort in document-heavy workflows.

Core Features & Use Cases

  • Document creation: Generate new Word documents with structured content, styling, and tables using OOXML primitives.
  • Editing with tracking: Apply edits while preserving existing tracked changes and author information.
  • Redlining and comments: Add and reply to comments, manage tracked changes, and maintain audit history.
  • Content extraction: Extract text and structure from Word documents for reporting or data pipelines.
  • Use Case: Automate contract draft iteration by programmatically applying changes and maintaining an auditable trail.

Quick Start

Use the docx skill to create a sample Word document named 'report.docx' containing a short paragraph and save it.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate Word document editing while preserving tracked changes?

You can automate Word document editing while preserving tracked changes by using Python-based OOXML tooling to manipulate .docx content, ensuring existing tracked changes, comments, and author information are maintained during load and save operations.

Can I programmatically add comments and redline Word documents?

Yes, you can programmatically add and reply to comments, manage tracked changes, and redline Word documents using OOXML primitives to maintain a complete audit history for collaborative editing workflows.

Does Python OOXML tooling support extracting text and structure from Word documents?

Python OOXML tooling supports extracting text and structure from Word documents, enabling content extraction for reporting or data pipelines while preserving content types during load and save operations.

What is the best way to generate Word documents with structured content and tables?

The best way to generate Word documents with structured content and tables is using Python OOXML primitives to create new .docx files with deterministic styling, ensuring formatting is preserved during automated document creation.

Do I need defusedxml to manipulate Word documents with Python?

Yes, you need defusedxml installed as a dependency to securely parse and manipulate Word documents, ensuring safe XML processing when applying tracked changes and modifying OOXML content.

Why does my tracked changes history get lost when editing Word documents programmatically?

Tracked changes history gets lost when editing Word documents programmatically if the tooling does not preserve content types during load and save operations; using Python-based OOXML tooling ensures deterministic edits with preserved formatting and audit trails.