docx

Creates, reads, and modifies Word files using python-docx libraries.

5|Updated Jan 12, 2026
One-click install
npx skills add https://github.com/SherifEldeeb/agentskills --skill docx-sherifeldeeb
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/SherifEldeeb/agentskills/tree/main/skills/baseline/docx
Command: npx skills add https://github.com/SherifEldeeb/agentskills --skill docx-sherifeldeeb

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Read, modify, and create Microsoft Word documents programmatically, enabling automation of report generation and markdown-to-DOCX conversion.

Core Features & Use Cases

  • Read, modify, and create DOCX files using python-docx
  • Markdown to DOCX conversion using templates
  • Template-based styling for consistent formatting

Quick Start

To convert a Markdown report to DOCX, run: python scripts/md_to_docx.py input.md --output output.docx --template template.docx

Frequently Asked Questions about docx

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

FAQPage Schema
How do I convert markdown to a Word document programmatically?▼

To convert markdown to a Word document, you can use the python-docx library alongside optional markdown and lxml packages to parse text and render styled DOCX files from templates.

Do I need python-docx installed to generate Word documents from templates?▼

Yes, python-docx is required to generate Word documents from templates, serving as the core dependency for reading, modifying, and creating DOCX files programmatically.

Can I modify an existing DOCX file using Python?▼

You can modify an existing DOCX file using Python by leveraging the python-docx library to read the document structure, apply template-based styling, and update content.

What's the best way to automate report generation in DOCX format?▼

Automating report generation in DOCX format is best handled by using markdown templates and python-docx to parse content and apply consistent formatting across generated Word files.

Does markdown to DOCX conversion support custom template styling?▼

Markdown to DOCX conversion supports custom template styling by using predefined DOCX template files to ensure consistent formatting and layout across generated documents.

Why does my python-docx script fail to render complex markdown elements?▼

Rendering complex markdown elements in python-docx may fail without optional dependencies like markdown and lxml, which are needed to properly parse and format nested content into the DOCX structure.