Clawed Invoice Generator for Openclaw

A lightweight Node.js and jsPDF invoice generator designed to render professional PDF billing documents without resource-heavy browser dependencies.

alexwong27
v1.0.0
Jun 4, 2026
0
613
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install clawed-invoice

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 clawed-invoice 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 Clawed Invoice Generator?

Clawed Invoice Generator is a high-performance utility designed to construct clean, professional billing PDFs using a minimal memory footprint. Traditional PDF layout generators rely on complex, heavy headless browsers like Playwright or Puppeteer, which consume massive memory budgets and frequently fail on constrained server environments like Railway or minimal Docker instances. This skill bypasses these limitations completely by leveraging native Node.js and the jsPDF library.

Optimized for developers and automated environments, this workflow integrates into the library of Openclaw Skills to allow AI agents or automated pipelines to compile transaction details directly into publication-ready invoices. With support for multiple currencies, customizable hex colors, and pre-configured corporate entities, it offers an enterprise-grade solution without the typical deployment overhead.

Clawed Invoice Generator Use Cases

  • Automated Micro-SaaS Invoicing: Automate post-purchase invoice generation directly from backend webhooks without managing heavy headless browsers.
  • Constrained Hosting Environments: Compile invoices in minimal container instances, offline server clusters, or platforms like Railway where resources are strictly limited.
  • AI-Agent Multi-Tenant Invoicing: Allow autonomous AI agents to handle finance tasks, select corporate entities, and build custom invoices seamlessly through Openclaw Skills pipelines.
  • Cross-Border Billing Operations: Instantly switch banking and legal parameters (VAT, SWIFT, IBAN) across different corporate entities without code changes.

How Clawed Invoice Generator Works

  1. Initialize Configuration: The script reads the static local entity registry located in references/config.json to resolve default bank, swift, and tax details.
  2. Receive Invoice Payload: The system accepts dynamic invoice data, including itemized line rates, currency preferences, customer coordinates, and target entity IDs via CLI arguments.
  3. Compute Financial Matrix: Values such as subtotal net, applicable tax rate sums (VAT), and final gross currencies (EUR, GBP, or USD) are parsed and structured.
  4. Draw Layout to PDF Canvas: Using precise canvas draw instructions provided by jsPDF, the application draws a structured grid with brand-specific colors, a clean header, line-item tables, bank details, and payment notes.
  5. Write Document Artifact: Generates the final compiled PDF and writes the file directly to the configured output path.

Clawed Invoice Generator Setup

Ensure that your system is configured by verifying dependencies. This skill relies on jsPDF being present in the system directory.

1. Install Dependencies

Make sure the local Node environment has jspdf installed:

# Navigate to node modules path and install
cd /data/local/
npm install jspdf

2. Configure Your Corporate Entities

Update the /data/workspace/skills/clawed-invoice/references/config.json to specify your company's banking details:

{
  "default": {
    "entity": "Your Company Name Ltd",
    "swift": "XXXXXXXX",
    "iban": "XXXX XXXX XXXX XXXX XXXX",
    "companyNumber": "XXXXXXX",
    "currency": "GBP",
    "vatRate": "20%"
  }
}

3. Generate Your First Invoice

Run the generator script by supplying both your config layout and dynamic billing details:

node /data/workspace/skills/clawed-invoice/scripts/generate.js \
  --config /data/workspace/skills/clawed-invoice/references/config.json \
  --data '{"invoiceNumber":"INV-001","invoiceDate":"01/06/2026","customerNumber":"CUST-001","dueDate":"07/06/2026","customerName":"Acme Corp","customerAddress":"123 High Street, London","items":[{"code":"SVC","description":"Consulting services","qty":"8","net":"2,400.00","vatRate":"20%","vatAmt":"480.00","gross":"2,880.00"}],"currency":"GBP","entity":"default"}'

Clawed Invoice Generator Data Schema & Taxonomy

Dynamic Invoice Input Fields

Input Parameter Type Required Description Example
invoiceNumber String Yes Unique invoice identifier "INV-001"
invoiceDate String Yes Document issue date "01/06/2026"
dueDate String Yes Document due date "07/06/2026"
customerNumber String Yes Customer reference key "CUST-001"
customerName String Yes Target customer or business "Acme Corp"
customerAddress String Yes Multi-line customer billing address "123 High Street\nLondon"
currency String No Currency symbol selection (EUR, GBP, USD) "GBP"
entity String Yes Target key mapping to config file "default"
items Array Yes List of transaction line items See details below

Line-Item Structure

Each object inside the items array must contain the following keys:

  • code: Item identification code (e.g., "SVC")
  • description: Plain-text service or product summary
  • qty: Quantitative purchase count
  • net: Total pre-tax subtotal amount
  • vatRate: Decimal or percentage tax reference (e.g., "20%")
  • vatAmt: Calculated VAT charge amount
  • gross: Combined gross cost (Net + VAT)

Output Artifacts

Generates output structured below:

  • File Name: invoice-<invoiceNumber>.pdf
  • Default Directory: /tmp/invoices/ (or customized via the outputDir parameter)

Clawed Invoice Generator Advanced Features

  • Browserless Execution: Runs directly on barebones Alpine or minimal Debian container configurations without standard headless browser dependencies like Chrome.
  • Multi-Tenant Subsidiary Routing: Manage multiple entities within a single config structure and dynamically select active corporate metadata at runtime via the entity key parameter.
  • Custom Brand Palette Mapping: Override core visual colors using plain Hex parameters matching your exact corporate style branding.
  • Seamless Openclaw Skills Integration: Fully designed to integrate within autonomous agent workflows for hands-off accounting and transaction fulfillment automation.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*