pdf-export

pdf-export is a skill for Claude Code, Codex from d-padmanabhan/agent-engineering-handbook. It costs 81 tokens per session (3,176 once invoked), scanned A, original, MIT.

A guide to adding browser-based PDF export to a React and TypeScript web app, so users can save page content such as reports, slides, charts, or dashboards as PDF files.

In plain words
What is it for?
Use it to build download buttons for single-page or multi-page PDF exports, including table-of-contents bookmarks.
Why use it?
It removes the need for a PDF-generation server when the document can be created from content already shown in the browser.

Skill for Claude CodeCodex

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

Good fit Use it to build download buttons for single-page or multi-page PDF exports, including table-of-contents bookmarks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/d-padmanabhan/agent-engineering-handbook/pdf-export
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 d-padmanabhan/agent-engineering-handbook --skill pdf-export
Clone the repo
git clone --depth 1 https://github.com/d-padmanabhan/agent-engineering-handbook

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 pdf-export

README.md
[![agentmods](https://agentmods.dev/badge/skills/d-padmanabhan/agent-engineering-handbook/pdf-export/github.svg)](https://agentmods.dev/skills/d-padmanabhan/agent-engineering-handbook/pdf-export)
Your own site
<a href="https://agentmods.dev/skills/d-padmanabhan/agent-engineering-handbook/pdf-export"><img src="https://agentmods.dev/badge/skills/d-padmanabhan/agent-engineering-handbook/pdf-export/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 pdf-export

Your own site · 80×15
<a href="https://agentmods.dev/skills/d-padmanabhan/agent-engineering-handbook/pdf-export"><img src="https://agentmods.dev/badge/skills/d-padmanabhan/agent-engineering-handbook/pdf-export.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,176 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00081 $0.03176
Opus 5 $0.00041 $0.01588
Sonnet 5 $0.00016 $0.00635
Haiku 4.5 $0.00008 $0.00318

Measured 6d ago against content hash 5c9fd079afb2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

pdf-export 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 6d ago.

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.

skills/pdf-export/SKILL.md · 309 lines

How it starts

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

Add client-side PDF export

Wire a "Download PDF" feature into a React/TypeScript web app. The output is generated entirely in the browser - the user clicks a button, the SPA rasterizes the relevant DOM nodes, and jspdf assembles the PDF and triggers a download.

When to trigger this skill

  • "Add a download PDF button..."
  • "Let users export this report / slide / dashboard / chart as a PDF"
  • "Save the current page as PDF"
  • "Print this to a file"
  • "We need PDF export"
  • Any time a developer asks for browser-native PDF generation (no server, no Puppeteer)

Do not use this skill if the user wants:

  • Server-rendered PDFs (use Puppeteer / Playwright on a server)
  • Vector PDFs from data structures (use pdfkit or pdfmake)
  • "Print this page" with window.print() (that's a one-liner; just suggest it)

Step 1: Clarify the scope

Before writing code, ask the user 2 short questions if any of these are unclear:

  1. Single element or multi-page?
    • One DOM element (a report, a card, a chart) -> Pattern A
    • A sequence of slides / pages / sections -> Pattern B
  2. Page size? Default to letter or A4 portrait for reports; 16:9 landscape (1920x1080) for slide decks. Confirm if unsure.

For multi-page docs, also ask: do they want a clickable TOC (outline bookmarks)? Default yes for >3 pages.

Step 2: Detect framework and package manager

# In project root:
cat package.json | head -20      # look for react/next/vite/vue
test -f bun.lock && echo bun || test -f pnpm-lock.yaml && echo pnpm || test -f yarn.lock && echo yarn || echo npm
grep -E '"tailwindcss":' package.json   # check Tailwind major version

Critical: if Tailwind 4 is in use, you MUST use html2canvas-pro (not vanilla html2canvas). Tailwind 4 emits oklch() colors that vanilla html2canvas cannot parse and the export will throw at runtime. Tailwind 3 works with either, but prefer -pro anyway - it's a maintained fork.

Step 3: Install

Pick the matching command:

Read the full file on GitHub · 309 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. 6d ago First seen · 309 lines · 81 tokens per session scan A 5c9fd079afb2

Subscribe to this mod's changes

pdf-export is a skill published in the GitHub repository d-padmanabhan/agent-engineering-handbook (17 stars, last pushed 3d ago), licensed MIT. It adds 81 tokens to every session and 3,176 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

plan-update

Use when you need to update a plan document with deep research across all compiler passes. Launches parallel subagents to analyze how a topic affects every compiler phase, then consolidates findings into the plan doc.

react/react · 44 tokens

multi-surface-render

Multi-surface rendering with json-render — one JSON spec produces React web, Next.js, React Native, Ink terminal UIs, PDFs, emails, Remotion videos, OG images, and 3D scenes. Covers renderer target selection, registry mapping, and platform APIs (renderToBuffer, renderToStream, renderToFile). Use when generating output…

yonatangross/orchestkit · 98 tokens

paper2html

Convert an academic paper PDF into a publish-ready, self-contained single-page project homepage (a self-contained index.html) — the kind of paper landing page researchers host on GitHub Pages. Triggers when the user says "turn a paper into a project page/webpage", "paper2html", "generate a paper landing page / project…

QuZhan51496/paper2anything · 153 tokens

resume-export-standards

ATS-safe + accessible resume/CV export standards (PDF/DOCX) — real ATS parsing limits, single-column rules, document-metadata accessibility (full PDF/UA-1 tagging is a future goal), country/industry CV norms (US/UK/DE), keyword hygiene. Load for changes under export/, model/, theme/, templates/, locale/, fonts…

saeedkolivand/ai-job-hunter-app · 81 tokens

benchmark

Local-only regression / benchmark skill for ui-clone-skills maintainers. Drives the standard ui-reverse-engineering pipeline against the canonical reference site (https://realfood.gov) and records AE/SSIM, iteration count, gate fail counts, and outcome to benchmark/history.csv so prompt / sub-doc / model-version drift…

voidmatcha/ui-clone-skills · 152 tokens

storybook-story-generation

Use after React components are built (Phase 4.5 of the Figma/Canva/screenshot pipeline) or whenever a project needs Storybook coverage — auto-generates .stories.tsx and .mdx docs from components via ts-morph AST parsing, with prop controls, variant stories, action args, and default args. Keywords: Storybook, generate…

PMDevSolutions/Aurelius · 0 tokens