SMEs and finance

Invoice Generator

Correct invoices as PDF, with Swiss QR-bill when needed

Creates a ready-to-book invoice as PDF with all mandatory details, recalculated totals, correctly stated VAT and a concrete due date, plus a Swiss QR payment part where it applies. Also credit notes, corrected invoices and payment reminders. Never sends on its own.

How to install it

Install the ZIP in Claude, ChatGPT or Manus. Use the SKILL.md for Gemini, Mistral, Perplexity and projects.

Version
2.0.0
Updated
Length
11 chapters · approx. 11 min read
Format
SKILL.md (Markdown, English)
License
CC BY-NC-ND 4.0

When this skill kicks in

  • Create an invoice for Sample Trading AG
  • Do my fee invoice for September, 15 hours at CHF 180
  • I need an invoice with a Swiss QR payment part
  • Write a credit note for invoice RE-2026-014
  • Invoice as PDF for my client in Germany
  • Turn this time tracking export into an invoice

Requirements

Text onlyCode executionCreates files (Word, Excel, PDF)File upload

Works in any chat tool with these capabilities.

invoiceVATQR-billPDFfreelancerssmall business

What's inside

  1. 01When this skill applies
  2. 02When not
  3. 03What I need
  4. 04Procedure
  5. 05Expertise and rules
  6. 06Edge cases
  7. 07Output format
  8. 08Example
  9. 09Anti-patterns
  10. 10Quality check before delivery
  11. 11Requirements
Sample output

Invoice RE-2026-014 to Sample Trading AG (fictional)

File: Rechnung-Sample-Trading-RE-2026-014.pdf (2 pages, QR payment part: yes, on page 2) Total: CHF 3,080.85 incl. VAT · due on Thursday, 3 December 2026

Check: 15 x 180.00 + 150.00 = 2,850.00; + VAT 8.1 % 230.85 = 3,080.85; cross-check 3,080.85 / 1.081 = 2,850.00 Assumptions: [ASSUMPTION: service period 1 to 30 September 2026]; VAT rate as of 1 January 2024, check current rate Complete before sending: nothing

Extract from the PDF:

Bergland Consulting GmbH (fictional) · Seestrasse 12, 6300 Zug · CHE-000.000.000 MWST

INVOICE RE-2026-014
Invoice date: 3 Nov 2026   Service period: 1 Sep 2026 to 30 Sep 2026
Due on: 3 Dec 2026          Your reference: purchase order 4711

To: Sample Trading AG (fictional), Industriestrasse 4, 8004 Zurich

Item Description          Qty   Unit    Rate      Amount
1    Sales consulting      15   hrs     180.00    2,700.00
2    Expenses, flat fee     1   flat    150.00      150.00

                         Subtotal        CHF 2,850.00
                         VAT 8.1 %       CHF   230.85
                         Total           CHF 3,080.85

Payable by 3 December 2026 using the QR payment part or to
CH00 0000 0000 0000 0000 0 (fictional), Bergland Consulting GmbH, reference RE-2026-014.
Thank you for your business.

QR payment part (page 2): normal IBAN, therefore no QR reference; invoice number in "Additional information"; addresses structured; amount CHF 3,080.85. Code read with a decoder, amount and account match the invoice.

Shortened example with fictional data. Real results depend on your input and tool.

Full instructions

The complete file content, identical to the download.

Invoice Generator

This skill delivers an invoice that can be sent and booked without rework: all legally required details, totals and VAT recalculated, a concrete due date and, for Swiss payments, a QR payment part. It is meant for freelancers, small businesses and associations that need a clean single invoice without accounting software or alongside it.

When this skill applies

  • A service or delivery that has been provided needs to be invoiced.
  • A timesheet or hours list should be condensed into invoice lines.
  • An existing invoice is wrong and needs a correction or credit note.
  • An invoice is overdue and a payment reminder is needed as a document.
  • An invoice template for recurring clients should be set up.

When not

  • The work has not been awarded yet, it is about an offer: offerte-generator.
  • Capturing incoming receipts and supplier invoices: quittungen-scannen.
  • Only writing the cover email or reminder email: bessere-emails.
  • Calculating prices and hourly rates in a trade business first: handwerker-kalkulation-excel.
  • Bookkeeping, VAT returns, annual accounts: outside this skill, refer to an accountant.

What I need

Required:

  1. Invoice recipient: name or company and address (street, postcode, town, country).
  2. Line items: description, quantity, unit, rate, or flat fee.
  3. Sender: company, address, VAT number if VAT-registered. Take these from project knowledge, profile or earlier information in the chat if confirmed there.

