Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add sjungling/sjungling-claude-plugins/plugin install technical-writerWrote 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.
[](https://agentmods.dev/skills/sjungling/sjungling-claude-plugins/pdf-generation)<a href="https://agentmods.dev/skills/sjungling/sjungling-claude-plugins/pdf-generation"><img src="https://agentmods.dev/badge/skills/sjungling/sjungling-claude-plugins/pdf-generation/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.
<a href="https://agentmods.dev/skills/sjungling/sjungling-claude-plugins/pdf-generation"><img src="https://agentmods.dev/badge/skills/sjungling/sjungling-claude-plugins/pdf-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00077 | $0.01551 |
| Opus 5.5 | $0.00031 | $0.00620 |
| Sonnet 5.5 | $0.00015 | $0.00310 |
| Haiku 4.5 | $0.00008 | $0.00155 |
Grade B, and why
pdf-generation scanned grade B with 1 finding 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 3mo 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
SCRIPT_PATH=$(find ~/.claude/plugins -path "*/pdf-generation/scripts/generate-pdf.sh" 2>/dev/null | head -1) How it starts
The opening of the file, as written. The whole thing — 151 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PDF Book Generation
Overview
Converts a directory of ordered markdown chapters into a single, styled PDF book with table of contents, page numbers, and resolved inter-chapter links.
Core principle: The markdown files are the source of truth. The PDF is a derived artifact -- never edit the PDF directly.
When to Use
Automatically activates when:
- A request to generate a PDF from markdown chapters is made
- A
technical-overviewor similar multi-chapter doc set is ready for export - A printable or shareable version of documentation is needed
Prerequisites
Three tools must be installed before generation can proceed:
| Tool | Install command | Purpose |
|---|---|---|
pandoc |
brew install pandoc |
Markdown to HTML conversion |
weasyprint |
uv tool install weasyprint |
HTML to PDF rendering |
pango |
brew install pango |
Text layout (weasyprint dependency) |
Before running the script, verify availability:
command -v pandoc >/dev/null 2>&1 || echo "Missing: pandoc (brew install pandoc)"
command -v weasyprint >/dev/null 2>&1 || echo "Missing: weasyprint (uv tool install weasyprint)"
If either tool is missing, install it and retry. The script itself checks for dependencies and exits with a clear error message.
How It Works
The generation pipeline has four stages:
- Collect -- Gather markdown files in order:
README.mdfirst, then00-*.mdthrough99-*.md, thenappendix-*.md - Convert -- Pandoc stitches all files into a single HTML document with a generated table of contents
- Fix links -- Inter-chapter
.mdlinks (e.g.,[architecture](01-architecture.md)) are rewritten to internal#anchorlinks so they work within the single document - Render -- Weasyprint converts the styled HTML to PDF with print-optimized CSS
Usage
Run the generation script using $CLAUDE_PLUGIN_ROOT:
${CLAUDE_PLUGIN_ROOT}/skills/pdf-generation/scripts/generate-pdf.sh <input-dir> [output.pdf]
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 3mo ago First seen · 151 lines · 77 tokens per session scan B 4a3c386668e1
pdf-generation is a skill published in the GitHub repository sjungling/sjungling-claude-plugins (15 stars, last pushed 5d ago), licensed MIT. It adds 77 tokens to every session and 1,551 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
pdf-generation compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pdf-generationsjungling/sjungling-claude-plugins | Skill | 15 | 5d ago | MIT | B | 77 | Claude Code |
| apify-youtube-transcript-scrapersickn33/agentic-awesome-skills | Skill | 51k | yesterday | MIT | A | 48 | Claude Code |
| report-to-pdfasgeirtj/system_prompts_leaks | Skill | 74k | 3d ago | CC0-1.0 | A | 17 | Claude Code, Codex |
| skill-doc-deliverynyldn/claude-octopus | Skill | 4.5k | today | MIT | A | 29 | Claude Code |
| pdf-extract-create-workflowHKUDS/OpenSpace | Skill | 8.1k | 20d ago | MIT | A | 22 | Claude Code, Codex |
| document-direct-pythonHKUDS/OpenSpace | Skill | 8.1k | 20d ago | MIT | A | 20 | Claude Code, Codex |
| pdf-text-extraction-fallback-85d5caHKUDS/OpenSpace | Skill | 8.1k | 20d ago | MIT | A | 25 | Claude Code, Codex |