docx

Create and edit Microsoft Word documents using docx-js and pandoc.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docx, pandoc, libreoffice, poppler-utils, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the creation, editing, and manipulation of Microsoft Word (.docx) documents, removing the complexity of manual formatting and content management.

Core Features & Use Cases

  • Document Generation: Create professional Word documents from scratch using programmatic control over text, tables, images, and styles.
  • Content Editing: Modify existing .docx files, including accepting tracked changes, performing find-and-replace, and managing comments.
  • Format Conversion: Convert documents to PDF or extract content for further processing.
  • Use Case: Automatically generate personalized offer letters for new hires, complete with company letterhead, specific terms, and employee details, all from a template.

Quick Start

Use the docx skill to accept all tracked changes in the file 'report_v2.docx'.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I programmatically create and format a Word document?

You can programmatically create and format a Word document by manipulating .docx files using the docx-js library. This allows programmatic control over text, tables, images, styles, and page layout adjustments.

Can I accept tracked changes and manage comments in an existing docx file?

Yes, you can edit existing .docx files to accept tracked changes, perform find-and-replace operations, and manage comments programmatically without needing to open Microsoft Word manually.

What's the best way to convert a Word document to PDF?

The best way to convert a Word document to PDF is by using pandoc and LibreOffice. These tools handle format conversion and extract document content for advanced processing tasks.

Do I need Node.js and Python to automate Word document generation?

Yes, automating Word document generation requires Node.js to run the docx-js library for document creation, and Python with pandoc and LibreOffice for format conversions and advanced features.

How do I generate personalized offer letters from a template?

You can generate personalized offer letters by programmatically creating Word documents from a template. This automatically populates company letterhead, specific terms, and employee details into the .docx file.