跳到正文
TakoAPI
返回技能列表

invoice-generator

由 tmigone 提供

PDF & Documents
3.2k下载量由 clawskills.sh 提供
2星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Generate professional PDF invoices from JSON.

描述

该技能的功能

Converts structured JSON data into PDF invoices with company and client details, line items, and totals. Supports input from stdin, a file path, or a saved config template stored in a configured directory. Output files are auto-versioned to avoid overwrites.

Generates consistently formatted PDFs from plain JSON without opening a word processor or spreadsheet each time.

何时使用

  • Sending a monthly invoice to a recurring freelance client
  • Reusing a saved template to bill the same client each month
  • Generating invoices from JSON exported by a billing or time-tracking tool
  • Creating payment requests with itemized services and due dates
  • Automating invoice numbering in a scripted billing workflow

示例工作流

输入

User asks: Create an invoice for Acme Corp for consulting services at $2000, due Feb 28

智能体
  1. 1

    Collect company, client, invoice number, due date, and line item details

  2. 2

    Format collected data into the required JSON schema

  3. 3

    Run generate.sh with the JSON as input

  4. 4

    Capture the output path returned by the script

输出

PDF saved to $INVOICE_DIR/invoices/invoice-INV-2025.01.pdf

前置要求

  • INVOICE_DIR environment variable set to a writable directory path
  • weasyprint installed for PDF rendering

安装

clawhub install tmigone/invoice-generator

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接