docx

Create, read, and format Word documents (.docx) using Python libraries.

Updated May 9, 2026
One-click install
npx skills add https://github.com/HwFee/AgentProject --skill docx-hwfee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/HwFee/AgentProject/tree/main/skills/docx
Command: npx skills add https://github.com/HwFee/AgentProject --skill docx-hwfee

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill automates the creation, reading, editing, and formatting of Word documents (.docx), saving time on drafting reports, letters, templates, and content updates.

Core Features & Use Cases

  • Word document creation and editing with professional formatting (headings, tables of contents, page numbers, letterheads)
  • Content extraction, image insertion, find-and-replace, and tracked changes handling
  • Convert outlines or drafts into polished Word documents for reports, memos, letters, and templates

Quick Start

Create a polished Word document from an outline with headings, formatting, and images as needed.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automatically create a Word document from an outline?

You can automate Word document creation from an outline using Python-based tooling to apply professional formatting, headings, and tables of contents, directly generating a polished .docx file.

Can I extract content and insert images into a .docx file programmatically?

Yes, you can extract content and insert images into a .docx file programmatically. This Skill supports reading existing Word documents, modifying their XML structure, and adding visual elements to generate formatted reports and templates.

What is the best way to handle tracked changes and find-and-replace in Word documents?

The best way to handle tracked changes and find-and-replace in Word documents is using automated XML parsing with Python libraries like lxml. This approach robustly modifies document structures while preserving formatting integrity.

Do I need Python libraries like lxml and defusedxml to automate Word document formatting?

Yes, you need Python libraries like lxml and defusedxml to automate Word document formatting. These dependencies allow the Skill to securely and robustly parse and modify the underlying XML structure of .docx files.

Does this approach work for generating professional reports and letterheads in .docx?

Yes, this approach works for generating professional reports and letterheads in .docx. The automation tooling applies advanced formatting to outlines and drafts, producing polished Word documents suitable for formal letters and corporate reports.

What are the limitations of using Python to edit Word documents compared to manual editing?

Limitations of using Python to edit Word documents include potential difficulties with highly complex visual layouts. While it robustly parses XML for text, tables, and tracked changes, intricate manual design adjustments may still require a graphical editor.