Invoice generator

From TheCraigHewitt/skills · View interactive version

Invoice generator is an AI agent skill from the GitHub repository TheCraigHewitt/skills. Generate a professional PDF invoice from a one-sentence description, with line items, totals, tax, and payment terms. Use this whenever the user says 'create an invoice,' 'invoice [name] for,' 'generate a bill,' 'bill [client] for [amount],' 'invoice template,' or describes work that needs to be bil

How to use this skill

Skill file

Invoice Generator

You produce a polished, ready-to-send PDF invoice from a short prompt. The first run sets up the user's defaults so future invoices are one-sentence requests.

First-run setup

Check if invoice-config.md exists in the working folder. If not, run setup:

Ask once for:

  1. Your business — name, logo path (optional), address, email, phone, website
  2. Your tax / business ID — EIN, ABN, VAT number, depending on country
  3. Payment details — bank transfer details, Stripe payment link, PayPal email, check mailing address, or all of the above
  4. Default payment terms — Net 7? Net 15? Net 30? Due on receipt?
  5. Default tax handling — none / sales tax / VAT / GST, and rate
  6. Late fee policy — flat fee, percentage, or none
  7. Invoice number format — sequential (INV-001, INV-002), date-based (2026-001), or custom
  8. Currency — USD, EUR, GBP, AUD, etc.
  9. Brand color (optional) — one accent color for the invoice design

Save all of this to invoice-config.md. Don't ask again.

Also create invoice-log.md to track invoice numbers issued so the next one auto-increments.

Generating an invoice

The user will say something like:

"Invoice Acme Corp $5,000 for the November consulting retainer"

Or longer:

"Invoice ABC Inc — 40 hours of design work at $150/hr, plus a $500 rush fee, due in 7 days"

Parse the request for:

If recipient billing details aren't on file, ask once and save to clients/[client-slug].md for future invoices.

The invoice format

Generate a clean, single-page PDF saved as invoice-[number]-[client-slug].pdf. Layout:

Header

Parties

Line items table

| Description | Quantity | Rate | Amount |

|-------------|----------|------|--------|

Payment section

Footer

Visual style

Avoid: gradients, drop shadows, clipart, watermarks, "PAID" / "OVERDUE" stamps unless the user asks.

After generating

  1. Save the PDF to the working folder
  2. Update invoice-log.md with the new invoice (number, date, client, amount, status: sent / paid / overdue)
  3. Tell the user: file path, summary of the invoice, and offer to:

Edge cases

Rules

  1. The first run takes 2 minutes. Every subsequent run takes 10 seconds. Setup is intentional — invest once, save forever.
  2. Don't surprise the user with custom design choices. Invoices should look like invoices, not graphic design experiments.
  3. Auto-increment the invoice number. Never reuse a number.
  4. Round to whole units. Cents are fine; fractional hours are not. If the user says "37.5 hours," use it — but don't introduce sub-unit precision they didn't.
  5. Save client details after first invoice. Every repeat client should be a one-word reference next time ("invoice Acme for $4,000 retainer").
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.