Optional, otherwise a default with [ASSUMPTION]:

  • Service period or date of supply (default: previous month if "for September" is mentioned).
  • Invoice number (default RE-YYYY-NNN, sequential; ask for the last number if unknown, otherwise [CHECK NO.]).
  • Payment term (default 30 days), early payment discount, discount, client reference (purchase order number, cost centre).
  • IBAN or QR-IBAN and account holder; outside Switzerland and the euro area, the local bank details (sort code and account number, routing number) or a payment link.
  • VAT rate, if not the standard rate.

Clarifying-question rule: At most one compact question, and only if the recipient or the line items are missing. If IBAN, VAT number or invoice number are missing: insert placeholders, build the invoice anyway and list them under "Complete before sending". Never invent payment details.

Procedure

  1. Determine the document type. Invoice, credit note (negative amounts, reference to the original invoice), corrected invoice (replaces the old one, name the reference) or payment reminder (original amount, original due date, new deadline).
  2. Set country and currency. The sender's country determines the mandatory details; the recipient's country and the currency determine the payment part. If a Swiss sender is paid in CHF or EUR to a Swiss account: QR payment part. If the recipient is a German business: e-invoicing note (see Expertise).
  3. Build the line items. One line per service. From a timesheet: group by activity, add up hours, round to 0.25 h only if agreed. No catch-all line "Miscellaneous".
  4. Calculate following the calculation path. Recalculate every line, then subtotal, discount, VAT, total, cross-check.
  5. Handle VAT. Registered: show rate and amount, separately for each rate. Not registered: no VAT line, note only if confirmed. Unclear: [CHECK: VAT registration]. Service to another country: [CHECK: place of supply, exemption or reverse charge].
  6. Set the dates. Invoice date today (never in the future), due date = invoice date + payment term, given as a date with weekday in the handover.
  7. Create the QR payment part (CH) if code execution is available: Python package qrbill (pip install qrbill), output as SVG, placed at the bottom of the last page. Choose the reference type using the table below. If the IBAN is missing: leave out the payment part and add a note instead of producing an invalid code.
  8. Create the PDF. HTML with print CSS (WeasyPrint or browser print) or reportlab/fpdf2. A4 (US Letter for US recipients on request), margin at least 15 mm, QR payment part 210 x 105 mm at the bottom of the last page with a dividing line. File name Rechnung-[Client]-[No].pdf (or Invoice-[Client]-[No].pdf if the person prefers English file names).
  9. Visual check. Render the PDF as an image (pdftoppm -png -r 80), check line breaks, cut-off amounts and the QR part. If possible, read the QR code with a banking app or a decoder.
  10. Handover in the output format, after the quality check. Never send it yourself.

Expertise and rules

Calculation path

Line amount    = quantity x rate                  (to 0.01)
Subtotal       = sum of all lines
Discount       = subtotal x discount rate         (deduct before VAT)
Net            = subtotal - discount
VAT            = net x rate                       (separately for each rate)
Total          = net + VAT                        (CHF: round to 0.05)
  • Cross-check: total / (1 + rate) = net, maximum difference 0.05.
  • Never deduct an early payment discount from the total; phrase it as a payment term: "For payment by [date], 2 % discount, CHF [amount]". Calculate the discount amount.
  • Credit note: all amounts negative, VAT as well, reference "Credit note for invoice [No] of [date]".

Mandatory details Switzerland (Art. 26 VAT Act, MWSTG, orientation)

  • Name and location of the supplier with VAT number in the format CHE-123.456.789 MWST (or TVA/IVA)
  • Name and location of the recipient
  • Date or period of supply
  • Type, subject and scope of the service
  • Consideration, applicable tax rate and tax amount (for prices including VAT, the rate is enough)
  • Simplified receipts up to CHF 400 possible without recipient details [CHECK in each case]
  • Retention: 10 years (Art. 958f Swiss Code of Obligations, OR).
  • Late payment: after a reminder or on an agreed due date, default interest of 5 % (Art. 104 OR), higher rates only if agreed. Mention it in the invoice only if the person wants that.

VAT rates (as of 1 January 2024, check before every use)

CountryStandardReduced
Switzerland, Liechtenstein8.1 %2.6 % (incl. food, books, medicines), 3.8 % accommodation
Germany19 %7 %
Austria20 %10 %, 13 %
United Kingdom20 %5 %, 0 %

Other countries: local rate with "as of" date and [CHECK]. United States: no VAT; sales tax depends on state and type of service [CHECK].

Swiss QR-bill

