Word / DOCX
Create, read, and edit Word documents (.docx) with support for templates, tables, and styling.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/cjboy007/ssa-word-docxWhen to Use
User needs to create, read, or edit Word documents (.docx). Supports template filling, table generation, and professional styling.
Architecture
This skill uses python-docx for DOCX manipulation. All processing happens locally.
Quick Reference
| Topic | File |
|---|---|
| Generate Quotation | scripts/generate_quotation_docx.py |
Core Rules
1. Use Templates for Consistency
When generating documents repeatedly (quotations, proposals), use templates with placeholder text that gets replaced.
2. Handle Chinese Filenames Carefully
Use glob wildcards or pathlib for Chinese filename compatibility:
from pathlib import Path
for f in Path(".").glob("*.docx"):
doc = Document(str(f))
3. Tables Need Explicit Styling
Word tables require explicit border and cell styling. Use Table Grid style as baseline.
4. Section Properties Control Layout
Page margins, orientation, and headers/footers are controlled at section level:
for section in doc.sections:
section.left_margin = Cm(2.5)
section.right_margin = Cm(2.5)
5. Runs vs Paragraphs
Text formatting happens at run level. A paragraph can contain multiple runs with different styles.
Common Traps
- Merged cells - Only top-left cell holds value in merged ranges
- Page breaks - Insert explicitly with
doc.add_page_break() - Images - Require absolute paths or file-like objects
- Styles - Built-in styles vary by Word version; test compatibility
Dependencies
pip3 install python-docx
Security & Privacy
Data that stays local:
- All file processing happens locally
- No external services called
This skill does NOT:
- Send data to external endpoints
- Require network access
Related Skills
read-docx— Read-only DOCX extractionexcel-xlsx— Excel file handlingpdf-text-extractor— PDF text extraction
Feedback
- If useful:
clawhub star word-docx - Stay updated:
clawhub sync
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-cjboy007-ssa-word-docx": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
logistics
物流管理技能,提供提单生成、报关单据生成、物流跟踪等功能。支持 OKKI 客户数据同步和自动化文档处理。
okki-email-sync
Synchronize email activities and quotation events with OKKI CRM as follow-up trail records. Automatically matches emails to CRM customers via domain lookup and vector search, creates trail records (email type=102, quotation type=101), and deduplicates entries. Requires OKKI CRM API access and optional vector search setup. Use when you need to automatically log email communications and quotation events in your CRM.
follow-up-engine
Automated customer follow-up scheduling and execution engine for B2B sales. Generates personalized follow-up email drafts based on customer stage, last contact date, and follow-up strategy. Integrates with CRM systems (configurable) to sync follow-up records. Use when you need to automate outbound sales follow-ups, schedule reminders, or generate follow-up email content for dormant leads.
报价单工作流
自动化生成报价单(Excel/Word/HTML/PDF),集成数据验证防止示例数据,支持 OKKI CRM
auto-evolution
Multi-agent auto-evolution system — orchestrate review-execute-audit loops with 4 roles (Coordinator, Reviewer, Executor, Auditor). A single coordinator agent drives the loop by spawning sub-agents for review, execution, and audit. Break goals into subtasks, auto-iterate with dual quality gates, and auto-package results. Use when: user wants autonomous task execution with built-in quality assurance.