Install
openclaw skills install ssa-word-docxCreate, read, and edit Word documents (.docx) with support for templates, tables, and styling.
openclaw skills install ssa-word-docxUser needs to create, read, or edit Word documents (.docx). Supports template filling, table generation, and professional styling.
This skill uses python-docx for DOCX manipulation. All processing happens locally.
| Topic | File |
|---|---|
| Generate Quotation | scripts/generate_quotation_docx.py |
When generating documents repeatedly (quotations, proposals), use templates with placeholder text that gets replaced.
Use glob wildcards or pathlib for Chinese filename compatibility:
from pathlib import Path
for f in Path(".").glob("*.docx"):
doc = Document(str(f))
Word tables require explicit border and cell styling. Use Table Grid style as baseline.
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)
Text formatting happens at run level. A paragraph can contain multiple runs with different styles.
doc.add_page_break()pip3 install python-docx
Data that stays local:
This skill does NOT:
read-docx — Read-only DOCX extractionexcel-xlsx — Excel file handlingpdf-text-extractor — PDF text extractionclawhub star word-docxclawhub sync