docx

Creates, extracts, and modifies Word .docx documents via XML and JavaScript.

11|Updated May 6, 2026
One-click install
npx skills add https://github.com/open-neko/openneko --skill docx-open-neko
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/open-neko/openneko/tree/main/packages/llm/assets/builtin-skills/docx
Command: npx skills add https://github.com/open-neko/openneko --skill docx-open-neko

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires defusedxml, lxml, and includes scripts (resource) components.

What problem does it solve?

This skill eliminates the tedious manual work of creating, formatting, and editing Word documents by providing programmatic control over .docx files, allowing you to generate professional reports, memos, and letters with precise formatting, tracked changes, and embedded media without fighting with the Word UI.

Core Features & Use Cases

  • Document Generation: Create new .docx files from scratch with custom styles, tables of contents, headers, footers, and multi-column layouts using JavaScript and the docx library.
  • Content Editing & Track Changes: Unpack existing documents, edit raw XML to make precise modifications, and manage tracked changes and comments with proper attribution.
  • Media & Formatting: Insert and replace images, apply consistent table formatting with DXA units, and convert between .doc and .docx or PDF formats using LibreOffice and Pandoc.
  • Use Case: Imagine you need to generate 50 personalized offer letters with company letterheads, tables, and embedded logos. Use this skill to programmatically create each document with consistent formatting and page numbers in seconds.

Quick Start

Use the docx skill to create a new Word document named 'quarterly-report.docx' with a title, table of contents, and three sections of formatted text, then save it to your desktop.

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 for bulk letter creation?

Automate Word document generation by using JavaScript and the docx npm package to programmatically create .docx files with custom styles, headers, footers, and tables of contents. This approach allows you to generate bulk personalized letters with consistent formatting in seconds.

Can I edit existing .docx files and apply tracked changes programmatically?

Yes, you can edit existing .docx files and apply tracked changes by unpacking the document and modifying the raw Office Open XML directly. This method allows for precise content modifications and comment management with proper author attribution.

Do I need LibreOffice and Pandoc to extract text and convert .docx to PDF?

Yes, you need LibreOffice to convert between .doc, .docx, and PDF formats, and Pandoc for text extraction. These external tools handle format conversion and content migration alongside the core JavaScript XML manipulation.

What is the best way to programmatically insert images and format tables in a .docx file?

The best way to insert images and format tables in a .docx file is through programmatic XML manipulation, applying DXA units for consistent table formatting and embedding media directly into the Office Open XML schema structure.

Does this document automation approach require schema-valid Office Open XML files?

Yes, this document automation approach requires schema-valid Office Open XML files to ensure the generated .docx documents maintain proper structure and compatibility when creating or modifying content via raw XML editing.

What are the limitations of using raw XML editing for modifying Word documents?

Modifying Word documents via raw XML editing requires understanding the Office Open XML schema and relies on dependencies like defusedxml and lxml for parsing. Complex formatting without proper DXA units may result in inconsistent document layouts.