Generate professional PDF invoices from JSON data. Use when the user needs to create an invoice, billing document, or payment request with company/client details and line items.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install invoice-generator或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install invoice-generator⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/invoice-generator/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: invoice-generator description: Generate professional PDF invoices from JSON data. Use when the user needs to create an invoice, billing document, or payment request with company/client details and line items. metadata: {"clawdbot":{"emoji":"🧾","requires":{"bins":["node","jq","weasyprint"],"env":["INVOICE_DIR"]},"primaryEnv":"INVOICE_DIR"}} ---
Generate PDF invoices from structured JSON data.
cd invoice-generator && npm install
INVOICE_DIR environment variable (or in skills.entries.invoice-generator.env):export INVOICE_DIR="/path/to/your/invoices"
This creates the directory structure:
$INVOICE_DIR/
├── configs/ # Optional: saved invoice configs
└── invoices/ # Generated PDF output
# From stdin (on-the-fly)
cat invoice-data.json | {baseDir}/scripts/generate.sh
# From a full file path
{baseDir}/scripts/generate.sh /path/to/invoice-data.json
# From a saved config (looks in $INVOICE_DIR/configs/)
{baseDir}/scripts/generate.sh client-template
# Loads: $INVOICE_DIR/configs/client-template.json
# Output goes to: $INVOICE_DIR/invoices/invoice-{number}.pdf (auto-versions if exists)
The JSON input must contain these fields:
{
"company": {
"name": "Your Company",
"address": "123 Main St",
"cityStateZip": "City, State, 12345",
"country": "Country"
},
"client": {
"name": "Client Name",
"address": "456 Client Ave",
"cityStateZip": "City, State, 67890",
"country": "Country",
"taxId": "TAX123"
},
"invoice": {
"number": "INV-2025.01",
"date": "Jan 15 2025",
"dueDate": "Jan 30 2025"
},
"items": [
{
"description": "Service description",
"rate": "1000.00",
"currency": "USD"
}
],
"totals": {
"currency": "USD",
"total": "1,000.00"
}
}
See references/data-schema.md for complete field documentation.
The script outputs the path to the generated PDF file on success:
$INVOICE_DIR/invoices/invoice-INV-2025.01.pdf
# If that filename already exists, the script will write:
# $INVOICE_DIR/invoices/invoice-INV-2025.01-2.pdf (then -3, etc.)
安装 Invoice Generator 后,可以对 AI 说这些话来触发它
Help me get started with Invoice Generator
Explains what Invoice Generator does, walks through the setup, and runs a quick demo based on your current project
Use Invoice Generator to generate professional PDF invoices from JSON data
Invokes Invoice Generator with the right parameters and returns the result directly in the conversation
What can I do with Invoice Generator in my design & creative workflow?
Lists the top use cases for Invoice Generator, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/invoice-generator/ 目录(个人级,所有项目可用),或 .claude/skills/invoice-generator/(项目级)。重启 AI 客户端后,用 /invoice-generator 主动调用,或让 AI 根据上下文自动发现并使用。
Invoice Generator 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Invoice Generator 可免费安装使用。请查阅仓库了解许可证信息。
Generate professional PDF invoices from JSON data. Use when the user needs to create an invoice, billing document, or payment request with company/client details and line items.
Invoice Generator 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my design & creative tasks using Invoice Generator
Identifies repetitive steps in your workflow and sets up Invoice Generator to handle them automatically