docx

Create and manipulate Word documents using docx-js and pandoc.

1|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/zihan987/zihan-Sage --skill docx-zihan987
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/zihan987/zihan-Sage/tree/main/app/skills/docx
Command: npx skills add https://github.com/zihan987/zihan-Sage --skill docx-zihan987

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docx-js, pandoc, libreoffice, 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 generate professional documents, extract content, and perform advanced formatting tasks efficiently.

Core Features & Use Cases

  • Document Creation: Build new Word documents from scratch or convert existing content.
  • Content Manipulation: Extract text, images, and formatting from .docx files.
  • Formatting: Apply complex formatting like tables, images, and styles.
  • Use Case: Imagine you need to create a detailed report with tables and images. Use this skill to generate the report template, insert data and images, and format it to your desired specifications.

Quick Start

Use the docx skill to create a new document with the title "My Report" and insert a table with three columns and five rows.

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 tables and images programmatically?

You can create a Word document with tables and images programmatically by using this Skill to generate report templates, insert data, apply advanced formatting, and validate the output with docx-js and LibreOffice.

What's the best way to extract text and images from a .docx file?

The best way to extract text and images from a .docx file is to use this Skill, which manipulates Word documents via pandoc and docx-js to isolate content and convert embedded images for further analysis.

Do I need LibreOffice installed to manipulate Word documents with docx-js?

Yes, you need LibreOffice installed alongside docx-js and pandoc, because this Skill relies on all three dependencies to manipulate, convert, and validate Word files during document generation and editing.

Can I use pandoc to convert existing content into a formatted Word document?

Yes, you can use pandoc through this Skill to convert existing content into a newly formatted Word document, leveraging advanced formatting features to build professional reports from scratch.

How does automated Word document generation work for advanced formatting?

Automated Word document generation works by passing structural definitions to docx-js, which applies advanced formatting like tables and styles, while pandoc and LibreOffice handle content conversion and file validation.

Are there limitations when editing complex Word documents via docx-js and pandoc?

Limitations when editing complex Word documents depend on docx-js formatting support and pandoc conversion accuracy, meaning highly specialized styles or macros might not translate perfectly during content manipulation and extraction.