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.
npx skills add cyberelf/agent_skills --skill single-page-pdf-exportgit clone --depth 1 https://github.com/cyberelf/agent_skillsWrote 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/cyberelf/agent_skills/single-page-pdf-export)<a href="https://agentmods.dev/skills/cyberelf/agent_skills/single-page-pdf-export"><img src="https://agentmods.dev/badge/skills/cyberelf/agent_skills/single-page-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.
<a href="https://agentmods.dev/skills/cyberelf/agent_skills/single-page-pdf-export"><img src="https://agentmods.dev/badge/skills/cyberelf/agent_skills/single-page-pdf-export.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.00094 | $0.00746 |
| Opus 5.5 | $0.00038 | $0.00298 |
| Sonnet 5.5 | $0.00019 | $0.00149 |
| Haiku 4.5 | $0.00009 | $0.00075 |
Grade A, and why
single-page-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 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 — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Single-Page PDF Export Skill
Export an HTML file or loaded page to a single-page PDF whose height is calculated from the rendered content, with no browser header or footer.
Use This Skill For
- Local
.htmlfiles that should become a single long PDF - Pages that should not be split across multiple PDF pages
- Requests to remove browser print headers and footers
- Pages using viewport-height layouts like
min-h-screenthat break normal printing
Inputs To Resolve
Before exporting, determine:
- The source page:
- Local file path like
/user/test/page.html - Or a
file:///,http://, orhttps://URL
- Local file path like
- The output PDF path:
- If the user does not specify one, default to the source filename plus
-single-page.pdf
- If the user does not specify one, default to the source filename plus
Workflow
- Confirm the source exists if it is a local file.
- Ensure a Chromium-based browser is installed:
- Prefer Chrome, then Edge
- The asset script checks common Windows install paths and
CHROME_PATH
- Ensure Node dependencies are available in the current workspace:
- Install
puppeteer-corewithnpm install --no-save puppeteer-core - If you want to verify the resulting page count, also install
pdf-lib
- Install
- Run the bundled exporter:
node ./assets/export-single-page-pdf.mjs "<input>" "<output>"
- Validate the result:
- Confirm the PDF file exists
- If
pdf-libis available, verify page count is1
Validation Command
Use this only when you need to confirm that the PDF is truly single-page:
node --input-type=module -e "import { readFileSync } from 'node:fs'; import { PDFDocument } from 'pdf-lib'; const bytes = readFileSync(process.argv[1]); const pdf = await PDFDocument.load(bytes); console.log('pages=' + pdf.getPageCount());" "<output.pdf>"
Notes
- The exporter freezes
h-screenandmin-h-screenutilities to pixel values before printing. This avoids the common feedback loop where print page height changes the layout height and forces pagination. - The exporter disables animations and transitions before measuring the page.
- The exporter sets a custom print page size and zero margins, and disables browser headers and footers.
What ships with it
1 file 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.
- 2mo ago First seen · 69 lines · 94 tokens per session scan A 75a76a939c4e
single-page-pdf-export is a skill published in the GitHub repository cyberelf/agent_skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 94 tokens to every session and 746 once invoked, about $0.0004 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.
single-page-pdf-export compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| single-page-pdf-exportcyberelf/agent_skills | Skill | 2 | 2mo ago | MIT | A | 94 | Claude Code, Codex |
| km-content-extractiontreylom/knowledge-manager | Skill | 251 | today | MIT | A | 57 | Claude Code |
| thumbnail-of-pptxpamelafox/presentation-skills | Skill | 129 | yesterday | MIT | A | 111 | Claude Code |
| pdf-recipedieter-medium/bidi2pdf | Skill | 58 | 5d ago | MIT | A | 77 | Claude Code |
| svg-presskdcube/kdcube | Skill | 27 | today | MIT | A | 87 | Claude Code |
| curlshotishandutta2007/Awesome-Agent-Skills | Skill | 21 | yesterday | MIT | A | 86 | Claude Code |
| render-pdfdieter-medium/bidi2pdf | Skill | 58 | 5d ago | MIT | B | 84 | Claude Code |