Invoices and quotes
Goal
A document the user can send as is: every required detail present or clearly marked as a placeholder, and totals that add up. This is analysis and planning help, not investment, tax or legal advice, and it promises no returns. Tell the user to check decisions with a licensed advisor.
When to use
- The user asks for an invoice, a quote, an estimate or a bill.
- For a styled PDF beyond the layout below, use
use_skill with pdf.
- For a spreadsheet with formulas, use
use_skill with xlsx.
Steps
- Collect the details:
- Seller: name or business name, address, email, and tax or company number if they have one.
- Client: name, address, and their reference or purchase order number if any.
- Invoice number and date, and due date (or payment terms such as 30 days).
- Line items: description, quantity, unit price.
- Tax rate(s), whether prices include tax, and the currency.
- Payment details: bank account (IBAN/BIC or local equivalent) or payment link.
Ask for missing required details, or use clearly marked placeholders.
- Do the arithmetic:
- Line total = quantity x unit price, rounded to 2 decimals.
- Subtotal = sum of line totals.
- Tax = subtotal x rate, per rate if several rates apply.
- Total = subtotal + tax.
Compute carefully, then re-add everything a second time before writing. Show amounts with two decimals and the currency.
- A quote uses the same layout titled "Quote" with a validity date instead of a due date.
- Create a .pdf with
create_file using this layout:
# Invoice [number]
**From:** [seller details]
**To:** [client details]
**Date:** [date] · **Due:** [due date]
| # | Description | Qty | Unit price | Total |
|---|---|---|---|---|
| 1 | [item] | [qty] | [price] | [total] |
| | |
|---|---|
| Subtotal | [amount] |
| Tax ([rate]%) | [amount] |
| **Total due** | **[amount]** |
**Payment:** [bank details or link], reference [invoice number]
- If the user wants the lines in a spreadsheet too, also create an .xlsx with
create_file, one row per line item (as an HTML table with styled headers and column widths, or clean CSV).
Gotchas
- Never guess bank details or payment links. A wrong IBAN sends the client's money to a stranger, so leave a placeholder.
- Add legally required mentions only if the user states them, for example VAT exemption wording. Do not invent legal text.
- Prices that already include tax change the tax calculation. Confirm which applies before computing.
- Rounding per line and rounding the total can differ by a cent. Round each line first, then sum.
Output
The saved .pdf (and .xlsx if requested). In the reply, give the total and the file name(s).
1---2name: invoice3description: Prepares invoices and quotes with numbered line items, correct arithmetic, tax, totals and payment details, as a PDF to send and a spreadsheet of the lines if wanted. Use when the user asks for an invoice, a quote, an estimate or a bill.4metadata:5 source: https://skillmd.com/skills/lucki74/invoice6---78# Invoices and quotes910## Goal1112A document the user can send as is: every required detail present or clearly marked as a placeholder, and totals that add up. This is analysis and planning help, not investment, tax or legal advice, and it promises no returns. Tell the user to check decisions with a licensed advisor.1314## When to use1516- The user asks for an invoice, a quote, an estimate or a bill.17- For a styled PDF beyond the layout below, use `use_skill` with `pdf`.18- For a spreadsheet with formulas, use `use_skill` with `xlsx`.1920## Steps21221. Collect the details:23 - Seller: name or business name, address, email, and tax or company number if they have one.24 - Client: name, address, and their reference or purchase order number if any.25 - Invoice number and date, and due date (or payment terms such as 30 days).26 - Line items: description, quantity, unit price.27 - Tax rate(s), whether prices include tax, and the currency.28 - Payment details: bank account (IBAN/BIC or local equivalent) or payment link.29 Ask for missing required details, or use clearly marked placeholders.302. Do the arithmetic:31 1. Line total = quantity x unit price, rounded to 2 decimals.32 2. Subtotal = sum of line totals.33 3. Tax = subtotal x rate, per rate if several rates apply.34 4. Total = subtotal + tax.35 Compute carefully, then re-add everything a second time before writing. Show amounts with two decimals and the currency.363. A quote uses the same layout titled "Quote" with a validity date instead of a due date.374. Create a .pdf with `create_file` using this layout:3839```40# Invoice [number]4142**From:** [seller details]43**To:** [client details]44**Date:** [date] · **Due:** [due date]4546| # | Description | Qty | Unit price | Total |47|---|---|---|---|---|48| 1 | [item] | [qty] | [price] | [total] |4950| | |51|---|---|52| Subtotal | [amount] |53| Tax ([rate]%) | [amount] |54| **Total due** | **[amount]** |5556**Payment:** [bank details or link], reference [invoice number]57```58595. If the user wants the lines in a spreadsheet too, also create an .xlsx with `create_file`, one row per line item (as an HTML table with styled headers and column widths, or clean CSV).6061## Gotchas6263- Never guess bank details or payment links. A wrong IBAN sends the client's money to a stranger, so leave a placeholder.64- Add legally required mentions only if the user states them, for example VAT exemption wording. Do not invent legal text.65- Prices that already include tax change the tax calculation. Confirm which applies before computing.66- Rounding per line and rounding the total can differ by a cent. Round each line first, then sum.6768## Output6970The saved .pdf (and .xlsx if requested). In the reply, give the total and the file name(s).