docx

Generate and modify Word documents with docx-js and Pandoc.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

The Word document skill enables programmatic creation, reading, editing, and formatting of .docx files, reducing manual document assembly and ensuring consistency across outputs.

Core Features & Use Cases

  • DOCX creation, editing, and analysis using code to generate well-formatted Word documents.
  • Image insertion, table formatting, and header/footer/TOC support to produce production-ready documents.
  • Use Case: automatically generate standardized reports or letters and extract content from existing Word docs for repurposing.

Quick Start

Create a sample DOCX named sample.docx with a title and a paragraph to validate the workflow.

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 and formatting programmatically?

Automate Word document generation by using code to create, edit, and format .docx files. This approach supports programmatic document creation, editing, and formatting to produce standardized outputs automatically.

Can I insert images and tables into a .docx file using code?

Yes, you can insert images and tables into a .docx file using code. The document generation process supports image insertion, table formatting, and header/footer configuration to produce production-ready documents.

How do I extract content from existing Word documents for repurposing?

Extract content from existing Word documents by using Pandoc-based reading for content extraction. This allows you to read and analyze .docx files to repurpose the content into other formats or workflows.

Does this DOCX automation approach require LibreOffice for document conversion?

LibreOffice is not strictly required but is available as optional conversion tooling in sandboxed environments. The core DOCX operations are implemented via docx-js for creation and Pandoc-based reading for extraction.

What is the best way to generate standardized reports or letters in Word format?

The best way to generate standardized reports or letters in Word format is through programmatic document creation. This ensures consistency across outputs and reduces manual document assembly for production-ready files.