docx

Create and edit .docx files with JavaScript and Python scripts.

375|38|Updated Dec 2, 2025
One-click install
npx skills add https://github.com/CraftOS-dev/CraftBot --skill docx-craftos-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/CraftOS-dev/CraftBot/tree/main/skills/docx
Command: npx skills add https://github.com/CraftOS-dev/CraftBot --skill docx-craftos-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandoc, docx, LibreOffice, Poppler, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the creation, editing, and manipulation of Microsoft Word documents (.docx files), eliminating the need for manual intervention in complex document formatting and content management.

Core Features & Use Cases

  • Document Generation: Create new .docx files from scratch using JavaScript with the docx-js library, supporting complex formatting like tables, lists, headers, footers, and styles.
  • Document Editing: Modify existing .docx files by unpacking, editing XML content, and repacking, including handling tracked changes and comments.
  • Content Conversion: Convert between document formats (e.g., .doc to .docx) and extract content for further processing.
  • Use Case: Automatically generate a professional report with a table of contents, specific styling, and embedded images based on data inputs.

Quick Start

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

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 with complex formatting like tables and styles?

Edit existing .docx files by unpacking the document structure, modifying the underlying XML content directly, and repacking it to manage tracked changes and comments.

Can I convert older .doc files to the .docx format programmatically?

Convert between document formats like .doc to .docx programmatically using pandoc and custom Python scripts to extract content and transform it into the desired format.

Do I need LibreOffice or pandoc installed to manipulate Word documents?

You need pandoc, the docx library, LibreOffice, and Poppler installed, as these dependencies handle content conversion, manipulation, and rendering of the Word documents.

What is the best way to extract content from a .docx file for further processing?

Generate professional reports automatically by passing data inputs into JavaScript scripts that create .docx files with a table of contents, specific styling, and embedded images.