docx

Read and create Word documents with headings and lists using python-docx.

49|2|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/vibeinging/YiYi --skill docx-vibeinging
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/vibeinging/YiYi/tree/main/app/src-tauri/skills/docx
Command: npx skills add https://github.com/vibeinging/YiYi --skill docx-vibeinging

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Word documents (.docx) are ubiquitous but programmatic extraction and generation can be tedious; this Skill provides a Python-based approach to read text from DOCX files and create new documents with headings and lists.

Core Features & Use Cases

  • Read DOCX: extract plain text from Word documents.
  • Create DOCX: generate new documents with headings and bullet lists.
  • Use Case: automate reporting by aggregating content from sources into a single DOCX for sharing.

Quick Start

Run the read_docx.py script on input.docx to extract and print its text.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I extract text from a Word document using Python?

To extract text from a Word document, run the read_docx.py script on your input .docx file to parse and print its plain text content. This automates content extraction without manual formatting interference.

Can I create a Word doc with headings and lists in Python?

Yes, you can generate new Word documents with headings and bullet lists by running the create_docx.py script. This allows you to programmatically compose reports, summaries, or templates.

Do I need python-docx to read and write DOCX files?

Yes, the python-docx library is required to perform read and write operations on DOCX files. The scripts handle missing dependencies gracefully and will prompt you to install it if absent.

What is the best way to automate report generation from Word documents?

Automating report generation involves using Python scripts to read content from DOCX sources and aggregate it into a newly created .docx file with structured headings and lists for sharing.

Why does my Python script fail to write DOCX files?

Your script fails to write DOCX files if the python-docx dependency is missing from your environment. Ensure the library is installed before executing the create_docx.py script.