ck:docx

Create, inspect, and edit DOCX files via OOXML conversion and redlining workflows.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/MinhHoangDono/antigravity-kit --skill ck-docx-minhhoangdono
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ck:docx
Source: https://github.com/MinhHoangDono/antigravity-kit/tree/main/.agent/skills/document-skills/docx
Command: npx skills add https://github.com/MinhHoangDono/antigravity-kit --skill ck-docx-minhhoangdono

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill removes the guesswork of editing DOCX files by providing safe, structured workflows for creating documents, extracting content, and applying tracked changes and comments correctly.

Core Features & Use Cases

  • Create and edit DOCX files: Generate new Word documents from scratch or modify existing ones while preserving structure and formatting.
  • Analyze DOCX internals: Extract text via Pandoc or inspect raw OOXML (including comments, embedded media, and tracked changes).
  • Redlining workflow (tracked changes): Implement comprehensive insertions/deletions in batches with minimal, precise edits to keep revisions reviewable.
  • Use case: You need to update a legal agreement: convert it to markdown for review, unpack OOXML, apply required tracked changes in batches, then repack into a validated DOCX.

Quick Start

Ask the skill to apply a redlined set of tracked changes to the attached DOCX, preserving formatting and implementing changes in logical batches.

Frequently Asked Questions about ck:docx

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

FAQPage Schema
How do I apply tracked changes and redlining to a DOCX file programmatically?

To apply tracked changes and redlining to a DOCX file, you can unpack the OOXML structure and implement precise insertions and deletions using nested <w:del> and <w:ins> patterns. Revisions are applied in logical batches to keep edits reviewable and compliant before repacking into a validated document.

What is the best way to extract raw text and embedded media from a DOCX document for legal review?

Extracting text and embedded media from a DOCX document requires inspecting the raw OOXML structure or converting the file to markdown using Pandoc. This workflow enables efficient content extraction and legal review while preserving document formatting and underlying assets.

How do I create a new Word document from scratch while preserving complex formatting?

Creating a new Word document while preserving complex formatting involves generating valid OOXML structures from the ground up. This approach ensures structural integrity and formatting compliance by directly manipulating the underlying XML components.

Does this approach support batch processing for multiple revisions in legal agreements?

Yes, this approach supports batch processing for multiple revisions in legal agreements. It uses structured unpack and pack steps to apply tracked changes in logical batches, ensuring minimal and precise edits that keep revisions reviewable for compliance.

Can I inspect and modify comments within a DOCX file without breaking the document structure?

Inspecting and modifying comments within a DOCX file without breaking structure is possible by unpacking the OOXML to access raw components. This allows direct manipulation of comment XML nodes while maintaining the integrity of the original document.

When should I use OOXML manipulation instead of Pandoc for DOCX text extraction?

You should use OOXML manipulation instead of Pandoc when you need to inspect raw XML components like comments, tracked changes, or embedded media. Pandoc is better suited for simple text conversion to markdown, while OOXML manipulation provides deep structural access for compliant editing.