docx

Create and edit Word .docx documents with tracked changes and comments.

Updated Jan 2, 2026
One-click install
npx skills add https://github.com/nickstrad/nick-stack-1 --skill docx-nickstrad
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/nickstrad/nick-stack-1/tree/main/.agents/skills/docx
Command: npx skills add https://github.com/nickstrad/nick-stack-1 --skill docx-nickstrad

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a programmable interface to create, edit, and analyze Word documents (.docx) with tracked changes, comments, preserved formatting, and text extraction capabilities. It enables automation of document workflows that previously required manual Word edits and offline reviews.

Core Features & Use Cases

  • Programming Word document creation, editing, and redlining with tracked changes and comments.
  • Faithful formatting preservation and text extraction for archival or downstream processing.
  • Use Case: Automate the preparation of contract revisions by applying tracked changes, adding reviewer comments, and exporting a clean final document.

Quick Start

Use the docx skill to initialize a Word workflow by loading an unpacked DOCX directory (requires Python environment with the required OOXML tooling) and applying a simple edit, then saving back to DOCX.

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

To automate Word document creation and editing with tracked changes, you can use a Python-based OOXML tooling stack to programmatically inject RSIDs, authors, and change tracking into .docx files. This enables automated contract drafting and reporting workflows.

Can I programmatically add reviewer comments to a Word document?

Yes, you can programmatically add reviewer comments to a Word document by manipulating the OOXML structure. The Skill provides an interface to inject author information and manage comments directly within the .docx format.

What is the best way to extract text from .docx files for downstream archival processing?

The best way to extract text from .docx files for downstream archival processing is using an OOXML tooling approach that ensures faithful formatting preservation. This allows reliable text extraction without losing document structure.

Does this Word document manipulation approach require a specific Python environment?

Yes, this Word document manipulation approach requires a Python environment with specific OOXML tooling dependencies, including defusedxml and lxml. These libraries handle the XML parsing and manipulation needed for .docx files.

How do tracked changes and RSIDs work when editing Word documents programmatically?

Tracked changes and RSIDs work in programmatically edited Word documents by injecting unique identifiers and author metadata into the OOXML structure. This ensures that all automated edits are recorded as distinct, reviewable changes within the document revision history.

Can I preserve original formatting when applying automated redlining to Word documents?

Yes, you can preserve original formatting when applying automated redlining to Word documents. The OOXML manipulation approach maintains faithful formatting while injecting tracked changes, ensuring document governance without visual degradation.

Related Skills