docx

Create and edit .docx files with JavaScript and pandoc.

Updated Feb 16, 2026
One-click install
npx skills add https://github.com/alexajuno/dotfiles --skill docx-alexajuno
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/alexajuno/dotfiles/tree/main/dot_claude/plugins/marketplaces/anthropic-agent-skills/skills/docx
Command: npx skills add https://github.com/alexajuno/dotfiles --skill docx-alexajuno

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docx, pandoc, libreoffice, 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), enabling users to produce polished, professional documents with ease.

Core Features & Use Cases

  • Document Creation: Generate new .docx files from scratch using JavaScript, including complex formatting like tables, headers, footers, and tables of contents.
  • Document Editing: Modify existing .docx files by unpacking, editing XML, and repacking, including managing tracked changes and comments.
  • Format Conversion: Convert between document formats and extract content using tools like pandoc.
  • Use Case: Automatically generate a monthly report in .docx format with specific branding, tables, and a table of contents, or programmatically accept all tracked changes in a document before sending it to a client.

Quick Start

Use the docx skill to create a new Word 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 generate a Word document with complex formatting like tables and tables of contents?

You can generate Word documents with complex formatting using the docx-js JavaScript library, which programmatically creates .docx files featuring tables, headers, footers, and tables of contents.

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

You can programmatically accept tracked changes in an existing .docx file by unpacking the document, modifying its underlying XML structure, and repacking it to finalize the document editing operations.

What's the best way to convert between Word documents and other formats?

Using command-line utilities like pandoc and LibreOffice provides a reliable way to convert between document formats and extract content directly from .docx files.

Does editing Word documents by modifying XML require any specific dependencies?

Editing Word documents via XML modification requires specific dependencies, including the docx library, pandoc, and LibreOffice utilities, to facilitate unpacking, editing, and repacking .docx files.

How do I automate monthly report generation in .docx format with specific branding?

You can automate monthly report generation in .docx format by using JavaScript to programmatically build documents, applying specific branding, inserting tables, and generating a table of contents.