docx

Create and edit .docx files using docx-js and pandoc.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Myfro9/skills --skill docx-myfro9
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Myfro9/skills/tree/main/docx
Command: npx skills add https://github.com/Myfro9/skills --skill docx-myfro9

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, editing, and manipulation of Word documents (.docx files), eliminating manual formatting and complex operations.

Core Features & Use Cases

  • Document Generation: Create new .docx files from scratch using JavaScript (docx-js).
  • Content Editing: Modify existing .docx files by unpacking, editing XML, and repacking.
  • Tracked Changes: Accept or reject tracked changes, add comments, and manage document revisions.
  • Use Case: Automatically generate a professional report with a table of contents, specific formatting, and embedded images, all from a script.

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 and tables?

Automate Word document generation by using the docx-js library to programmatically define formatting, tables, lists, and images. This Skill executes JavaScript scripts to build .docx files from scratch, eliminating manual formatting and streamlining document creation workflows.

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

Yes, you can edit existing .docx files to manage tracked changes and comments by unpacking the document's underlying XML structure. This Skill modifies the raw XML content directly and repacks it, allowing you to accept or reject revisions and add annotations programmatically.

What's the best way to add headers, footers, and a table of contents to a Word document programmatically?

The best way to add headers, footers, and a table of contents to a Word document programmatically is through the docx-js library. This Skill leverages JavaScript objects to define these structural elements, automatically generating professional reports with complex navigational and formatting features.

Do I need Node.js and Python to create and manipulate .docx files?

Yes, you need Node.js to run the docx-js library for document creation and Python for utility scripts. This Skill relies on both environments alongside command-line tools like pandoc and poppler-utils to execute its full range of .docx generation and editing capabilities.

Does this tool work with pandoc for .docx file conversion and manipulation?

Yes, this tool integrates with pandoc to facilitate .docx file conversion and manipulation. It uses pandoc as a command-line dependency alongside libreoffice and poppler-utils, enabling seamless format transformations and robust document processing within automated workflows.

Why does modifying a Word document's XML directly help with automated editing?

Modifying a Word document's XML directly helps with automated editing by bypassing application-level interfaces to manipulate the raw file structure. This Skill unpacks the .docx archive, edits the underlying XML to implement precise content changes, and repacks it, ensuring exact programmatic control over document revisions.