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 | $0.00047 | $0.00373 |
| Sonnet 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 9d 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.
- 9d 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 14d ago), licensed MIT. It adds 94 tokens to every session and 746 once invoked, about $0.0005 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-08-31.
Other skills, from other repositories
km-content-extraction
Content extraction routing for KM - local documents (HWP/HWPX/PDF/DOCX/XLSX), web, and vault sources. Use when input is a local file or when km-workflow reaches Phase 2 with a non-URL input.
thumbnail-of-pptx
Capture a thumbnail image of a slide from a OneDrive/Office presentation link. Opens the PowerPoint web viewer in a headless browser and screenshots the slide canvas, producing a clean 16:9 image with no viewer chrome. Works even when the PPTX is not downloadable (e.g. personal OneDrive shares), since it screenshots…
svg-press
Teaches agents how to hand-craft self-contained SVG diagrams that render correctly in browsers, tags, and Playwright PDF/PNG. Covers containment math, viewBox sizing, arrow construction, text hierarchy, KDCube brand color tokens, semantic zone fills, badges, the PNG inspection loop, writepng parameters, multi-diagram…
openclaw-rpa
Record browser, Excel, Word & API actions once — replay without the LLM: faster, cheaper, no hallucinations. github.com/laziobird/openclaw-rpa . Supports computer-use automation: web clicks/fill/extract, local Excel (.xlsx via openpyxl), Word (.docx via python-docx), HTTP API calls (httpx GET/POST), and auto-login…
export-presentation
Export HTML slide presentations to PDF or PNG screenshots.
file-download
Download files from websites, save PDFs, and read downloaded content. Trigger when the user asks to: download a file, save a PDF, export a document, fetch a file from a URL, grab a report, download and read a PDF, or save page content as a file.