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 ericboehs/claude-plugins/plugin install md-to-pdfWrote 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/ericboehs/claude-plugins/md-to-pdf)<a href="https://agentmods.dev/skills/ericboehs/claude-plugins/md-to-pdf"><img src="https://agentmods.dev/badge/skills/ericboehs/claude-plugins/md-to-pdf/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/ericboehs/claude-plugins/md-to-pdf"><img src="https://agentmods.dev/badge/skills/ericboehs/claude-plugins/md-to-pdf.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.00054 | $0.00763 |
| Opus 5.5 | $0.00022 | $0.00305 |
| Sonnet 5.5 | $0.00011 | $0.00153 |
| Haiku 4.5 | $0.00005 | $0.00076 |
Grade A, and why
md-to-pdf 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.
md-to-pdf Skill
Convert a GitHub-flavored markdown file to a PDF that looks like github.com's rendering (real github-markdown-css through headless Chrome, not LaTeX).
Usage
User says: "/md-to-pdf", "convert this markdown to pdf", "render X.md as a pdf", "make a pdf out of this doc".
Optional arguments:
- Input path — the
.mdfile to convert (required) - Output path — where to write the PDF (defaults to
<input>.pdfnext to the source)
Running It
"${CLAUDE_PLUGIN_ROOT}/scripts/md2pdf" "/path/to/input.md" # writes /path/to/input.pdf
"${CLAUDE_PLUGIN_ROOT}/scripts/md2pdf" "/path/to/input.md" "/tmp/output.pdf" # custom output path
If CLAUDE_PLUGIN_ROOT is not set, find the script relative to this SKILL.md (../../scripts/md2pdf).
Then open the result:
open "/path/to/input.pdf"
How It Works
- pandoc — parses GFM into standalone HTML5, embedding local images
- github-markdown-css — fetched once into
~/.cache/md2pdf/and concatenated with the plugin'sassets/github-print.css, which adds page size, wide-table wrapping, and avoid-break rules - headless Chrome — prints the HTML to PDF via
--print-to-pdf
The script wraps pandoc's output in <article class="markdown-body"> because github-markdown-css scopes all of its selectors to that class — without the wrapper, none of the GitHub styling applies.
Prerequisites
- pandoc —
brew install pandoc(or your package manager) - Chrome or Chromium — the script checks Google Chrome, Chromium, and Chrome Canary in
/Applications, thengoogle-chrome/chromium/chromium-browseronPATH - Network access on first run only — to cache
github-markdown-css
Options
- Dark mode —
MD2PDF_THEME=dark md2pdf input.md(fetches the dark stylesheet and forces the page background)
When Things Go Wrong
- Tables still overflow — in
assets/github-print.css, drop.markdown-body tablefont-sizeto 8pt, or change@page sizetoLetter landscape - Images missing — pandoc uses
--embed-resources, so make sure paths in the markdown resolve from the source file's directory - Blank PDF or Chrome errors — try
--headless(old) instead of--headless=newin the script - Stale styling — delete
~/.cache/md2pdf/to refetch the base stylesheet
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.
- 2mo ago First seen · 63 lines · 54 tokens per session scan A 73be458a538a
md-to-pdf is a skill published in the GitHub repository ericboehs/claude-plugins (2 stars, last pushed 2mo ago), licensed MIT. It adds 54 tokens to every session and 763 once invoked, about $0.0002 per session on Opus 5.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-08-31.
md-to-pdf compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| md-to-pdfericboehs/claude-plugins | Skill | 2 | 2mo ago | MIT | A | 54 | Claude Code |
| apify-youtube-transcript-scrapersickn33/agentic-awesome-skills | Skill | 49k | yesterday | MIT | A | 48 | Claude Code |
| foundry-hosted-agent-validationmicrosoft/agent-framework | Skill | 15k | yesterday | MIT | A | 82 | Claude Code, Codex |
| report-to-pdfasgeirtj/system_prompts_leaks | Skill | 71k | yesterday | CC0-1.0 | A | 17 | Claude Code, Codex |
| skill-doc-deliverynyldn/claude-octopus | Skill | 4.4k | today | MIT | A | 29 | Claude Code |
| meta-web-to-pdf-briefingopensquilla/opensquilla | Skill | 7.1k | 7d ago | Apache-2.0 | A | 45 | Claude Code, Codex |
| chat-complex-documentsvellum-ai/vellum-assistant | Skill | 1.5k | 2d ago | MIT | A | 90 | Claude Code, Codex |