docx

Create, edit, and analyze DOCX documents with tracked changes and comments.

5|Updated Nov 18, 2025
One-click install
npx skills add https://github.com/krishagel/geoffrey --skill docx-krishagel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/krishagel/geoffrey/tree/main/skills/docx
Command: npx skills add https://github.com/krishagel/geoffrey --skill docx-krishagel

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates Word document workflows, including tracked changes, comments, and preservation of formatting.

Core Features & Use Cases

  • Tracked changes: programmatically manage insertions and deletions.
  • Comment management: add, reply to, and resolve comments.
  • Editing workflows: read, edit, and repackage OOXML documents while preserving structure.

Quick Start

Process an editing scenario by applying a comment to a targeted paragraph in a sample docx.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I add tracked changes to a Word document programmatically?

Tracked changes in DOCX files are managed through OOXML markup with RSIDs (revision session IDs) and author metadata. This Skill automates insertions and deletions while preserving the document structure and change history for review workflows.

Can I extract and modify comments in DOCX files without losing formatting?

Yes. This Skill reads, edits, and repackages OOXML documents—including the comments.xml component—while maintaining formatting, structure, and comment metadata across professional editing workflows.

What's the best way to automate Word document creation with redlining?

Build new Word documents and apply redlining by managing OOXML components (word/document.xml, _rels, [Content_Types].xml) with tracked-change integrity. This Skill handles document creation, modification, and schema validation for automated workflows.

How do I extract text from DOCX files while preserving document structure?

Text extraction from DOCX uses pandoc integration alongside direct OOXML parsing. This Skill extracts content while maintaining relationships between document components and structural integrity.

Does this support comment replies and resolution workflows in Word documents?

Yes. This Skill manages the full comment lifecycle—adding, replying to, and resolving comments—while maintaining author metadata and comment threading within OOXML's comments.xml structure.

What validation does this perform on OOXML structure?

Schema validation enforces OOXML integrity across document.xml, relationships, and content types. This ensures tracked changes maintain RSIDs, comments preserve metadata, and repackaged documents remain valid Word files.