AccountReferenceWhen
QR-IBAN (institution ID 30000 to 31999)QR reference, 27 digits with check digitautomatic payment matching in accounting
normal IBANSCOR reference (ISO 11649, starts with "RF") or no referencestandard for small businesses
  • The QR-IBAN only works with a QR reference, a normal IBAN never with a QR reference. Mixing them produces an invalid payment part.
  • Without a reference, put the invoice number in "Additional information" (unstructured message).
  • Capture addresses in structured form (street, house number, postcode, town, country separately); combined addresses are no longer permitted under the current implementation guidelines [CHECK: cut-off date with the bank].
  • The amount may stay empty (e.g. donations) but is mandatory on invoices.
  • Payment part with receipt (left, 62 mm) and payment part (right), Swiss cross in the centre of the QR code; the package qrbill produces this correctly.
  • Example call: QRBill(account="CH..", creditor={"name": .., "street": .., "house_num": .., "pcode": .., "city": .., "country": "CH"}, amount="3080.85", currency="CHF", additional_information="RE-2026-014").as_svg("qr.svg").

Germany, Austria and international

  • DE: mandatory details under § 14 UStG (incl. tax number or VAT ID, sequential number, date of supply, consideration by tax rate). Small-amount invoices up to EUR 250 simplified. Domestic B2B: receiving e-invoices mandatory since 1 January 2025, issuing them from 2027 or 2028 depending on turnover [CHECK: current transition periods]. For German B2B clients, point out that a PDF alone may not be enough (XRechnung, ZUGFeRD).
  • AT: mandatory details under § 11 UStG, the recipient's VAT ID for invoice amounts above EUR 10,000 [CHECK].
  • Service from CH to businesses in DE or AT: often reverse charge, note "reverse charge, VAT payable by the recipient" only with [CHECK].
  • UK: a VAT invoice needs among other things a unique number, VAT registration number, date of supply, rate and VAT amount per item or in total [CHECK: current HMRC rules]. Other countries, including e-invoicing mandates in many EU states: [CHECK: local invoice requirements], do not list from memory.

Layout

  • Order: sender with VAT no., recipient, title "Invoice" (Swiss German "Rechnung"), number, date, service period, due date, client reference, line items, totals block, payment terms, payment details, thanks in one sentence, QR payment part.
  • Amounts: in English text "CHF 2,850.00", "EUR 2,850.00"; in Swiss German invoices "CHF 2'850.00", in German invoices "2.850,00 EUR". Dates in English as "3 December 2026"; in Swiss German invoices DD.MM.YYYY with ss.
  • Due date always as a date, never only "30 days".

Edge cases

  • IBAN missing: Create the invoice without a QR payment part, placeholder [INSERT IBAN], note that the payment part is generated once it is added. No QR code with an invented IBAN.
  • Invoice number unknown: RE-YYYY-[NO] as a placeholder, ask for the last number under "Complete before sending". Never assign a number twice.
  • Given total does not match the line items: The line items prevail, name the difference.
  • Timesheet with over 50 entries: Condense by activity, offer the detailed list as an attachment (page 2).
  • Foreign currency (USD, GBP): Issue in the invoice currency, no QR payment part (only CHF and EUR possible), give IBAN with BIC.
  • Small business not registered for VAT: Do not show VAT. Anyone without a VAT number must not charge VAT, otherwise they may owe it anyway [CHECK].
  • Credit note or correction after the invoice has been paid: Credit note with refund method or offset against the next invoice, never "overwrite" the original invoice.
  • No code tool: Deliver the invoice as formatted text, have the QR payment part created in e-banking or invoicing software.

Output format

Handover in the chat:

**[Invoice/Credit note] [No] to [recipient]**

File: `Rechnung-[Client]-[No].pdf` ([n] pages, QR payment part: [yes/no, reason])
Total: [currency] [amount] [incl. VAT / without VAT] · due on [weekday], [d Month yyyy]

**Check:** [line items] = [subtotal]; + VAT [rate] [amount] = [total]; cross-check ok
**Assumptions:** [list or "none"]
**Complete before sending:** [placeholders or "nothing"]

Extract of the invoice in text form:

[Sender] · [address] · [VAT no.]

INVOICE [No]
Invoice date: [d Mon yyyy]   Service period: [from] to [to]
Due on: [d Mon yyyy]          Your reference: [if available]

To: [recipient, address]

Item Description   Qty  Unit   Rate     Amount
...
                    Subtotal        [amount]
                    VAT [rate]      [amount]
                    Total           [amount]

Payable by [date] to [IBAN], [account holder], reference [No].

Example

Input: "Invoice in English to Sample Trading AG (fictional), Industriestrasse 4, 8004 Zurich. September: 15 hours consulting at CHF 180 and expenses flat CHF 150. We are VAT-registered, Bergland Consulting GmbH (fictional), Seestrasse 12, 6300 Zug. The last invoice was RE-2026-013. I don't have the IBAN at hand."

Output:

**Invoice RE-2026-014 to Sample Trading AG (fictional)**

File: `Rechnung-Sample-Trading-RE-2026-014.pdf` (1 page, QR payment part: no, IBAN missing)
Total: CHF 3,080.85 incl. VAT · due on Thursday, 3 December 2026

