docx

Creates and edits Word (.docx) files using docx-js library and pandoc tools.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/keremtoker468-dotcom/restoran --skill docx-keremtoker468-dotcom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/keremtoker468-dotcom/restoran/tree/main/.claude/skills/docx
Command: npx skills add https://github.com/keremtoker468-dotcom/restoran --skill docx-keremtoker468-dotcom

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docx, pandoc, soffice, pdftoppm, 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 manual formatting and complex operations.

Core Features & Use Cases

  • Document Generation: Create new .docx files from scratch using JavaScript, including complex formatting like tables of contents, headers, footers, and custom styles.
  • Content Manipulation: Edit existing .docx files by unpacking, modifying XML, and repacking, or use tools like pandoc for text extraction and conversion.
  • Use Case: Automatically generate a professional business letter with a company letterhead, specific formatting, and tracked changes accepted, all from a simple prompt.

Quick Start

Use the docx skill to create a new Word 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
Can I edit existing .docx files by modifying their XML content directly?

Edit existing .docx files by unpacking them, modifying the underlying XML content directly, and repacking the archive. Alternatively, use the pandoc command-line utility to extract text and convert document formats for easier manipulation.

Do I need pandoc and LibreOffice installed to manipulate Word documents programmatically?

Converting Word documents requires command-line utilities like pandoc for text extraction and format conversion, LibreOffice for document manipulation, and Poppler for rendering. These dependencies must be installed in your environment alongside the docx npm package.

How does converting documents with pandoc compare to using the docx-js library for Word file manipulation?

Accept tracked changes in a Word document automatically by unpacking the .docx file, processing the XML to resolve revisions, and repacking the archive. This programmatic approach handles tracked changes without requiring manual acceptance in Microsoft Word.

Are there limitations when generating tables of contents in Word documents programmatically?

Generating tables of contents programmatically with docx-js relies on constructing complex document structures, which may require precise XML manipulation for accurate rendering. Ensure your environment has the required dependencies like LibreOffice to correctly process and render these advanced formatting elements.