pdfs

pdfs is a skill for Claude Code, Codex from AFK-surf/OpenBridge. It costs 10 tokens per session (841 once invoked), scanned A, original, MIT.

Instructions for reading, creating, and reviewing PDF files. A PDF is a document format that can contain text, images, tables, and diagrams while keeping its layout across devices.

In plain words
What is it for?
Use it to read PDF pages, inspect diagrams and tables, create PDFs with code, or review the visual and textual content of a PDF.
Why use it?
It provides ways to inspect visual details that plain text extraction can miss, especially in figures, tables, and page layouts. It also describes tools for generating PDFs programmatically.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/afk-surf/openbridge/pdfs
Any agent
npx skills add AFK-surf/OpenBridge --skill pdfs
Clone the repo
git clone --depth 1 https://github.com/AFK-surf/OpenBridge

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for pdfs

README.md
[![agentmods](https://agentmods.dev/badge/skills/afk-surf/openbridge/pdfs.svg)](https://agentmods.dev/skills/afk-surf/openbridge/pdfs)
Your own site
<a href="https://agentmods.dev/skills/afk-surf/openbridge/pdfs"><img src="https://agentmods.dev/badge/skills/afk-surf/openbridge/pdfs.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 841 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00010 $0.00841
Opus 5 $0.00005 $0.00420
Sonnet 5 $0.00002 $0.00168
Haiku 4.5 $0.00001 $0.00084

Measured 5d ago against content hash 599e18fa63da, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pdfs 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 5d 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.

macos/OpenBridge/Resources/SystemSkills.bundle/pdfs/SKILL.md · 48 lines

How it starts

The opening of the file, as written. The whole thing — 48 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PDF reading, creation, and review guidance

Reading PDFs

  • Use pdftoppm -png $OUTDIR/$BASENAME.pdf $OUTDIR/$BASENAME to convert PDFs to PNGs.
  • Then open the PNGs and read the images.
  • pdfplumber is also installed and can be used to read PDFs. It can be used as a complementary tool to pdftoppm but not replacing it.
  • Only do python printing as a last resort because you will miss important details with text extraction (e.g. figures, tables, diagrams).

Primary tooling for creating PDFs

  • Generate PDFs programmatically with reportlab as the primary tool. In most cases, you should use reportlab to create PDFs.
  • If there are other packages you think are necessary for the task (eg. pypdf, pyMuPDF), you can use them but you may need to pip install them first.

Font support for non-ASCII characters

  • Before creating PDFs with Chinese, Japanese, Korean (CJK) or other non-ASCII characters, install the required fonts:
    apt-get update && apt-get install -y fonts-noto-cjk fonts-noto-core fonts-noto-ui-core
    
  • After installing fonts, rebuild the font cache: fc-cache -fv
  • Verify fonts are available: fc-list :lang=zh (for Chinese)
  • After each meaningful update—content additions, layout adjustments, or style changes—render the PDF to images to check layout fidelity:
    • pdftoppm -png $INPUT_PDF $OUTPUT_PREFIX
  • Inspect every exported PNG before continuing work. If anything looks off, fix the source and re-run the render → inspect loop until the pages are clean.

Quality expectations

  • Maintain a polished, intentional visual design: consistent typography, spacing, margins, color palette, and clear section breaks across all pages.
  • Avoid major rendering issues—no clipped text, overlapping elements, black squares, broken tables, or unreadable glyphs. The rendered pages should look like a curated document, not raw template output.
  • Charts, tables, diagrams, and images must be sharp, well-aligned, and properly labeled in the PNGs. Legends and axes should be readable without excessive zoom.
  • Text must be readable at normal viewing size; avoid walls of filler text or dense, unstructured bullet lists. Use whitespace to separate ideas.
  • Never use the U+2011 non-breaking hyphen or other unicode dashes as they will not be rendered correctly. Use ASCII hyphens instead.
  • Citations, references, and footnotes must be human-readable and professional. No tool-internal tokens (e.g., [145036110387964†L158-L160]), malformed URLs, or placeholder text should be present in the document.
  • You must convert all citations into a human-readable format in the document with standard scholarly citation format. No 【【turn1541736113682297662view0†L11-L19】 notations are allowed in the document as the reader cannot interpret them (such citations will be severely penalized).
  • Correct every formatting defect you see in the PNGs, including but not limited to: overlapping text or shapes, clipped text or shapes that are cut off, black squares, broken tables, unreadable characters, etc.

Read the full file on GitHub · 48 lines

Changes

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.

  1. 5d ago First seen · 48 lines · 10 tokens per session scan A 599e18fa63da

Subscribe to this mod's changes

pdfs is a skill published in the GitHub repository AFK-surf/OpenBridge (426 stars, last pushed 2mo ago), licensed MIT. It adds 10 tokens to every session and 841 once invoked, about $0.0001 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-30.