reportlab

reportlab is a skill for Claude Code, Codex from silverstein/claude-scientific-skills-desktop. It costs 38 tokens per session (4,267 once invoked), scanned A, original, MIT.

A Python toolkit for creating PDF files from code, including flowing documents and precisely positioned page designs. It can place text, tables, charts, images, barcodes, QR codes, and form elements.

In plain words
What is it for?
Use it to generate invoices, reports, certificates, forms, charts, tables, barcodes, and QR codes as PDF files.
Why use it?
It lets applications generate repeatable documents without manual editing. Automatic page layout is useful for reports, while precise drawing supports fixed designs such as certificates and labels.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to generate invoices, reports, certificates, forms, charts, tables, barcodes, and QR codes as PDF files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/silverstein/claude-scientific-skills-desktop/reportlab
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add silverstein/claude-scientific-skills-desktop --skill reportlab
Clone the repo
git clone --depth 1 https://github.com/silverstein/claude-scientific-skills-desktop

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for reportlab

README.md
[![agentmods](https://agentmods.dev/badge/skills/silverstein/claude-scientific-skills-desktop/reportlab/github.svg)](https://agentmods.dev/skills/silverstein/claude-scientific-skills-desktop/reportlab)
Your own site
<a href="https://agentmods.dev/skills/silverstein/claude-scientific-skills-desktop/reportlab"><img src="https://agentmods.dev/badge/skills/silverstein/claude-scientific-skills-desktop/reportlab/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for reportlab

Your own site · 80×15
<a href="https://agentmods.dev/skills/silverstein/claude-scientific-skills-desktop/reportlab"><img src="https://agentmods.dev/badge/skills/silverstein/claude-scientific-skills-desktop/reportlab.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,267 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.04267
Opus 5 $0.00019 $0.02133
Sonnet 5 $0.00008 $0.00853
Haiku 4.5 $0.00004 $0.00427

Measured 9d ago against content hash 7f3b70aa779b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

reportlab scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (assets/invoice_template.py, assets/report_template.py, scripts/quick_document.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

corpus/reportlab/SKILL.md · 622 lines

How it starts

The opening of the file, as written. The whole thing — 622 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ReportLab PDF Generation

Overview

ReportLab is a powerful Python library for programmatic PDF generation. Create anything from simple documents to complex reports with tables, charts, images, and interactive forms.

Two main approaches:

  • Canvas API (low-level): Direct drawing with coordinate-based positioning - use for precise layouts
  • Platypus (high-level): Flowing document layout with automatic page breaks - use for multi-page documents

Core capabilities:

  • Text with rich formatting and custom fonts
  • Tables with complex styling and cell spanning
  • Charts (bar, line, pie, area, scatter)
  • Barcodes and QR codes (Code128, EAN, QR, etc.)
  • Images with transparency
  • PDF features (links, bookmarks, forms, encryption)

Choosing the Right Approach

Use Canvas API when:

  • Creating labels, business cards, certificates
  • Precise positioning is critical (x, y coordinates)
  • Single-page documents or simple layouts
  • Drawing graphics, shapes, and custom designs
  • Adding barcodes or QR codes at specific locations

Use Platypus when:

  • Creating multi-page documents (reports, articles, books)
  • Content should flow automatically across pages
  • Need headers/footers that repeat on each page
  • Working with paragraphs that can split across pages
  • Building complex documents with table of contents

Use Both when:

  • Complex reports need both flowing content AND precise positioning
  • Adding headers/footers to Platypus documents (use onPage callback with Canvas)
  • Embedding custom graphics (Canvas) within flowing documents (Platypus)

Quick Start Examples

Simple Canvas Document

from reportlab.pdfgen import canvas
from reportlab.lib.pagesizes import letter
from reportlab.lib.units import inch

c = canvas.Canvas("output.pdf", pagesize=letter)
width, height = letter

# Draw text
c.setFont("Helvetica-Bold", 24)
c.drawString(inch, height - inch, "Hello ReportLab!")

# Draw a rectangle
c.setFillColorRGB(0.2, 0.4, 0.8)
c.rect(inch, 5*inch, 4*inch, 2*inch, fill=1)

# Save
c.showPage()
c.save()

Read the full file on GitHub · 622 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 622 lines · 38 tokens per session scan A 7f3b70aa779b

Subscribe to this mod's changes

reportlab is a skill published in the GitHub repository silverstein/claude-scientific-skills-desktop (22 stars, last pushed 5mo ago), licensed MIT. It adds 38 tokens to every session and 4,267 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.