docx

Automate creation, editing, and formatting of .docx files using Pandoc and LibreOffice.

Updated Apr 2, 2026
One-click install
npx skills add https://github.com/Miss-PinkElf/Multi-Agent --skill docx-miss-pinkelf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Miss-PinkElf/Multi-Agent/tree/main/.claude/skills/docx
Command: npx skills add https://github.com/Miss-PinkElf/Multi-Agent --skill docx-miss-pinkelf

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Word document tasks such as creation, reading, editing, and formatting are tedious and error-prone when done manually. This skill automates these processes for .docx files, reducing manual effort and ensuring consistent formatting.

Core Features & Use Cases

  • DOCX creation and editing: generate new documents, unpack/repack to modify content, and apply formatting like headings, tables, and lists.
  • Content extraction and analysis: read, parse, and analyze document content, including tracked changes and embedded images.
  • Interoperability and conversions: convert documents to other formats and streamline workflows via scripting and LibreOffice-based conversions.

Quick Start

Create a polished Word document from provided content and apply essential formatting.

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 creation and formatting?

Automating Word document creation uses script-based tools to generate new .docx files and apply formatting like headings, tables, and lists, reducing manual effort and ensuring consistent formatting across documents.

Can I extract text and images from a .docx file programmatically?

Yes, you can extract text and images from a .docx file by unpacking the document and parsing its XML structure. This allows you to read, analyze, and retrieve embedded content for downstream processing.

Does this approach support editing tracked changes in Word documents?

Yes, the approach supports tracked changes in Word documents by unpacking the .docx file and applying XML editing. This enables automated workflows for reading, modifying, and analyzing tracked revisions.

What's the best way to convert Word documents to other formats?

The best way to convert Word documents to other formats is by leveraging Pandoc and LibreOffice-based conversions. This enables reliable interoperability and streamlines format conversion workflows through scripting.

Do I need lxml and defusedxml to process Word document XML?

Yes, processing Word document XML requires lxml and defusedxml as dependencies. These libraries enable secure parsing and manipulation of the underlying XML structure within unpacked .docx files.

Why does my Word document formatting break after editing the XML?

Word document formatting breaks after editing XML when the internal structure is corrupted during unpacking or repacking. Using reliable script-based tools ensures the .docx package is correctly packed and formatted.