skills$openclaw/invoice-generator
tmigone9.9kโ˜…

by tmigone

invoice-generator โ€“ OpenClaw Skill

invoice-generator is an OpenClaw Skills integration for coding workflows. 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.

9.9k stars7.7k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026coding

Skill Snapshot

nameinvoice-generator
descriptionGenerate 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. OpenClaw Skills integration.
ownertmigone
repositorytmigone/invoice-generator
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @tmigone/invoice-generator
last updatedFeb 7, 2026

Maintainer

tmigone

tmigone

Maintains invoice-generator in the OpenClaw Skills directory.

View GitHub profile
File Explorer
8 files
.
references
data-schema.md
3.0 KB
scripts
generate.sh
3.2 KB
_meta.json
287 B
package-lock.json
2.6 KB
package.json
133 B
SKILL.md
2.4 KB
SKILL.md

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"}}

Invoice Generator

Generate PDF invoices from structured JSON data.

Setup

  1. Install Node.js dependencies:
cd invoice-generator && npm install
  1. Set 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

Usage

# 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)

Input Data Format

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.

Output

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.)

Error Handling

  • Exits with code 1 if JSON is invalid or missing required fields
  • Exits with code 2 if weasyprint fails to generate PDF
  • Error messages are written to stderr
README.md

No README available.

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

FAQ

How do I install invoice-generator?

Run openclaw add @tmigone/invoice-generator in your terminal. This installs invoice-generator into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/tmigone/invoice-generator. Review commits and README documentation before installing.