docx

Create and edit .docx files with styling, tables, and tracked changes.

139|15|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/Golden2002/legal-research-skill --skill docx-golden2002
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Golden2002/legal-research-skill/tree/main/docx
Command: npx skills add https://github.com/Golden2002/legal-research-skill --skill docx-golden2002

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docx, pandoc, libreoffice, poppler-utils, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the creation and modification of professional Word documents (.docx files), eliminating the need for manual formatting and complex document manipulation.

Core Features & Use Cases

  • Document Generation: Create new .docx files from scratch using JavaScript libraries.
  • Content Editing: Modify existing .docx files by unpacking, editing XML, and repacking.
  • Tracked Changes: Accept or manage tracked changes within documents.
  • Use Case: Generate a formal business proposal, complete with a table of contents, specific formatting, and tracked changes for review, all through AI commands.

Quick Start

Use the docx skill to create a new document with the title 'Project Proposal'.

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 generation with AI?

Automating Word document generation with AI uses the docx-js library to programmatically create .docx files. This Skill handles styling, lists, tables, images, headers, footers, and tracked changes without manual formatting.

Can I edit an existing .docx file and manage tracked changes?

Editing an existing .docx file involves unpacking the document, modifying its XML structure, and repacking it. This Skill supports managing tracked changes, allowing you to accept or reject edits directly through AI commands.

Does this Skill require LibreOffice and pandoc to convert documents?

Yes, LibreOffice and pandoc are required dependencies. LibreOffice handles document conversion and validation, while pandoc extracts text from .docx files, ensuring accurate processing and format compatibility.

What is the best way to add complex formatting like tables to a Word doc?

The best way to add complex formatting like tables to a Word doc is using the docx-js library. This Skill supports generating professional documents with specific formatting, including tables of contents, tables, and images.

How does advanced XML manipulation work for .docx files?

Advanced XML manipulation for .docx files works by unpacking the document archive, editing the underlying XML directly, and repacking it. This Skill provides detailed XML references to guide complex structural modifications.

Are there limitations when processing Word documents via command line?

Processing Word documents via command line requires specific dependencies including docx-js, pandoc, libreoffice, and poppler-utils. Complex formatting may require direct XML editing, and validation relies on LibreOffice being properly configured.