docx

Create, read, edit, and format Word documents with Python scripts.

Updated Mar 15, 2026
One-click install
npx skills add https://github.com/jaguarliuu/miniclaw --skill docx-jaguarliuu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/jaguarliuu/miniclaw/tree/main/.miniclaw/skills/docx
Command: npx skills add https://github.com/jaguarliuu/miniclaw --skill docx-jaguarliuu

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the creation, reading, editing, and formatting of Word documents (.docx), reducing manual drafting time and ensuring consistent styling.

Core Features & Use Cases

  • Read, create, edit, and format Word documents with headings, lists, tables, images, headers/footers, and tables of contents.
  • Support content extraction, content reorganization, and find-and-replace operations within DOCX files.
  • Manage tracked changes and comments, or convert content into prepared Word documents (reports, letters, templates).

Quick Start

Generate a polished Word document with the requested content and formatting (headings, TOC, images, and page numbers).

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 with headings and tables of contents?

You can automate Word document creation by using prompts or automated workflows to generate professional .docx files with headings, tables of contents, headers, footers, and images. This streamlines manual drafting and ensures consistent styling.

Can I find and replace text or extract content from existing DOCX files?

Yes, you can extract content, reorganize document structures, and perform find-and-replace operations within existing DOCX files to efficiently edit and update Word documents.

Does this approach support managing tracked changes and comments in Word documents?

Yes, managing tracked changes and comments in Word documents is fully supported, allowing you to handle trackable edits and collaborate effectively across DOCX files.

Do I need Python and lxml to run these DOCX formatting scripts?

Yes, you need a Python environment with the lxml and defusedxml dependencies installed to run the scripts that implement DOCX operations, validation, and formatting.

What is the best way to convert automated content into formatted Word templates?

The best way to convert content into prepared Word documents is by using a YAML frontmatter entry point and helper scripts to produce reports, letters, and templates with consistent formatting.