Invoice Generator for Openclaw

A professional PDF generation tool that converts structured JSON data into formatted invoices with automatic versioning.

tmigone
v1.0.0
Jan 23, 2026
2
5.7k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install invoice-generator

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install invoice-generator using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Invoice Generator?

The Invoice Generator is a powerful utility designed for developers and automation enthusiasts who need to produce professional financial documents programmatically. By utilizing Openclaw Skills, this tool takes the friction out of billing by converting simple JSON structures into elegant, print-ready PDF invoices. It is ideal for integrating into broader automation pipelines or using as a standalone CLI tool for rapid document creation.

This skill ensures consistency across your financial output by utilizing a standardized data schema. It handles environmental configurations and provides a clean directory structure for managing both your templates and your generated outputs, making it an essential addition to any developer's toolkit.

Invoice Generator Use Cases

  • Generating monthly recurring invoices for subscription-based clients.
  • Automating payment requests directly from a project management database.
  • Creating professional receipts for digital goods after a successful transaction.
  • Managing billing templates for multiple clients within a single directory structure.

How Invoice Generator Works

  1. Prepare your invoice data following the required JSON schema, including company details, client information, and line items.
  2. Pass the data to the generator via standard input, a file path, or by referencing a saved configuration.
  3. The script validates the input and uses Weasyprint to render a high-quality PDF document.
  4. The system checks the destination folder for existing files and automatically versions the new PDF to avoid overwriting data.
  5. The path to the final PDF is returned to the console for immediate use or further processing.

Invoice Generator Setup

First, install the necessary Node.js dependencies:

cd invoice-generator && npm install

Next, configure your environment by setting the INVOICE_DIR variable to your preferred storage location:

export INVOICE_DIR="/path/to/your/invoices"

Ensure that system dependencies like node, jq, and weasyprint are installed on your machine for the script to execute successfully.

Invoice Generator Data Schema & Taxonomy

The skill expects a JSON object with the following primary keys:

Key Description
company Your business details (name, address, city/state/zip, country).
client Recipient information including name, address, and optional tax ID.
invoice Metadata including invoice number, issue date, and due date.
items An array of line items with description, rate, and currency.
totals Summary of the total amount and currency type.

All files are organized within the INVOICE_DIR under configs/ for templates and invoices/ for final PDF exports.

Invoice Generator Advanced Features

  • Config-based generation: Load pre-defined client templates from the configs directory for faster processing.
  • Intelligent file versioning: Automatically appends numerical suffixes (e.g., -2, -3) if a file with the same invoice number already exists.
  • Flexible input streams: Pipe JSON data directly from other tools or scripts for seamless automation within Openclaw Skills.
  • CLI-ready error handling: Provides specific exit codes for invalid JSON (1) or PDF generation failures (2) to assist in debugging.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*