docx

Create and edit Word documents using the docx JavaScript library and XML manipulation.

3|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/lucasgrow/some-skills --skill docx-lucasgrow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/lucasgrow/some-skills/tree/main/docx
Command: npx skills add https://github.com/lucasgrow/some-skills --skill docx-lucasgrow

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandoc, docx, LibreOffice, Poppler, 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), handling everything from basic text formatting to complex layouts and tracked changes.

Core Features & Use Cases

  • Document Generation: Create new .docx files from scratch using JavaScript with the docx library, including tables, lists, headers, footers, and page numbers.
  • Document Editing: Modify existing .docx files by unpacking, editing XML, and repacking, including accepting tracked changes and adding comments.
  • Use Case: Generate a client proposal document with a custom letterhead, table of contents, and specific formatting, or automatically accept all tracked changes in a draft document before sending it.

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

Automate Word document generation using the JavaScript docx library to build .docx files containing complex formatting, tables, lists, headers, footers, and page numbers. It creates complete documents from scratch without manual formatting.

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

Edit existing .docx files by unpacking the document XML, modifying content directly, and repacking the archive. This approach supports accepting tracked changes and adding comments to existing drafts automatically.

Do I need LibreOffice and Poppler installed to convert Word documents to other formats?

You need LibreOffice and Poppler installed as dependencies to handle conversion between document formats. These tools provide the backend processing required to transform .docx files into alternative formats accurately.

What is the best way to add custom letterheads and page numbers to a client proposal in Word?

The best way to add custom letterheads and page numbers is using the JavaScript docx library for programmatic generation. It directly injects page elements, headers, and footers into the document structure during creation.

Does this approach support modifying document XML directly for advanced formatting?

This approach supports advanced formatting by utilizing Python scripts to unpack and manipulate raw document XML. This allows granular control over complex layouts and page elements beyond standard library capabilities.