docx

Create, read, edit, and format .docx files with docx-js.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires defusedxml, lxml, and includes scripts (resource) components.

What problem does it solve?

Word document creation, editing, and analysis can be tedious and error-prone when done manually; this skill automates structure, formatting, and content workflows for .docx files.

Core Features & Use Cases

  • Create new Word documents programmatically using docx-js.
  • Read, edit, and reorganize content by unpacking docx XML and reconstructing it.
  • Manage advanced formatting, tables, images, and tracked changes in Word docs.
  • Use cases include generating polished letters, reports, or templates with automated formatting and TOCs.

Quick Start

Provide an outline and content, and the DOCX skill will generate a ready-to-use Word document.

Frequently Asked Questions about docx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Word document programmatically with tables and images?

You can create Word documents programmatically by providing an outline and content to generate a ready-to-use .docx file with automated formatting, tables, images, and headings.

How do I extract and edit content from an existing .docx file?

To extract and edit content from a .docx file, the skill unpacks the Word document XML to read and reorganize the content, then reconstructs it via a pack workflow.

Can I automate Word document formatting and generate a table of contents?

Yes, you can automate Word document formatting and generate a table of contents. The skill supports creating polished reports, letters, and templates with automated TOCs and page numbers.

Does docx support tracked changes in Word documents?

Yes, the docx skill supports tracked changes in Word documents. It enables deterministic, script-driven document generation and content manipulation with tracked changes tooling.

What is the best way to automate report generation in Word format?

The best way to automate report generation in Word format is using script-driven document generation via docx-js, which allows you to produce polished reports with structured formatting deterministically.

Do I need lxml and defusedxml to manipulate Word document XML?

Yes, you need lxml and defusedxml dependencies to manipulate Word document XML safely. These libraries enable the unpack and pack workflows required for content extraction and reconstruction.