- Home
- Skills
- Finance & Accounting
- Generate Client Invoices as PDFs
More screenshots
Works with the AI Agents you already use
Generate Client Invoices as PDFs
One Python script makes every client's monthly invoice as a clean PDF — same layout, same numbering, every month.
$9
Generate Client Invoices as PDFs
Example session with this skill installed
Generate a draft invoice for Acme Corp for November 2026. The amount is $1,250.00 for 'Monthly Retainer'. My prefix is AS and this is the first invoice of the month.
- Read your context and instructions
- Compiled the generate client invoices
I have prepared the generator configuration and the invoice structure for Acme Corp. The system will enforce the AS-2026-11-001 numbering and include the mandatory service period metadata.
Invoice Generation Script
from fpdf import FPDF
from datetime import datetime, timedelta
# Configuration
BUSINESS_INFO = {
"name": "Alpha Studio",
"address": ["123 Dev Lane", "San Francisco, CA 94107"],
"accent_color": (0, 102, 204),
"prefix": "AS"
}
CLIENT = {
"name": "Acme Corp",
"address": ["456 Corporate Way", "New York, NY 10001"],
"amount": 1250.00,
"description": "Monthly Retainer",
"sequence": "001"
}
def generate_invoice(client, business):
invoice_date = datetime(2026, 11, 1)
due_date = invoice_date + timedelta(days=30)
service_period = "November 1 – 30, 2026"
inv_number = f"{business['prefix']}-2026-11-{client['sequence']}"
pdf = FPDF(unit="mm", format="A4")
pdf.add_page()
pdf.set_margin(20)
# Header
pdf.set_font("helvetica", "B", 16)
pdf.set_text_color(*business['accent_color'])
pdf.cell(0, 10, business['name'], ln=True)
pdf.set_font("helvetica", "", 10)
pdf.set_text_color(0, 0, 0)
for line in business['address']:
pdf.cell(0, 5, line, ln=True)
pdf.ln(10)
pdf.set_font("helvetica", "B", 14)
pdf.cell(0, 10, "INVOICE", ln=True)
pdf.set_draw_color(*business['accent_color'])
pdf.line(20, pdf.get_y(), 190, pdf.get_y())
# Meta Block
pdf.ln(5)
pdf.set_font("helvetica", "B", 10)
pdf.cell(40, 7, "Invoice Number:")
pdf.set_font("helvetica", "", 10)
pdf.cell(0, 7, inv_number, ln=True)
# Bill To
pdf.ln(5)
pdf.set_font("helvetica", "B", 10)
pdf.cell(0, 7, "Bill To:", ln=True)
pdf.set_font("helvetica", "", 10)
pdf.cell(0, 7, client['name'], ln=True)
# Items Table
pdf.ln(10)
pdf.set_fill_color(*business['accent_color'])
pdf.set_text_color(255, 255, 255)
pdf.cell(130, 10, " Description", fill=True)
pdf.cell(40, 10, "Amount ", fill=True, align='R', ln=True)
pdf.set_text_color(0, 0, 0)
pdf.cell(130, 10, f" {client['description']}", border='B')
pdf.cell(40, 10, f"${client['amount']:,.2f} ", border='B', align='R', ln=True)
# Final Total
pdf.ln(5)
pdf.set_font("helvetica", "B", 12)
pdf.cell(130, 10, "Total", align='R')
pdf.set_text_color(*business['accent_color'])
pdf.cell(40, 10, f"${client['amount']:,.2f}", align='R', ln=True)
filename = f"AlphaStudio-Invoice-AcmeCorp-Nov-2026.pdf"
pdf.output(filename)
return filename, inv_number
file, num = generate_invoice(CLIENT, BUSINESS_INFO)
print(f"Draft generated: {file} with ID {num}")
Next steps
- Install dependencies using
pip install fpdf2. - Run the script to generate the PDF draft in your current directory.
- Verify the
AS-2026-11-001number against your existing ledger before sending.
Connects securely to your tools. The creator never sees your data.
About this skill
If you bill the same clients every month, hand-editing invoices is where formats drift and numbers repeat. This skill generates all of them from one script and one small config: your business details, your client list, the amounts. Nobody retypes a total from memory again.
Inside the package: the skill file, a complete working generator script (Python with the free fpdf2 library) that you adapt to your business, and an invoice checklist. Invoice numbers follow a strict format — your prefix, the year and month, then a sequence number assigned in the config, never counted from how many files sit in a folder. Every invoice states its number, issue date, due date, and the full service period it covers, because an invoice missing one of those generates a payment-delaying question every time.
A run goes like this: update the amounts in the config, run the script, get one PDF per client in a month folder. The duplicate guard refuses to overwrite an invoice number that already exists. The agent then verifies the output — reads a PDF's text back and checks the number, period, and amount, and checks the run total against the sum you expect — and presents the invoices as drafts. Nothing is emailed or marked sent until you approve it.
Requires Python and fpdf2. Latin-1 font limitations by default. Manual ledger updates required. No built-in SMTP or payment API integrations.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 6 days ago
Requires