docx

Generate, edit, and convert Word (.docx) documents programmatically.

4|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/Xueheng-Li/ai-tools-installation --skill docx-xueheng-li
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Xueheng-Li/ai-tools-installation/tree/main/recommended_skills/docx
Command: npx skills add https://github.com/Xueheng-Li/ai-tools-installation --skill docx-xueheng-li

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill removes the manual effort of creating, reading, editing, and converting Word (.docx) files, enabling fast, automated document production.

Core Features & Use Cases

  • Create New Documents: Generate .docx files with custom styles, headings, tables, and images using docx‑js.
  • Edit Existing Documents: Unpack, modify XML, and repack to apply tracked changes, comments, and formatting.
  • Convert Formats: Transform .docx to PDF, images, or plain text with pandoc or LibreOffice.
  • Handle Tracked Changes: Accept or reject changes, manage comments, and preserve smart quotes.
  • Use Case: Produce a polished report with a table of contents, headings, and embedded images directly from a script.

Quick Start

Ask the docx skill to create a new Word document titled "Project Plan" with a heading and a table.

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 from a script?

You can automate Word document generation by using this skill to create .docx files programmatically with custom styles, headings, tables, and images via docx-js, eliminating manual formatting effort.

What's the best way to convert a .docx file to PDF programmatically?

The best way to convert .docx files to PDF programmatically is using this skill, which leverages pandoc or LibreOffice to transform Word documents into PDF, images, or plain text automatically.

Do I need pandoc and LibreOffice to handle tracked changes in Word documents?

You do not need pandoc or LibreOffice to handle tracked changes in Word documents; this skill unpacks and modifies the document XML directly to apply tracked changes, comments, and formatting.

How does programmatic document manipulation work for existing .docx files?

Programmatic document manipulation for .docx files works by unpacking the file, modifying its internal XML structure to apply changes, and repacking it to preserve formatting and tracked changes.

Can I fill a Word document template automatically using a script?

Yes, you can fill a Word document template automatically using this skill to generate reports with custom headings, tables of contents, and embedded images directly from your script data.