**Check:** 15 x 180.00 + 150.00 = 2,850.00; + VAT 8.1 % 230.85 = 3,080.85;
cross-check 3,080.85 / 1.081 = 2,850.00
**Assumptions:** [ASSUMPTION: service period 1 to 30 September 2026]; [ASSUMPTION: 30 days]
**Complete before sending:** VAT number, IBAN (then generate the QR payment part)
Bergland Consulting GmbH (fictional) · Seestrasse 12, 6300 Zug · [INSERT VAT NO.]

INVOICE RE-2026-014
Invoice date: 3 Nov 2026   Service period: 1 Sep 2026 to 30 Sep 2026
Due on: 3 Dec 2026

To: Sample Trading AG (fictional), Industriestrasse 4, 8004 Zurich

1  Consulting           15  hrs    180.00   2,700.00
2  Expenses, flat fee    1  flat   150.00     150.00
                    Subtotal        CHF 2,850.00
                    VAT 8.1 %       CHF   230.85
                    Total           CHF 3,080.85

Payable by 3 Dec 2026 to [INSERT IBAN], Bergland Consulting GmbH, reference RE-2026-014.

Anti-patterns

  • Generating a QR payment part with an invented or placeholder IBAN.
  • Combining a QR reference with a normal IBAN.
  • Hiding VAT in the amount or showing VAT without a VAT number.
  • Catch-all line "Various services".
  • Due date without a date, invoice date in the future.
  • Assigning invoice numbers twice or backwards.
  • Threatening default interest or debt collection (in Switzerland: Betreibung) without the person wanting that.
  • Sending the invoice on its own.

Quality check before delivery

  • Mandatory details of the sender's country complete
  • Every line recalculated, subtotal, VAT, total and cross-check correct
  • VAT rate with "as of" date, VAT only if registration is confirmed
  • Invoice number unique, invoice date not in the future
  • Due date as a date, weekday correct
  • QR payment part: account type and reference type match, addresses structured, amount and currency identical to the invoice
  • PDF checked as an image, nothing cut off
  • Placeholders under "Complete before sending", nothing invented
  • Number and date formats consistent with the invoice language (comma separators in English, apostrophe in Swiss German)

Requirements

  • Code execution for PDF and QR payment part (Python with qrbill and WeasyPrint, reportlab or fpdf2). Without it: invoice as text, QR part via e-banking or invoicing software.
  • File access to save the file. Without it: content in the chat.
  • Optional upload for a timesheet (CSV, Excel) or an old invoice as a template.

Version 2.0.0 · Last updated: 3 November 2026 · skills.fragroger.ai · Roger Basler de Roca

License: CC BY-NC-ND 4.0 with additional permission (CC+): use in companies and for client work is allowed, adaptation for your own use is allowed. Not allowed: selling, bundling, publishing modified versions. Details: https://skills.fragroger.ai/lizenz

How to install this skill

A skill is a folder with a SKILL.md file. Once installed, your AI tool knows the skill permanently and pulls up the instructions by itself whenever a request fits. Pick your tool:

File: download the ZIP

Pro, Max, Team or Enterprise plan. Code execution and file creation must be turned on. On Team and Enterprise, your organization must allow skills.

  1. 1

    Download the ZIP

    Click "Download ZIP" above. Do not unzip rechnungs-generator.zip.

  2. 2

    Open settings

    In Claude, click your name at the bottom left, then Settings. Open Capabilities and scroll to the Skills section.

  3. 3

    Upload the skill

    Click "Upload skill" and select rechnungs-generator.zip.

  4. 4

    Turn it on

    Enable the toggle next to the new skill. It now works in every new chat and in projects.

  5. 5

    Test it

    Open a new chat and send the test sentence below. Claude shows when it reads the skill.

Uploaded skills are personal. On Team and Enterprise, owners can provision a skill for the whole organization.

Test sentence for a new chat

Create an invoice for Sample Trading AG

Install or just attach?

Install (recommended)

The skill is ready in every new chat. The tool first reads only the name and description and loads the full instructions when your request fits, so the chat stays lean.

Attach as a file

Dropping SKILL.md into a single chat works in any tool, but only for that one chat. Good for trying it out, not for daily use.

ZIP or SKILL.md?

The ZIP contains the folder rechnungs-generator with SKILL.md and all extra files, exactly as Claude, ChatGPT and Manus expect it. The single SKILL.md is for Gemini, Mistral, Perplexity and for projects or GPTs without a Skills area.

Detailed guide with troubleshooting

Related skills

License and use

This skill is published under Creative Commons BY-NC-ND 4.0. The license text applies unchanged. In addition, the rights holder grants an additional permission (CC+): use inside companies and for client work is allowed, adapting for your own use is allowed. Not allowed: selling, bundling, publishing modified versions.