invoice-document-pdf
Generating invoices, contracts, forms, receipts, and business documents as professional PDFs
npx skills add cosmicstack-labs/mercury-agent-skills --skill invoice-document-pdf --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
What it does
Generates professional business documents — invoices, contracts, forms, receipts — as polished PDFs, including templates, data-driven generation, batch processing, digital signatures, and workflow automation.
How it works
- Describes an Invoice Data Model with fields for invoice_number, po_number, issue_date, due_date, payment_terms, seller and buyer details, line_items, and financials (tax_rate, discount_rate, currency_symbol).
- Provides an HTML/CSS Print Template for invoices (templates/invoice.html) that lays out header, bill-to and invoice details, a line-items table, totals, payment information, and notes.
- Includes a section on 2. HTML/CSS Print Templates for Invoices detailing page structure, styles, and placeholders for loaned data.
- Includes a Python Invoice Generation section with a ReportLab-based generator class InvoiceGenerator, setup of styles, and a header table for company info and invoice title to render a PDF.
- The data model computes subtotal, tax_amount, discount_amount, and total from line items and rates, and auto-generates due_date and invoice_number if not provided.
When to use it
Use when you need to produce professional PDFs for invoices and related documents from structured data, using data-driven rendering and a template-based approach.
What it can touch
- Templates: HTML/CSS templates at templates/invoice.html
- Data model: InvoiceData and LineItem dataclasses with fields as shown
- Python generator: ReportLab-based generation logic (InvoiceGenerator)
- Output format: PDF via ReportLab workflow
Caveats
- License noted as MIT (per catalog metadata).
- The skill relies on templates and code blocks to render PDFs; no explicit promises about processing speed or successful digital signatures beyond inclusion in templates and comments.
# Invoice & Document PDF Generation Generate professional business documents — invoices, contracts, receipts, forms — as polished PDFs. This skill covers templates, data-driven generation, batch processing, digital signatures, and workflow automation. --- ## Invoice PDF Structure A professional invoice follows a standard layout that makes it easy to process, pay, and reconcile. ### Standard Invoice Anatomy ```text ┌───────────────────────────────────────────┐ │ [LOGO] INVOICE │ │ Your Company #INV-2025-0042 │ │ 123 Business Rd │ │ City, State ZIP │ ├─────────────────┬─────────────────────────┤ │ Bill To: │ Invoice Details: │ │ Client Name │ Date: 2025-01-15 │ │ Client Address │ Due: 2025-02-14 │ │ City, State │ Terms: Net 30 │ │ │ PO #: PO-2025-001 │ ├─────────────────┴─────────────────────────┤ │ # │ Description │ Qty │ Rate│ Amt │ │ ───┼───────────────────┼─────┼─────┼─────┤ │ 1 │ Web Development │ 40 │ 150 │$6,000│ │ 2 │ UI/UX Design │ 20 │ 125 │$2,500│ │ 3 │ DevOps Setup │ 8 │ 175 │$1,400│ ├────────────────────────┴─────┴─────┴─────┤ │ Subtotal: $9,900 │ │ Tax (8%): $792 │ │ Discount (5%): -$495 │ │ Total: $10,197 │ ├───────────────────────────────────────────┤ │ Payment Inform
- Invoice PDF Structure
- Standard Invoice Anatomy
- Invoice Data Model
- 2. HTML/CSS Print Templates for Invoices
- Invoice Print Template
- 3. Python Invoice Generation
- ReportLab Invoice Generator
- FPDF Invoice Generator (Lightweight Alternative)
- 4. Receipt and Contract Templates
- Receipt Template
- Contract PDF Generation
- 5. QR Codes and Barcodes
- 6. Batch Invoice Generation
- 7. PDF/A Compliance for Archiving
What does the invoice-document-pdf skill do?
Generating invoices, contracts, forms, receipts, and business documents as professional PDFs
How do I install it?
Run `npx skills add cosmicstack-labs/mercury-agent-skills --skill invoice-document-pdf --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From cosmicstack-labs/mercury-agent-skills, a repository with 364 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.