docx

Create and edit .docx files using Python scripts and docx-js.

269|67|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/PM-Shawn/Abu-Cowork --skill docx-pm-shawn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/PM-Shawn/Abu-Cowork/tree/main/builtin-skills/docx
Command: npx skills add https://github.com/PM-Shawn/Abu-Cowork --skill docx-pm-shawn

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the creation, editing, and manipulation of Word documents (.docx files), streamlining tasks like report generation, document formatting, and content updates.

Core Features & Use Cases

  • Document Creation: Generate new .docx files from scratch using JavaScript and the docx-js library.
  • Content Editing: Modify existing .docx files by unpacking, editing XML, and repacking.
  • Tracked Changes: Add, accept, or reject tracked changes within documents.
  • Formatting: Apply styles, lists, tables, images, headers, footers, and multi-column layouts.
  • Use Case: Automatically generate a monthly performance report in .docx format, including tables, charts, and specific formatting, based on data provided by another Skill.

Quick Start

Use the docx skill to create a new Word document with the title 'My Report' and a heading 'Introduction'.

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 from structured data?

Automate Word document generation by using Python scripts and the docx-js library to create .docx files from scratch. This allows you to programmatically generate formatted reports, memos, and letters by injecting data directly into structured templates.

Can I extract text and content from an existing .docx file?

Extract text and content from .docx files using pandoc for text extraction or by unpacking the document XML. This enables you to read existing content for processing, repurposing, or feeding into downstream analysis tasks.

What's the best way to manage tracked changes in a Word document programmatically?

Manage tracked changes in Word programmatically by using document manipulation scripts to add, accept, or reject revisions. This allows automated review workflows and controlled editing without manual intervention in the Word interface.

Does this approach support converting older .doc files to .docx format?

Converting .doc to .docx format is supported using LibreOffice. This preprocessing step ensures that older documents can be unpacked, edited, and manipulated using the modern docx-js workflow.

How do I apply complex formatting like tables and multi-column layouts in Word?

Apply complex formatting in Word by using docx-js to define styles, tables, headers, footers, and multi-column layouts. This enables the creation of polished, visually structured documents directly from code.

What dependencies are needed to manipulate Word documents without opening Word?

Manipulating Word documents without the Word application requires dependencies like pandoc for text extraction, LibreOffice for format conversion, poppler-utils, and the docx-js library for generating and editing files.