docx

Create and edit Word documents by manipulating XML within .docx files.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docx-js, pandoc, LibreOffice, Poppler, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill streamlines the creation, editing, and manipulation of Word documents, allowing users to produce professional-quality files with ease.

Core Features & Use Cases

  • Document Creation: Build custom Word documents using JavaScript with full formatting capabilities.
  • Document Editing: Edit existing .docx files by unpacking, modifying XML, and repacking.
  • Image Insertion: Add images to documents and convert them to PDF if needed.
  • Formatting: Handle tables, lists, and styles with precision.
  • Use Case: A user needs a well-formatted business report. With this Skill, they can quickly create a document with tables of contents, headings, page numbers, and images.

Quick Start

Generate a new Word document with a cover page, table of contents, and two headings: "Executive Summary" and "Findings" using JavaScript.

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 with custom formatting using JavaScript?

You can create a Word document with custom formatting using JavaScript via the docx-js library. This Skill enables full document generation capabilities, allowing you to build files with headings, tables, lists, and custom style overrides.

Can I edit an existing .docx file by modifying its XML directly?

You can edit an existing .docx file by unpacking it, modifying the underlying XML structure using Python libraries, and repacking it. This approach allows precise style overrides, table handling, and content updates without corrupting the file.

What dependencies do I need to insert images into a Word document and convert it to PDF?

To insert images and convert documents to PDF, you need Poppler for image handling and LibreOffice for PDF conversion. These dependencies support the XML manipulation workflow by validating and rendering the final Word document outputs.

What is the best way to handle tables and style overrides in a .docx file?

The best way to handle tables and style overrides in a .docx file is through direct XML manipulation. This Skill unpacks the document, applies precise formatting changes using Python libraries, and repacks the file to maintain professional document structure.

Does pandoc work with Word document generation for professional business reports?

Pandoc works with Word document generation as a core dependency within this Skill. It assists in creating and editing Word documents, enabling users to produce professional business reports with tables, headings, and images alongside docx-js and LibreOffice.