docx

Create and edit Word .docx files with tables, lists, and tracked changes.

947|163|Updated Jan 13, 2026
One-click install
npx skills add https://github.com/guanyang/antigravity-skills --skill docx-guanyang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/guanyang/antigravity-skills/tree/main/skills/docx
Command: npx skills add https://github.com/guanyang/antigravity-skills --skill docx-guanyang

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the creation and modification of Word documents, eliminating the need for manual formatting and complex operations.

Core Features & Use Cases

  • Document Generation: Programmatically create new Word documents with custom formatting, styles, tables, lists, and images.
  • Document Editing: Modify existing Word documents, including accepting tracked changes, adding comments, and performing find-and-replace operations on the XML level.
  • Use Case: Generate a professional business proposal with a table of contents, specific headings, and embedded images, all from a simple script.

Quick Start

Use the docx skill to create a new document with a title and a heading.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I generate Word documents with complex formatting like tables and headers programmatically?

You can generate Word documents with custom formatting, tables, lists, headers, footers, and images programmatically. This approach utilizes the docx JavaScript library to build structured files without manual formatting.

Can I accept tracked changes and add comments to an existing .docx file?

Yes, you can modify existing .docx files by accepting tracked changes and adding comments. This is achieved by manipulating the underlying XML structure of the document directly.

What is the best way to perform find-and-replace operations on a Word document at the XML level?

The best way to perform find-and-replace operations on a Word document is through direct XML manipulation. This allows precise editing of the underlying .docx structure beyond standard text replacements.

Does this document generation approach work with pandoc for editing existing Word files?

Yes, document editing and manipulation can rely on pandoc or direct XML manipulation. This allows you to modify existing Word documents and handle complex operations like accepting tracked changes.

How do I create a Word document with a table of contents and embedded images from a script?

You can create a Word document with a table of contents, specific headings, and embedded images directly from a simple script. The document generation process uses the docx JavaScript library to apply these complex layouts.

When do I need direct XML manipulation for Word document editing?

You need direct XML manipulation for Word document editing when handling complex modifications like accepting tracked changes or performing precise find-and-replace operations that standard document generation libraries cannot access.