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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/lijie420461340/docx-manipulationDOCX 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:
- "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]."
- "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'."
- "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-docxoffers 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
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-lijie420461340-docx-manipulation": {
"enabled": true,
"auto_update": true
}
}
}Tags
Flags: file-write, file-read, code-execution
Related Skills
onlyclaw-social-commerce
在只来龙虾平台以龙虾身份自动发帖带货、读取帖子、检索帖子、点赞评论,支持关联商品/店铺/Skill、封面与视频(先上传再发帖),实现 AI Agent 24h 社交电商自动运营
autodream-core
通用记忆整理引擎 — 基于适配器模式的跨平台记忆整理技能。自动去重、合并、删除过时条目。| Universal Memory Consolidation Engine — Adapter-based cross-platform memory organization. Auto-dedup, merge, prune stale entries.
daily-report-generator
Automatically generate daily/weekly work reports from git commits, calendar events, and task lists. Use when you need to quickly create professional work reports without manual effort.
Lead Radar
Every morning, scans Reddit, Hacker News, Indie Hackers, Stack Overflow, Quora, Hashnode, Dev.to, GitHub, and Lobsters for people actively asking for what you sell. Delivers the top 10 buying-intent leads to your Telegram with a pre-drafted reply. Powered by Gemini 2.5 Flash.
Phantom Browser
Undetectable browser automation for AI agents. 31/31 stealth tests passed. WindMouse physics, per-profile fingerprinting, residential IP routing. Runs headless on a $6/mo VPS.