Agent skill · Business & Finance

invoice-document-pdf

Generating invoices, contracts, forms, receipts, and business documents as professional PDFs

Cosmic Stack3,294★ · 2 repos on radarProfile →
claude-codeMIT
Install
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.

Facts
Files in the skill folder: 1
SKILL.md size: 61 KB
Bundled scripts: none
Version: 1.0.0
Declared author: cosmicstack-labs
Path: categories/pdf-generation/invoice-document-pdf/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 364
Language: JavaScript
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

Review
written from the skill's own SKILL.md · Aug 5, 2026

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.
From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Invoice PDF Structure
  2. Standard Invoice Anatomy
  3. Invoice Data Model
  4. 2. HTML/CSS Print Templates for Invoices
  5. Invoice Print Template
  6. 3. Python Invoice Generation
  7. ReportLab Invoice Generator
  8. FPDF Invoice Generator (Lightweight Alternative)
  9. 4. Receipt and Contract Templates
  10. Receipt Template
  11. Contract PDF Generation
  12. 5. QR Codes and Barcodes
  13. 6. Batch Invoice Generation
  14. 7. PDF/A Compliance for Archiving
More from mercury-agent-skills
All skills →
About this skill
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.

Keep going