docx

Create, edit, and analyze .docx files using JavaScript and Python libraries.

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

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 provides an easy-to-use interface to create, read, edit, and analyze Word documents, simplifying tasks like formatting, image insertion, and conversion.

Core Features & Use Cases

  • Document Creation: Build new .docx files from scratch with JavaScript and the docx-js library.
  • Content Editing: Edit existing documents by unpacking XML files, making changes, and repacking.
  • Formatting: Format documents with tables, images, headers, footers, and more.
  • Use Case: When you need to create a professional-looking report, memo, or letter and require advanced formatting options.

Quick Start

Use the docx skill to create a new Word document with the title 'Company Memo' and include an image from 'image.png' at the end.

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 formatting and images using JavaScript?

To create a Word document with formatting and images, use the docx-js JavaScript library to generate .docx files from scratch, supporting tables, headers, footers, and image insertion.

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

Yes, editing existing .docx files is possible by unpacking the document's XML files, modifying the XML structure directly, and repacking the document to save changes.

Do I need pandoc and LibreOffice installed to convert Word documents?

Yes, handling Word document operations like conversion and rendering requires installing pandoc, LibreOffice, Poppler, and docx-js as dependencies for comprehensive document processing.

What is the best way to automate professional report generation in Word format?

The best way to automate professional report generation in Word format is using JavaScript with docx-js to programmatically build .docx files with advanced formatting and image management.

Does this approach support adding headers, footers, and tables to Word documents?

Yes, using the docx-js library supports formatting Word documents with advanced layout options including tables, images, headers, and footers for professional reports.

Why use JavaScript for document generation instead of other document editing tools?

Using JavaScript with docx-js enables end-to-end document production workflows, allowing precise XML manipulation, automated formatting, and image management within .docx files.