360 Secure SkillHub
360 安全技能中心

Invoice Gen

该 Skill 提供 Python 脚本,依据公司、客户、条目(描述|数量|单价)、税率、币种、到期条款和发票编号等输入,自动计算小计、税额与总额,输出打印就绪的 A4 PDF 发票,支持多种货币及中、日、韩文字,可自定义模板,声明无需外部服务、可离线运行;依赖 reportlab,CJK 显示需额外安装字体。

zacjiang
zacjiang
热度 65.14
最近更新 2026-05-11 17:29:24
分类:效率依赖:代码执行 / 读写文件应用场景:财务 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add invoice-gen
Metadata
name
invoice-gen
description
Generate professional PDF invoices from simple text commands. Supports multiple currencies, tax calculation, CJK text, and customizable templates. No external service needed.
author
zacjiang
version
1.0.0
tags
invoice, receipt, pdf, billing, business, freelance, accounting, CJK

Invoice Generator

Generate professional PDF invoices from natural language or structured data. Works offline, no external service needed.

Quick Start

Tell your OpenClaw agent:

Generate an invoice for:
- Client: Acme Corp, 123 Main St, New York
- Items: Web Development 40 hours @ $150/hr, Server Setup 1x $500
- Tax: 10%
- Due: Net 30
- My company: Zac Tech LLC

The agent will use this skill to generate a professional PDF invoice.

Script Usage

python3 {baseDir}/scripts/gen_invoice.py \
  --from "Your Company, 123 Street, City" \
  --to "Client Name, 456 Ave, City" \
  --items "Web Development|40|150" "Server Setup|1|500" \
  --tax 10 \
  --currency USD \
  --due "Net 30" \
  --number "INV-2026-001" \
  --output invoice.pdf

Features

  • 📄 Clean, professional PDF layout
  • 💰 Multiple currencies (USD, EUR, GBP, CNY, JPY, AUD, etc.)
  • 📊 Automatic subtotal, tax, and total calculation
  • 🔢 Sequential invoice numbering
  • 🇨🇳 CJK text support (Chinese/Japanese/Korean company names and items)
  • 📝 Notes and payment terms field
  • 🖨️ Print-ready A4 format

Item Format

Each item is a pipe-separated string: description|quantity|unit_price

"Website Design|1|2000"
"Hosting (monthly)|12|50"
"Content Writing|20|75"

Dependencies

pip3 install reportlab

For CJK support, install CJK fonts:

sudo yum install -y google-noto-sans-cjk-ttc-fonts  # RHEL/CentOS
sudo apt install -y fonts-noto-cjk                    # Ubuntu/Debian