docx

Create and edit .docx files using docx-js and Python scripts.

10|2|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/wx-chevalier/Awesome-Agent-Skills --skill docx-wx-chevalier
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/wx-chevalier/Awesome-Agent-Skills/tree/main/claude/docx
Command: npx skills add https://github.com/wx-chevalier/Awesome-Agent-Skills --skill docx-wx-chevalier

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 Word documents, eliminating the need for manual formatting and complex scripting for common document tasks.

Core Features & Use Cases

  • Document Generation: Create new Word documents from scratch using JavaScript, including complex formatting like tables, lists, headers, and footers.
  • Document Editing: Modify existing .docx files by unpacking, editing XML, and repacking, including accepting tracked changes.
  • Use Case: Automatically generate a professional report with a table of contents, specific heading styles, and embedded images based on provided data.

Quick Start

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

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 specific formatting like tables and headers?

Automate Word document generation by using the docx-js library via Node.js to programmatically build .docx files with complex formatting, including tables, lists, headers, and footers, eliminating manual formatting.

Can I accept tracked changes in an existing .docx file programmatically?

Accept tracked changes in an existing .docx file by unpacking the document, directly editing its underlying XML structure, and repacking it using Python scripts to finalize the accepted modifications.

Do I need Node.js and Python to edit Word documents effectively?

Node.js is required for docx-js document creation, while Python with dependencies like LibreOffice and pandoc is necessary for advanced document manipulation and editing of existing .docx files.

What is the best way to perform find-and-replace operations inside a Word document?

Perform find-and-replace operations inside a Word document by unpacking the .docx file to access and modify its internal XML content directly, then repacking the file to save the updated changes.

Why does editing .docx files require unpacking and repacking XML?

Editing .docx files requires unpacking and repacking XML because the format is a compressed archive of XML files, allowing direct structural manipulation to modify existing documents and accept tracked changes reliably.