docx

Read, create, and convert DOCX files using python-docx, Pandoc, and LibreOffice.

8|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/thechandanbhagat/claude-skills --skill docx-thechandanbhagat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/thechandanbhagat/claude-skills/tree/main/skills/docx
Command: npx skills add https://github.com/thechandanbhagat/claude-skills --skill docx-thechandanbhagat

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Word documents (DOCX) are ubiquitous but manual editing, extraction, and format conversions are time consuming. This skill automates reading, creating, converting, and templating DOCX files to save time and reduce errors.

Core Features & Use Cases

  • Read DOCX content and extract text, tables, and images for downstream processing.
  • Generate DOCX files from templates or data sources, enabling automated report creation.
  • Convert between formats (DOCX, PDF, HTML, Markdown) and perform batch processing of multiple documents.

Quick Start

  • Read all text from a DOCX file using Python and the python-docx library.
  • Create a new DOCX from a template using data mapping.
  • Convert a DOCX to PDF or HTML using Pandoc or LibreOffice.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I extract text and tables from a DOCX file using Python?

You can extract text and tables from a DOCX file by utilizing the python-docx library in Python to read document elements. This process allows you to capture structured content from Word documents for downstream automated processing.

Can I convert DOCX files to PDF or HTML in bulk?

Yes, you can convert DOCX files to PDF or HTML in bulk by leveraging Pandoc or LibreOffice for batch processing. This method automates format conversion across multiple Word documents to streamline your file workflows.

How do I generate Word documents from templates and data sources?

To generate Word documents from templates, you can map external data sources to predefined DOCX template structures using python-docx. This enables automated report creation and streamlines document generation workflows.

Do I need Pandoc or LibreOffice installed to convert DOCX to Markdown?

Yes, converting DOCX to Markdown requires external tools like Pandoc or LibreOffice installed in your environment. These dependencies handle the format transformation beyond the basic document reading capabilities of the python-docx library.

What is the best way to automate reading and converting Word documents?

The best way to automate reading and converting Word documents is using a Python-based approach with python-docx for extraction and Pandoc or LibreOffice for format conversion. This combination supports batch processing and templating to reduce manual errors.