docx

Create and edit Word documents with tracked changes and comments.

Updated Jan 20, 2026
One-click install
npx skills add https://github.com/lukebaze/forex-rebate-bot --skill docx-lukebaze
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/lukebaze/forex-rebate-bot/tree/main/.claude/skills/document-skills/docx
Command: npx skills add https://github.com/lukebaze/forex-rebate-bot --skill docx-lukebaze

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Automates Word document creation, editing, and analysis with tracked changes and comments.

Core Features & Use Cases

  • Document creation and template modification with preserving formatting.
  • Tracking changes and comments via built-in redlining workflows.
  • Text extraction, formatting preservation, and content assembly for reports.
  • Use case: Generate a contract from a template and apply redlines for review.

Quick Start

Create a new Word document from a template and enable tracked changes and comments to begin collaborative editing.

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 creation with tracked changes and comments?

Automate Word document creation by applying deterministic OOXML manipulation to insert, delete, and comment on text while preserving formatting and collaboration redlines. This Skill handles automated insertion and deletion tracking for corporate drafting and report generation.

Can I generate a contract from a template and apply redlines automatically?

Yes, you can generate a contract from a template and apply redlines automatically. The tooling supports template modification with formatting preservation and built-in redlining workflows for legal agreements and corporate drafting.

Does this approach require lxml and defusedxml for OOXML manipulation?

Yes, OOXML manipulation requires the lxml and defusedxml dependencies. These libraries process Word processing XML structures deterministically, ensuring content integrity validation and safe parsing during document editing and text extraction.

What is the best way to extract text from Word documents while preserving formatting?

The best way to extract text while preserving formatting is using deterministic OOXML manipulation via the provided Python scripts. This approach ensures content assembly for reports and maintains document structure integrity during text extraction.

How do tracked changes and comment handling work in automated Word processing?

Tracked changes and comment handling work through automated insertion and deletion tracking applied directly to OOXML structures. This preserves formatting and collaboration metadata during document editing and template modification workflows.

Are there limitations when modifying Word templates with automated redlining workflows?

Limitations of automated redlining workflows depend on valid OOXML structures and content integrity validation. Complex template modifications require deterministic manipulation to preserve formatting, and malformed XML structures may cause processing failures during document editing.