docx

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

1|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/smukerji/openTorriAI --skill docx-smukerji
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/smukerji/openTorriAI/tree/main/apps/api/skills/bundled/docx
Command: npx skills add https://github.com/smukerji/openTorriAI --skill docx-smukerji

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docx-js, pandoc, soffice, pdftoppm, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the creation, editing, and analysis of Word documents (.docx files), eliminating the need for manual formatting and complex scripting for common document tasks.

Core Features & Use Cases

  • Document Generation: Create new .docx files from scratch using JavaScript, including complex formatting like tables, lists, headers, and footers.
  • Document Editing: Modify existing .docx files by unpacking, editing XML, and repacking, including accepting tracked changes and adding comments.
  • Content Conversion: Convert between document formats and extract text or images.
  • Use Case: Automatically generate a monthly performance report in a pre-defined .docx template, complete with tables and charts, based on input data.

Quick Start

Use the docx skill to create a new Word document with the title "Quarterly Report".

Frequently Asked Questions about docx

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

FAQPage Schema
How do I generate Word documents with complex formatting like tables and headers?

To generate Word documents with complex formatting, use the docx-js library to programmatically build .docx files containing tables, headers, and footers. This Skill orchestrates the creation of structured .docx files from JavaScript inputs.

Can I edit an existing .docx file to accept tracked changes and add comments?

You can edit existing .docx files to accept tracked changes and add comments by unpacking the document, directly manipulating its underlying XML structure, and repacking it into a valid Word document format.

What is the best way to extract text and convert document formats for analysis?

The best way to extract text and convert document formats is by using pandoc. This Skill leverages pandoc to handle content conversion tasks, enabling seamless extraction of text and images from .docx files.

Does this document generation approach work with PDF conversion and rendering?

Yes, this document generation approach works with PDF conversion through dependencies like soffice and pdftoppm. These tools facilitate format conversion and rendering tasks alongside the core docx-js library.

Why does modifying Word documents require unpacking and editing XML?

Modifying Word documents requires unpacking and editing XML because .docx files are essentially zipped XML archives. Direct XML manipulation is necessary to precisely control document structures like tracked changes and comments.

When do I need XML manipulation and validation for .docx file editing?

You need XML manipulation and validation for .docx file editing when modifying complex document structures or accepting tracked changes. This ensures the repacked Word document remains structurally valid and correctly formatted.