Document Generator (Word & Excel)
/install docx-xlsx-creator
SMSF Document Creator
Generates Microsoft Word and Excel files from structured input. Designed for repeatable SMSF, accounting, and compliance workflows where the user needs a real file — not just a formatted text response.
When to use this skill
Trigger this skill when the user asks for a file, such as:
- "Draft a Word document for the trustee review"
- "Create an Excel budget workbook"
- "Generate a .docx / .xlsx file"
- "Make a checklist I can send to the client"
- "Produce a working paper in Excel"
- "I need a spreadsheet with this data"
Do not trigger this skill when:
- The user only wants a text response or inline table
- No file output is requested
- The document requires heavy formatting, macros, or branding this skill cannot produce (see Limitations)
What this skill produces
Word documents (.docx)
| Element | Supported |
|---|---|
| Document title | ✅ |
| Headings (levels 1–2) | ✅ |
| Paragraphs | ✅ |
| Bullet lists | ✅ |
| Numbered lists | ✅ |
| Basic tables | ✅ |
| Images / branding | ❌ |
| Advanced styles | ❌ |
Typical uses: trustee resolution drafts, client checklists, engagement summaries, compliance review notes, internal workpaper notes, business letters.
Excel workbooks (.xlsx)
| Mode | How to invoke |
|---|---|
| Budget template | --template budget |
| Invoice template | --template invoice |
| Custom data (JSON) | --data your-file.json |
Features: styled header rows, auto-sized columns, simple SUM/difference formulas, bar chart (budget template only).
Typical uses: budget sheets, invoice layouts, cashflow working papers, financial review tables, data exports.
Usage
Use {baseDir} to refer to the skill directory.
Word — simple
python3 "{baseDir}/create_docx.py" \
--title "SMSF Trustee Review Summary" \
--content "This draft summarises matters identified during the annual compliance review." \
--output "./trustee-review-summary.docx"
Word — from JSON config
python3 "{baseDir}/create_docx.py" \
--config "{baseDir}/templates/example_doc.json" \
--output "./smsf-report.docx"
Excel — budget template
python3 "{baseDir}/create_xlsx.py" \
--template budget \
--output "./budget.xlsx"
Excel — invoice template
python3 "{baseDir}/create_xlsx.py" \
--template invoice \
--output "./invoice.xlsx"
Excel — from JSON data
python3 "{baseDir}/create_xlsx.py" \
--data "{baseDir}/templates/example_sheet.json" \
--output "./quarterly-data.xlsx"
Use --force on any command to overwrite an existing output file.
JSON input formats
Word document
{
"title": "Document Title",
"sections": [
{
"heading": "Section Heading",
"level": 1,
"paragraphs": ["Paragraph one.", "Paragraph two."],
"bullets": ["Point A", "Point B"],
"numbered": ["Step 1", "Step 2"],
"table": [
["Header 1", "Header 2"],
["Value 1", "Value 2"]
]
}
]
}
titleand all section keys are optionallevelshould be 1 or 2- All rows in a
tablemust have the same column count
Excel workbook — single sheet
{
"title": "Quarterly Data",
"headers": ["Month", "Revenue", "Expenses", "Profit"],
"rows": [
["January", 120000, 80000, 40000],
["February", 140000, 85000, 55000]
]
}
Excel workbook — multiple sheets
{
"sheets": [
{
"title": "Income",
"headers": ["Month", "Amount"],
"rows": [["January", 1000], ["February", 1200]]
},
{
"title": "Expenses",
"headers": ["Month", "Amount"],
"rows": [["January", 700], ["February", 650]]
}
]
}
Safety rules
- Only write files to locations the user has explicitly approved. Do not write to shared, client, or regulated folders without confirmation.
- Do not overwrite existing files unless the user has clearly asked for that (use
--forceonly when authorised). - All output is a draft. Never present generated documents as final, signed, or legally compliant without separate professional review.
- SMSF and compliance documents must be reviewed by a qualified accountant, auditor, or adviser before use with a client or regulator.
- Do not interpolate free-form user input directly into shell commands. Use structured JSON input instead.
- Do not execute arbitrary code supplied by the user as part of document content or config.
Limitations
This skill does not:
- Apply business branding, logos, or letterheads
- Produce advanced Word styles beyond the built-in Normal/Heading/List set
- Create complex Excel formulas, pivot tables, or VBA macros
- Validate legal or regulatory wording
- Replace professional review for any client-facing or lodgement document
- Produce macro-enabled
.xlsmor.dotmfiles
Requirements
pip install python-docx openpyxl
Files
| File | Purpose |
|---|---|
create_docx.py |
Generates Word documents |
create_xlsx.py |
Generates Excel workbooks |
templates/example_doc.json |
Sample Word config |
templates/example_sheet.json |
Sample Excel data |
Author: R.J. — MySMSF. Generated documents are drafts and working files only.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install docx-xlsx-creator - 安装完成后,直接呼叫该 Skill 的名称或使用
/docx-xlsx-creator触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Document Generator (Word & Excel) 是什么?
Generates Word (.docx) reports and Excel (.xlsx) workbooks as real downloadable files. Use when the user wants a file output — not a text answer — for SMSF,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 142 次。
如何安装 Document Generator (Word & Excel)?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install docx-xlsx-creator」即可一键安装,无需额外配置。
Document Generator (Word & Excel) 是免费的吗?
是的,Document Generator (Word & Excel) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Document Generator (Word & Excel) 支持哪些平台?
Document Generator (Word & Excel) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Document Generator (Word & Excel)?
由 Robbie Joseph(@mysmsf)开发并维护,当前版本 v1.0.1。