docx

Create and edit .docx files with formatting, tables, and images.

126|8|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/DrugClaw/DrugClaw --skill docx-drugclaw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/DrugClaw/DrugClaw/tree/main/skills/built-in/docx
Command: npx skills add https://github.com/DrugClaw/DrugClaw --skill docx-drugclaw

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 (.docx) documents, removing the complexity of manual formatting and content management.

Core Features & Use Cases

  • Document Generation: Create new .docx files from scratch with custom formatting, tables, lists, and images.
  • Content Editing: Modify existing .docx files, including accepting tracked changes, adding comments, and performing find-and-replace operations.
  • Format Conversion: Convert between .doc and .docx formats, and extract content for other uses.
  • Use Case: Generate a professional-looking quarterly report with a table of contents, specific styling, and embedded charts, all from a structured data input.

Quick Start

Use the docx skill to create a new Word document with a title, a heading, and a paragraph of text.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I programmatically create a Word document with complex formatting, tables, and images?

You can create a Word document with complex formatting by generating a new .docx file from scratch programmatically. This approach embeds custom styling, tables, lists, and images directly into the document from structured data.

Can I accept tracked changes, add comments, and perform find-and-replace in an existing .docx file?

Yes, you can modify existing .docx files by accepting tracked changes, adding comments, and executing find-and-replace operations. This enables automated content editing and manipulation of Word documents without manual review.

What is the best way to convert an older .doc file to the .docx format?

The best way to convert .doc to .docx is using format conversion tools that handle the transformation directly. This updates older Word documents to the modern XML-based .docx structure for further programmatic manipulation.

Do I need pandoc and LibreOffice installed to extract content from Word documents?

You need pandoc and LibreOffice to extract content from Word documents via format conversion or XML manipulation. These dependencies parse .docx files and extract internal content for downstream programmatic uses.

How does generating a Word document from structured data input work?

Generating a Word document from structured data works by feeding data inputs into a document generation process that applies specified styling, tables of contents, and embedded charts. This automatically produces a formatted .docx file.

Are there limitations when manipulating Word documents via XML instead of a dedicated library?

Manipulating Word documents via raw XML extraction risks breaking complex formatting if internal tags are altered incorrectly. It is best used for content extraction rather than generating documents with intricate styling or embedded objects.