docx

Create, edit, and redline Word documents with tracked changes and comments.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/designershubh1208-pixel/on-block --skill docx-designershubh1208-pixel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/designershubh1208-pixel/on-block/tree/main/skills/docx
Command: npx skills add https://github.com/designershubh1208-pixel/on-block --skill docx-designershubh1208-pixel

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables automated creation, editing, and analysis of Word documents (.docx) with support for tracked changes, comments, formatting preservation, and text extraction, reducing manual document workflows.

Core Features & Use Cases

  • Document authoring & formatting: Programmatically generate well-formatted Word documents from templates.
  • Editing & review with tracking: Apply edits and manage tracked changes with robust redlining workflows.
  • Commenting & collaboration: Attach inline comments and manage review cycles within Word documents.
  • Real-world scenario: Draft a contract, insert reviewer comments, track changes, and export a review-ready document.

Quick Start

Use the docx skill to create a new document, apply a tracked change, and add a comment to demonstrate the end-to-end workflow.

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 using OOXML-aware tooling to generate .docx files, apply redlining via tracked changes, and insert inline comments for collaborative review cycles.

What is the best way to programmatically edit a .docx file while preserving formatting?

Programmatically edit a .docx file while preserving formatting by leveraging OOXML manipulation libraries like lxml and defusedxml to deterministically modify document structure without breaking existing layouts.

Can I use lxml to add tracked changes to existing Word documents?

Yes, you can use lxml to add tracked changes to existing Word documents by manipulating the underlying OOXML structure to enforce redlining and manage document review workflows.

Does this approach support contract drafting and proposal generation workflows?

This approach supports contract drafting and proposal generation by automating document authoring, applying tracked changes for redlining, and attaching comments to produce review-ready Word documents.

Do I need defusedxml to safely extract text and manage document automation?

Yes, you need defusedxml to safely parse XML during document automation, ensuring secure text extraction and protected manipulation of OOXML elements within Word files.

Why does my OOXML document automation fail to maintain redlining across review cycles?

OOXML document automation may fail to maintain redlining if the underlying XML structure is improperly modified, requiring deterministic OOXML-aware tooling to correctly preserve tracked changes and comments.