docx

Create and edit Word documents with python-docx, pandoc, and LibreOffice.

31|9|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/codemo1991/nanobot-webui --skill docx-codemo1991
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/codemo1991/nanobot-webui/tree/main/nanobot/skills/docx
Command: npx skills add https://github.com/codemo1991/nanobot-webui --skill docx-codemo1991

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docx, pandoc, libreoffice, poppler-utils, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the creation, editing, and manipulation of Word documents (.docx files), eliminating manual formatting and complex operations.

Core Features & Use Cases

  • Document Creation: Generate professional Word documents from scratch using programmatic control over text, styles, tables, images, and more.
  • Content Editing: Modify existing .docx files, including accepting tracked changes, performing find-and-replace, and adding comments.
  • Format Conversion: Convert between document formats (e.g., .doc to .docx) and extract content into other formats.
  • Use Case: Automatically generate a monthly report in .docx format, incorporating data from various sources, applying consistent branding, and including a table of contents.

Quick Start

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

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate Word document generation with python-docx?

Automate Word document generation using python-docx to programmatically control text, styles, tables, and images. This Skill streamlines creating professional .docx files from scratch, eliminating manual formatting and complex operations through code-driven document assembly.

Can I edit an existing .docx file and accept tracked changes programmatically?

Yes, modify existing .docx files programmatically to accept tracked changes, perform find-and-replace, and add comments. This Skill handles content editing tasks directly through python-docx, automating revisions without opening Microsoft Word.

Do I need LibreOffice and pandoc to convert between document formats?

Yes, format conversion requires LibreOffice and pandoc to convert between document formats like .doc to .docx and extract content. These dependencies, alongside Poppler utilities, enable full format conversion and content extraction functionality.

What's the best way to programmatically add tables and images to a Word document?

The best way to add tables and images is using python-docx for programmatic control over document elements. This Skill generates professional Word documents with specific formatting, tables, and images directly from data sources.

Does this approach work for automatically generating formatted monthly reports?

Yes, automatically generate monthly reports in .docx format by incorporating data from various sources and applying consistent branding. This Skill programmatically creates documents including a table of contents and specific formatting for report generation.