ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified productivity Safety 4/5

docx-manipulation

Create, edit, and manipulate Word documents programmatically using python-docx

Why use this skill?

Effortlessly create, edit, and manipulate Word (.docx) documents programmatically. Generate reports, contracts, and more with the DOCX Manipulation Skill.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/lijie420461340/docx-manipulation
Or

DOCX Manipulation Skill Guide

What This Skill Does

The DOCX Manipulation Skill empowers users to programmatically create, edit, and modify Microsoft Word (.docx) documents with unparalleled ease. Leveraging the robust capabilities of the python-docx library, this skill allows for the generation of professional documents that include intricate formatting, custom styles, dynamic tables, and embedded images, all without the need for manual intervention. Whether you need to generate reports, contracts, personalized letters, or convert content from other formats into a polished Word document, this skill provides a powerful solution for automating your document creation workflows.

Installation

To install the DOCX Manipulation Skill, use the following command:

clawhub install openclaw/skills/skills/lijie420461340/docx-manipulation

This command will download and integrate the skill into your OpenClaw environment, making its functionalities readily available.

Use Cases

This skill is ideal for a variety of tasks, including but not limited to:

  • Automated Report Generation: Create structured reports with titles, headings, paragraphs, and data tables populated from external sources.
  • Document Templating: Generate standardized documents like contracts, invoices, or certificates with dynamic content inserted into predefined templates.
  • Content Conversion: Transform content from formats like Markdown or plain text into well-formatted Word documents.
  • Batch Document Creation: Produce multiple documents based on a list of inputs, significantly saving time and effort.
  • Adding Headers and Footers: Enhance documents with consistent headers and footers containing page numbers, titles, or company information.
  • Data Visualization: Embed charts and graphs (supported via image insertion) into Word documents.

Example Prompts

Here are some examples of how you might interact with the DOCX Manipulation Skill:

  1. "Please create a monthly sales report. Include a title 'Q3 Sales Performance', a subtitle 'August 2023', and a table summarizing sales figures for Product A, B, and C across different regions. The data is as follows: [provide data]."
  2. "I need a professional-looking invoice document. Use the attached logo, add a header with my company name 'Innovate Solutions Inc.', and a footer with contact details. The main content should include placeholders for 'Invoice Number', 'Date', 'Bill To', and 'Amount Due'."
  3. "Take the following markdown text and convert it into a Word document with proper headings for each section and the list items formatted correctly."

Tips & Limitations

  • Formatting Precision: While python-docx offers extensive formatting options, achieving pixel-perfect replication of complex Word features might require iterative adjustments. Start with basic formatting and gradually add complexity.
  • Image Handling: Ensure images are in a compatible format (e.g., PNG, JPG) and accessible to the script. You can specify image dimensions for better control.
  • Error Handling: Complex documents or malformed inputs can lead to errors. It's good practice to test with simpler scenarios first.
  • Existing Documents: When editing existing documents, be aware that the skill primarily adds content or modifies specific elements. Extensive structural changes to complex existing documents might be challenging.
  • File Paths: Ensure any file paths provided for images or existing documents are correct and accessible within the execution environment.

Metadata

Stars1656
Views41
Updated2026-02-28
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-lijie420461340-docx-manipulation": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags

#document#word#docx#python-docx#automation
Safety Score: 4/5

Flags: file-write, file-read, code-execution