docx

Create and edit Word documents with python-docx, including tracked changes.

2|1|Updated Feb 16, 2026
One-click install
npx skills add https://github.com/desirecore/market --skill docx-desirecore
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/desirecore/market/tree/main/skills/docx
Command: npx skills add https://github.com/desirecore/market --skill docx-desirecore

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the process of creating, editing, and manipulating Word (.docx) documents, replacing manual tasks with automated workflows.

Core Features & Use Cases

  • Document Generation: Create professional Word files with formatted text, tables, images, and styles.
  • Content Editing: Extract, update, or reorganize content within existing Word documents, including comments and tracked changes.
  • Use Case: Generate a formatted project report with headers, tables, and images, then insert comments and track revisions programmatically.

Quick Start

Use the docx skill to generate a report with a title, a table, and a cover page, then save as report.docx.

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 formatted text and tables?

Automate Word document creation by utilizing python-docx to programmatically generate professional files containing formatted text, tables, images, and custom styles to streamline report generation workflows.

Can I extract and update content within existing docx files?

Yes, you can extract, update, or reorganize content within existing docx files programmatically. This includes manipulating document text and reorganizing structure to support content management workflows.

Does python-docx support adding comments and tracking revisions in Word documents?

Yes, python-docx supports inserting comments and tracking revisions in Word documents. This allows you to programmatically manage collaborative editing and revision tracking workflows within your files.

What is the best way to ensure style compliance and format validation when generating reports?

Ensure style compliance and format validation during document generation by utilizing python-docx to enforce high fidelity in document structure and maintain consistent style formatting throughout the output file.

How do I programmatically create a cover page and headers for a project report?

Create cover pages and headers for project reports by utilizing document automation scripts to programmatically design and insert formatted title sections, header structures, and tables into your Word file.

Do I need lxml to manipulate document structure and styles?

Yes, lxml is required alongside python-docx to process the underlying XML structure, ensuring high fidelity in document structure manipulation and style compliance for complex Word files.