docx

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

Updated Feb 2, 2026
One-click install
npx skills add https://github.com/notaustindaniels/second-brain-skills --skill docx-notaustindaniels
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/notaustindaniels/second-brain-skills/tree/main/.claude/skills/docx
Command: npx skills add https://github.com/notaustindaniels/second-brain-skills --skill docx-notaustindaniels

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Claude users spend time manually creating, editing, and reviewing professional Word documents. This skill automates creation, editing, tracked changes, comments, and content extraction for Word (.docx) files, while preserving formatting and audit trails.

Core Features & Use Cases

  • Document creation: programmatically generate Word documents with structured content such as titles, headings, and lists.
  • Editing and redlining: apply tracked changes and comments to documents for review workflows.
  • Text extraction and preservation: extract text while preserving formatting and metadata for downstream processing.
  • Use Case: a legal or knowledge-work team drafts, iterates on, and finalizes a contract or SOP with tracked changes and reviewer comments.

Quick Start

Use the docx skill to generate a new Word document with a title and a header, then apply a tracked change to a paragraph and attach a comment for reviewers.

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?

You can automate Word document creation by using scripts to programmatically generate DOCX files with structured content like titles and headings, while applying tracked changes and comments for professional review workflows.

Can I extract text from a DOCX file while preserving formatting and metadata?

Yes, you can extract text from DOCX files while preserving formatting and metadata for downstream processing. This allows knowledge workers to pull structured content from Word documents without losing audit trails or styling information.

Does this approach to document editing require any specific Python libraries?

Yes, document editing and OOXML manipulation rely on the defusedxml and lxml Python libraries. These dependencies enable secure XML parsing required to modify Word documents while maintaining formatting fidelity.

What is the best way to apply redlining to contracts or SOPs programmatically?

The best way to apply redlining to contracts or SOPs is through automated tracked changes and reviewer comments. This enables legal and knowledge-work teams to draft, iterate on, and finalize documents with full audit trails.

Are there limitations when manipulating OOXML for Word document workflows?

Limitations of OOXML manipulation include potential formatting fidelity issues if the XML structure is not preserved correctly. The skill uses defusedxml to mitigate risks, but complex Word formatting may require careful handling to avoid breaking document integrity.