docx

Create, edit, and analyze Word documents using Python and LibreOffice.

Updated May 11, 2026
One-click install
npx skills add https://github.com/heximao/agents --skill docx-heximao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/heximao/agents/tree/main/skill-archive/anthropic/docx
Command: npx skills add https://github.com/heximao/agents --skill docx-heximao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docx-js, pandoc, LibreOffice, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the creation, editing, and analysis of Word documents, allowing you to quickly generate professional-quality documents with minimal effort.

Core Features & Use Cases

  • Document Creation: Generate new Word documents with custom formatting and styles.
  • Document Editing: Edit existing Word documents by modifying text, images, tables, and more.
  • Content Analysis: Extract text, images, and other content from Word documents.
  • Use Case: Imagine you need to create a detailed report for a project. Use this Skill to quickly create a new document, add headings, tables, and images, and then analyze the content to ensure it meets all requirements.

Quick Start

Use the docx skill to create a new Word document with a cover page and table of contents.

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 with custom formatting and tables?

Automate Word document generation by using this Skill to apply custom formatting, insert tables and images, and structure text. It leverages XML manipulation to programmatically build professional .docx files without manual editing.

Can I edit existing .docx files to modify text and images programmatically?

You can edit existing .docx files programmatically to modify text, images, and tables. The Skill processes the underlying document XML to apply updates and manipulate Word files without altering the original layout.

Do I need LibreOffice and pandoc installed to process Word documents?

Yes, you need LibreOffice and pandoc installed to process Word documents. These dependencies, alongside docx-js, are required to handle XML manipulation and render the formatting for your .docx files.

What is the best way to extract text and images from a Word document for content analysis?

The best way to extract content for analysis is to use this Skill to parse the .docx file. It retrieves embedded text and images by processing the document's XML structure, enabling automated content analysis workflows.

How does XML manipulation work when creating Word documents?

XML manipulation works by directly modifying the underlying XML structure of .docx files. This approach allows precise control over document formatting, styles, and content insertion when generating or editing Word documents programmatically.

Are there limitations when using docx-js for complex document formatting?

While docx-js handles standard document formatting and text editing, complex rendering relies on LibreOffice. Limitations may arise with highly customized styles, but standard document generation and XML manipulation tasks are fully supported.