docx

Create, edit, and analyze Word documents using Python libraries.

1|Updated Dec 12, 2025
One-click install
npx skills add https://github.com/ali156666/Panda-Bot --skill docx-ali156666
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/ali156666/Panda-Bot/tree/main/skills/docx
Command: npx skills add https://github.com/ali156666/Panda-Bot --skill docx-ali156666

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docx, LibreOffice, Poppler, pandoc, defusedxml, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill streamlines the creation, editing, and analysis of Word documents, providing advanced features for users who require professional-grade document management.

Core Features & Use Cases

  • Document Creation: Generate new Word documents from scratch or modify existing ones.
  • Editing: Apply professional formatting, including tables, lists, and images.
  • Analysis: Extract text, apply tracked changes, and convert documents to images.
  • Use Case: Suppose you need to create a comprehensive report that includes tables, charts, and embedded images. This Skill allows you to efficiently create the document, add the necessary content, and generate images of the tables and charts directly within the document.

Quick Start

Create a new Word document using the 'docx' skill and save it as 'report.docx'.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I create a Word document with tables and images using Python?

You can create a Word document with tables and images using Python by manipulating XML structures with the docx library. This approach supports applying professional formatting, including tables, lists, and embedded images, directly within the generated file.

Can I apply tracked changes to an existing Word document programmatically?

Yes, you can apply tracked changes to an existing Word document programmatically. The Skill supports advanced document analysis operations, allowing you to extract text and apply tracked changes to Word documents using Python libraries.

What dependencies do I need to convert a Word document to images?

To convert a Word document to images, you need LibreOffice and Poppler installed. These dependencies work alongside the docx Python library and pandoc to manage formatting and render document pages into image formats.

Does Python document editing require specific runtime environments?

Python document editing with this Skill requires Python 3.12 or higher. It also requires runtime support from DeepAgents and LangGraph to execute the underlying scripts that manipulate XML structures and manage document formatting.

What is the best way to extract text from a Word document for analysis?

The best way to extract text from a Word document for analysis is using Python libraries like docx to parse the XML structure. This allows you to efficiently extract text content and apply tracked changes for detailed document review.

How do I use pandoc for Word document conversion in Python?

Pandoc is used within this Python environment to manage formatting and convert Word documents. Combined with LibreOffice and the docx library, it manipulates XML structures to facilitate document conversion and image generation tasks.