docx

Create and edit .docx files using the docx JavaScript library and Python scripts.

2|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/Tai-ch0802/skills-bundle --skill docx-tai-ch0802
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Tai-ch0802/skills-bundle/tree/main/.agent/skills/docx
Command: npx skills add https://github.com/Tai-ch0802/skills-bundle --skill docx-tai-ch0802

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), eliminating the need for manual formatting and complex operations.

Core Features & Use Cases

  • Document Generation: Create new .docx files from scratch using JavaScript, including complex layouts, tables, and styles.
  • Document Editing: Modify existing .docx files by unpacking, editing XML, and repacking, including handling tracked changes and comments.
  • Use Case: Automatically generate a client report with a table of contents, specific formatting, and embedded images, all from a structured data input.

Quick Start

Use the docx skill to create a new Word 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 complex formatting and tables?

Automate Word document generation by using the docx JavaScript library to create .docx files from scratch, handling complex layouts, tables, images, headers, footers, and custom styles from structured data inputs.

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

Edit existing .docx files by unpacking the document to manipulate its underlying XML structure, successfully handling tracked changes and comments before repacking it into a finalized Word document.

What is the best way to convert a .doc file to .docx for automated editing?

Convert .doc files to .docx format using LibreOffice, enabling subsequent automated document editing, XML manipulation, and repacking workflows for legacy Word documents.

Does this Word document automation approach support converting PDF pages to images?

Yes, the document automation workflow supports converting PDF files to image formats using poppler-utils, allowing you to extract visual content from PDFs for embedding or reference within Word documents.

Do I need LibreOffice and poppler-utils installed to create and edit Word documents?

You need LibreOffice for .doc to .docx conversion and poppler-utils for PDF to image conversion, while the core .docx creation and editing relies on the docx JavaScript library and Python scripts.

How does unpacking and repacking help with modifying Word document XML?

Unpacking and repacking uses Python scripts to extract the .docx XML structure, enabling direct manipulation of document properties, tracked changes, and complex formatting before repacking the modified files.