docx

Create, read, edit, and manipulate Word .docx files using python-docx.

4|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/Heldinhow/awesome-opencode-dev-skills --skill docx-heldinhow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Heldinhow/awesome-opencode-dev-skills/tree/main/docx
Command: npx skills add https://github.com/Heldinhow/awesome-opencode-dev-skills --skill docx-heldinhow

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the creation, reading, editing, and manipulation of Word documents (.docx), streamlining document generation and modification tasks.

Core Features & Use Cases

  • Programmatic Document Creation: Generate new .docx files with specified structure, content, and formatting.
  • Content Manipulation: Read existing .docx files, modify their content, and save changes.
  • Formatting Control: Apply styles, headings, paragraphs, tables, images, and headers/footers.
  • Use Case: Automatically generate personalized offer letters for new hires, including their name, position, and salary, all formatted correctly within a .docx template.

Quick Start

Use the docx skill to create a new document with a title and a paragraph.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I generate Word documents programmatically using Python?

Reading and editing existing .docx files is supported by loading the document with python-docx to modify paragraphs, tables, and styling before saving the updated Word document locally.

Can I automate personalized document creation like offer letters with python-docx?

Yes, you can automate personalized document creation by populating a .docx template with specific data such as names, positions, and salaries to generate correctly formatted Word documents automatically.

What formatting control does python-docx provide for Word document generation?

Formatting control in Word document generation includes applying consistent styles, headings, paragraphs, tables, images, and headers or footers across the generated .docx files via python-docx XML processing.

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

Yes, python-docx is a required dependency because it provides the necessary XML-based processing capabilities to handle the creation, reading, and manipulation of Word documents within this Skill.

Are there limitations when manipulating Word documents with python-docx?

Manipulating Word documents with python-docx is limited to supported structured elements like paragraphs and tables, meaning complex formatting or advanced Word features not exposed by the library may be restricted.