360 Secure SkillHub
360 安全技能中心

Freelance Invoice Generator

该 Skill 是一个 Python 命令行工具,读取描述发票的 JSON 作业文件,自动完成多明细行的小计、折扣与税费计算,并生成含发票号、日期、到期日和滞纳金条款的 Markdown 或 HTML 发票;无需外部 API、账号或订阅,可选借助 pandoc 转为 PDF。仅支持单币种,不跟踪付款状态、不发送发票,也不含周期性计费。

ssidharhubble
ssidharhubble
热度 9.17
最近更新 2026-07-23 06:42:03
分类:效率依赖:代码执行 / 读写文件应用场景:财务 / 文件转换 / 模板

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add freelance-invoice-generator
Metadata
name
freelance-invoice-generator
description
Generate professional, client-ready freelance invoices in Markdown or HTML from a simple JSON job file with line items, tax rate, discounts, and late-fee terms. No external API, account, or subscription required. Useful for freelance consulting, python contract work, ai agent development gigs, and any passive income side hustle that needs fast, clean invoicing without paying for QuickBooks or FreshBooks. Handles multi-item invoices, subtotal/discount/tax math, and due-date and late-payment-fee language automatically.
compatibility
Created for Zo Computer
metadata
{"author":"ssyopros.zo.computer"}

Freelance Invoice Generator

Generates a polished invoice (Markdown or HTML) from a plain JSON job description — no signup, no paid invoicing SaaS.

When to use this skill

  • Billing a client for freelance/consulting work and you want a clean, professional document in under a minute
  • Need consistent invoice numbering, tax math, and late-fee language across multiple clients
  • Want an invoice you can convert to PDF (e.g. via pandoc) or paste into an email

How to use it

  1. Create a job JSON file describing the invoice (see the docstring in scripts/invoice_gen.py for the full schema):
    {
      "invoice_number": "INV-2026-014",
      "date": "2026-07-22",
      "due_date": "2026-08-05",
      "from": {"name": "Your Name", "email": "you@example.com"},
      "to": {"name": "Client Co", "email": "ap@client.com"},
      "items": [{"description": "Backend API build", "quantity": 1, "rate": 1500}],
      "tax_rate_pct": 5,
      "discount_usd": 0,
      "notes": "Thanks for the business!",
      "late_fee_pct_per_month": 1.5
    }
    
  2. Generate the invoice:
    python3 scripts/invoice_gen.py job.json --out invoice.md
    python3 scripts/invoice_gen.py job.json --out invoice.html --format html
    
  3. Optionally convert to PDF with pandoc invoice.md -o invoice.pdf if pandoc is available in your environment.

Limitations

  • Single currency per invoice (no multi-currency conversion)
  • Does not track payment status or send the invoice — generation only
  • No built-in recurring/subscription billing