docx

Create, read, edit, and format Word documents with docx-js, pandoc, and soffice.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the creation, reading, editing, and formatting of Word documents (.docx), reducing manual drafting work and ensuring consistent styling across letters, reports, templates, and other professional documents.

Core Features & Use Cases

  • Create new documents from templates with headings, page layout, headers/footers, and tables of contents.
  • Read, modify, and reformat existing .docx files, including inserting images, tables, lists, and tracked changes.
  • Generate polished documents for reports, letters, proposals, or templates that require professional formatting and branding.

Quick Start

Use the docx skill to generate a polished Word document from a template, or to read and edit an existing .docx file with formatting like a table of contents, headings, and letterhead.

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 headings, tables, and tracked changes?

Automating Word document generation is handled by combining docx-js for content creation and LibreOffice's soffice for change-tracking workflows, producing polished .docx reports, letters, and templates with headings, images, and tables.

How does extracting content from an existing .docx file work?

Extracting content from existing .docx files works by utilizing pandoc to read and extract document text and formatting structures, enabling modifications like inserting images or lists before reformatting the Word document output.

Can I use this workflow to edit existing .docx files or is it only for creating new documents?

Editing existing .docx files is fully supported alongside creating new ones. The process reads existing Word documents, modifies formatting like tables of contents and letterhead, and applies tracked changes using LibreOffice's soffice conversions.

What is the best way to generate professional Word documents from templates?

Generating professional Word documents from templates is best handled by using docx-js to apply page layouts, headers, footers, and tables of contents, ensuring consistent styling and branding across proposals, reports, and letters.

Does converting Word documents with tracked changes require LibreOffice?

Converting Word documents with tracked changes does require LibreOffice's soffice utility for processing change-tracking workflows and format conversions, while pandoc handles content extraction and docx-js handles the initial document generation.

When do I need to use pandoc versus docx-js for Word document formatting?

Pandoc is needed for reading and extracting content from existing .docx files, while docx-js is used for generating new Word documents with formatting like headings, lists, and tables from templates.