docx

Create, edit, format, and extract content from .docx files via Python scripts.

1|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/DEEP-PolyU/matopt-xlab --skill docx-deep-polyu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/DEEP-PolyU/matopt-xlab/tree/main/backend/skills/docx
Command: npx skills add https://github.com/DEEP-PolyU/matopt-xlab --skill docx-deep-polyu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Word document creation, editing, formatting, and content manipulation often require multiple tools and manual steps. This skill consolidates those tasks into a cohesive workflow for .docx files.

Core Features & Use Cases

  • Create new Word documents using templates and predefined styles to ensure consistent formatting.
  • Read, edit, format, and embed content in existing .docx documents, including images, tables, and tracked changes.
  • Convert or export Word documents to common formats and extract text or structured data for reuse in other systems.
  • Use case: prepare a polished report by applying a structured heading scheme, generating a Table of Contents, and exporting a finalized file.

Quick Start

Load a Word document and request a specific transformation (create, edit, format, or extract) to produce the updated .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 formatting and edit an existing docx file?

To automate Word document formatting, load an existing .docx file and request transformations like style adjustments, heading scheme applications, or tracked changes. The skill operates via Python scripts and docx tooling to apply formatting and embed content with validation and error handling, ensuring deterministic and safe output.

Can I insert images and tables into a Word document through automated scripts?

Yes, you can insert images and tables into a Word document through automated scripts. The skill reads, edits, and embeds content in existing .docx documents, allowing you to programmatically add images, generate tables, and apply predefined styles to ensure consistent formatting across business and publishing contexts.

What is the best way to extract text and structured data from a docx file?

The best way to extract text and structured data from a .docx file is using an automated docx tooling workflow. The skill reads existing Word documents and extracts text or structured data for reuse in other systems, operating via Python scripts to ensure accurate content manipulation and deterministic outputs.

Does this docx workflow support tracked changes and template-based document generation?

Yes, this docx workflow supports tracked changes and template-based document generation. It creates new Word documents using templates and predefined styles to ensure consistent formatting, while also reading and editing existing .docx documents to embed content and manage tracked changes across business and education contexts.

How do I generate a Table of Contents and apply a heading scheme in a Word document?

To generate a Table of Contents and apply a heading scheme in a Word document, use the skill to apply a structured heading format and generate the corresponding index. It consolidates formatting tasks into a cohesive workflow, preparing a polished report by applying predefined styles and exporting the finalized .docx file.