docx

Create and edit .docx files using docx-js, pandoc, and soffice.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Billkst/Causal-TabDiff --skill docx-billkst
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Billkst/Causal-TabDiff/tree/main/.agents/skills/docx
Command: npx skills add https://github.com/Billkst/Causal-TabDiff --skill docx-billkst

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 Word documents, handling complex formatting, tracked changes, and content manipulation efficiently.

Core Features & Use Cases

  • Document Generation: Create new .docx files from scratch using JavaScript (docx-js).
  • Content Editing: Modify existing documents, including accepting tracked changes and performing find-and-replace operations.
  • Advanced Formatting: Supports tables, lists, images, headers/footers, and tables of contents.
  • Use Case: Automatically generate a monthly report in .docx format, incorporating data from various sources, applying specific company branding, and including a table of contents.

Quick Start

Use the docx skill to create a new document with a title and a heading.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I generate a Word document with specific formatting like tables and headers?

Generate Word documents with specific formatting using the docx-js library, which supports creating .docx files containing tables, lists, images, headers, footers, and tables of contents programmatically.

Can I accept tracked changes and perform find-and-replace in an existing .docx file?

Yes, you can edit existing .docx files to accept tracked changes and perform find-and-replace operations using the docx-js library in combination with command-line tools like soffice for content manipulation.

Do I need Node.js and LibreOffice to create and edit Word documents?

Yes, Node.js is required to run the docx-js library for document generation and editing, while LibreOffice is necessary for certain format conversions and operations handled via the soffice command-line tool.

What is the best way to convert Word documents to other formats?

Convert Word documents to other formats by utilizing pandoc and the soffice command-line tool from LibreOffice, which handle transformations between .docx files and various alternative document formats.

Does this approach support extracting content from existing .docx files?

Yes, content extraction from existing .docx files is supported through command-line utilities like poppler-utils and the soffice tool, allowing you to retrieve text and structural data from Word documents.

Why use docx-js instead of pandoc for generating Word documents with complex layouts?

Use docx-js for programmatic document generation requiring precise control over complex layouts like custom tables of contents and images, whereas pandoc is better suited for straightforward format conversion rather than layout design.