docx

Create, read, edit, and format Word documents programmatically.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

The docx skill eliminates tedious, error-prone manual work involved in creating, reading, editing, and formatting Word documents (.docx), enabling faster production of polished outputs.

Core Features & Use Cases

  • Create new documents with advanced formatting (headings, tables of contents, page numbers, letterheads)
  • Edit existing documents by inserting images, reorganizing content, performing find-and-replace, or applying consistent styles
  • Manage tracked changes and comments, and convert or export content into polished Word documents for distribution

Quick Start

Create a Word document from your data that includes formatting and images.

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 generation with formatting and images?

Editing existing .docx files programmatically allows you to insert images, reorganize content, perform find-and-replace operations, and apply consistent styles. This eliminates error-prone manual work by manipulating document structure directly through code.

Can I manage tracked changes and comments in a Word document automatically?

Managing tracked changes and comments in a Word document can be automated to streamline review cycles. This functionality allows scripts to programmatically add, accept, or reject revisions and annotations within .docx files for collaborative editing workflows.

Does the docx skill require specific XML libraries to process Word documents?

Processing Word documents programmatically requires specific XML parsing libraries like defusedxml and lxml to safely and efficiently manipulate the internal XML structure of .docx files. These dependencies ensure robust document parsing and modification operations.

What is the best way to generate formatted reports and resumes as Word documents?

Generating formatted reports and resumes as Word documents is best handled by programmatically building .docx files with predefined templates. This approach supports advanced formatting like tables of contents, page numbers, and letterheads to produce polished outputs automatically.

How do I convert or export content into polished Word documents for distribution?

Converting or exporting content into polished Word documents for distribution involves using scripts to assemble formatted text, tables, and images into a final .docx file. This ensures consistent, professional formatting suitable for downstream sharing and publication.