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.
从结构化JSON数据生成PDF发票。
bash
cd invoice-generator && npm install
bash
export INVOICE_DIR=/path/to/your/invoices
这将创建目录结构:
$INVOICE_DIR/
├── configs/ # 可选:已保存的发票配置
└── invoices/ # 生成的PDF输出
bash
JSON输入必须包含以下字段:
json
{
company: {
name: 您的公司,
address: 123 Main St,
cityStateZip: 城市, 州, 12345,
country: 国家
},
client: {
name: 客户名称,
address: 456 Client Ave,
cityStateZip: 城市, 州, 67890,
country: 国家,
taxId: TAX123
},
invoice: {
number: INV-2025.01,
date: 2025年1月15日,
dueDate: 2025年1月30日
},
items: [
{
description: 服务描述,
rate: 1000.00,
currency: USD
}
],
totals: {
currency: USD,
total: 1,000.00
}
}
查看references/data-schema.md获取完整的字段文档。
脚本在成功时输出生成的PDF文件路径:
$INVOICE_DIR/invoices/invoice-INV-2025.01.pdf
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 invoice-generator-1776420060 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 invoice-generator-1776420060 技能
skillhub install invoice-generator-1776420060
文件大小: 5.68 KB | 发布时间: 2026-4-17 19:10