builtin/docx

Create and edit Word documents with python-docx for formatting and content management.

117|9|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/LiangNiang/OpenMantis --skill builtin-docx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: builtin/docx
Source: https://github.com/LiangNiang/OpenMantis/tree/main/skills/builtin/docx
Command: npx skills add https://github.com/LiangNiang/OpenMantis --skill builtin-docx

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-docx, and includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the process of generating, editing, and analyzing Word (.docx) documents, reducing manual formatting and content management efforts.

Core Features & Use Cases

  • Document Creation & Formatting: Programmatically build Word files with styled headings, tables, images, and custom layouts.
  • Content Extraction & Editing: Unpack existing Word documents to modify text, add comments, or clean tracked changes.
  • Use Case: A technical writer needs to produce a formatted report with a table of contents, images, and custom styles from raw data inputs. This Skill automates all formatting and content assembly to produce publication-ready documents.

Quick Start

Use this Skill to create a professional Word document with a customized table of contents and styled headings by specifying your content in a structured format.

Frequently Asked Questions about builtin/docx

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

FAQPage Schema
How do I automate Word document creation with python-docx?

Automating Word document creation with python-docx is done by building files programmatically with styled headings, tables, images, and custom layouts. This Skill manages content assembly and formatting to produce publication-ready documents from structured inputs.

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

Yes, you can extract and edit text from an existing .docx file programmatically. This Skill unpacks Word documents to modify text, add comments, or clean tracked changes while preserving the document's structure and styling.

What's the best way to generate a formatted report with a table of contents in Word?

The best way to generate a formatted report with a table of contents in Word is to specify your content in a structured format. This Skill automates document structure customization and styled heading generation to produce professional reports.

Does this approach support embedding images and designing tables in Word documents?

Yes, this approach supports embedding images and designing tables in Word documents. The Skill handles precise formatting and content management, allowing you to programmatically insert images and create custom table layouts within your files.

Do I need python-docx installed to manipulate DOCX files?

Yes, you need python-docx installed to manipulate DOCX files. This Skill requires the python-docx dependency to programmatically handle document creation, editing, styling, and content management tasks.

How do I clean tracked changes in a Word document using Python?

To clean tracked changes in a Word document using Python, this Skill unpacks the existing file to process and modify its internal content. It manages tracked changes and comments directly through the python-docx library.