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 WrongStack/WrongStack --skill pdfgit clone --depth 1 https://github.com/WrongStack/WrongStackWrote 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/wrongstack/wrongstack/pdf)<a href="https://agentmods.dev/skills/wrongstack/wrongstack/pdf"><img src="https://agentmods.dev/badge/skills/wrongstack/wrongstack/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/wrongstack/wrongstack/pdf"><img src="https://agentmods.dev/badge/skills/wrongstack/wrongstack/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.00093 | $0.02442 |
| Opus 5.5 | $0.00037 | $0.00977 |
| Sonnet 5.5 | $0.00019 | $0.00488 |
| Haiku 4.5 | $0.00009 | $0.00244 |
Grade A, and why
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 27d 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 — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PDF Documents
Selection card
- Task: Generate, assemble and inspect PDFs with real text, embedded fonts and correct page geometry.
- Start: Fix page size, margins, header/footer needs, archival or print requirements and the source (HTML template, Typst/LaTeX, existing PDFs); read the current generator code and any print stylesheet.
- Finish: the PDF has the expected page count and size, every font is embedded, text extracts in reading order, rendered pages were viewed, and any PDF/A claim has a validator report; checks below pass.
Overview
A PDF is a fixed-layout contract with printers and archives: verify page geometry, embedded fonts, real text (not pictures of text) and structure, because no reader reflows your mistakes.
Generators: headless Chromium through Playwright or Puppeteer for HTML, Typst or LaTeX for typeset documents, pdf-lib for assembly (@playwright/test / Puppeteer; checked 2026-11-02: pdf-lib 1.17.1, Playwright 1.64.1, Puppeteer 25.16.0).
Chromium writes RGB, non-archival PDFs; PDF/A, PDF/UA and press-ready PDF/X are separate, validated deliverables.
Rules
- Text stays text and vectors stay vectors. Never embed a screenshot of a page;
pdftotextmust return the content in reading order, and charts should render as SVG rather than canvas bitmaps. - Embed every font. In
pdffontsoutput each font needs "emb" yes; Type 3 fonts mean bitmap glyphs. pdf-lib's standard fonts encode WinAnsi only, so Turkish ğ ş ı İ, CJK or emoji throw "WinAnsi cannot encode"; register@pdf-lib/fontkitand embed a TTF or OTF withsubset: true. - Before
page.pdf, wait for real readiness: navigate withwaitUntil: 'networkidle', callpage.emulateMedia({ media: 'print' }), awaitdocument.fonts.ready, and load lazy images eagerly. SetprintBackground: true, andpreferCSSPageSize: truewhen@page { size }should win over the page.pdf format option. - Control breaks in CSS:
@page { size: A4; margin: 18mm 16mm },break-inside: avoidon rows, figures and cards,break-after: avoidon headings,thead { display: table-header-group }to repeat table headers,orphans/widowson paragraphs. - Running headers and footers: Chromium 131+ supports
@pagemargin boxes withcounter(page)andcounter(pages); Playwright and PuppeteerheaderTemplate/footerTemplateare separate documents that need inline styles, an explicit font size, data-URL images and page margins large enough to show them. - Structure and metadata:
<html lang>, a<title>(it becomes the PDF Title), real heading hierarchy. Request tagged output and an outline (tagged: true,outline: truein current Playwright and Puppeteer) and confirm withpdfinfo. - Archival and print are validated, not asserted: convert to PDF/A with LibreOffice export or Ghostscript plus an ICC profile, and validate with veraPDF; CMYK, bleed and PDF/X go to a prepress tool or printer spec.
- Manipulation preserves what it does not touch. pdf-lib merges, splits, stamps, fills and flattens forms; it does not render HTML, extract text or decrypt. Editing a signed PDF invalidates the signature; never strip encryption without the owner's authorization.
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.
- 27d ago Changed · +38 lines · +40 tokens per session 8b14fb0bce3f
- 1mo ago Changed · +6 lines 4c67cd2a7cdc
- 1mo ago First seen · 92 lines · 53 tokens per session scan A 7f28b719e750
pdf is a skill published in the GitHub repository WrongStack/WrongStack (444 stars, last pushed today), licensed MIT. It adds 93 tokens to every session and 2,442 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-10-11.
pdf compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pdfWrongStack/WrongStack | Skill | 444 | today | MIT | A | 93 | Claude Code, Codex |
| ai-provider-claude-visionagents-inc/skills | Skill | 28 | 1mo ago | MIT | A | 38 | Claude Code, Codex |
| pdf-officialLiHongwei-cn/lihongwei-cn | Skill | 5 | 1mo ago | MIT | A | 53 | Claude Code, Codex |
| pdf-conversion-routerLiHongwei-cn/lihongwei-cn | Skill | 5 | 1mo ago | MIT | A | 50 | Claude Code, Codex |
| nature-readerLiHongwei-cn/lihongwei-cn | Skill | 5 | 1mo ago | MIT | A | 116 | Claude Code, Codex |
| 2slides-ppt-generatorLiHongwei-cn/lihongwei-cn | Skill | 5 | 1mo ago | MIT | A | 64 | Claude Code, Codex |
| oo-api2pdfoomol-lab/skills | Skill | 4 | yesterday | MIT | C | 47 | Claude Code |