readable-pdf

readable-pdf is a skill for Claude Code, Codex from yamadashy/agent-readable. It costs 89 tokens per session (589 once invoked), scanned A, original, MIT.

A guide for extracting text, metadata, page details, and optional images from PDF files with pdfvision. A PDF is a document format that can contain selectable text, scanned pages, and other visual content.

In plain words
What is it for?
Use it to inspect local or linked PDFs, preserve page structure, read scanned or image-heavy pages, and obtain structured output such as JSON.
Why use it?
It helps recover readable content from ordinary PDFs and identifies pages where text extraction is insufficient and visual rendering is needed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it to inspect local or linked PDFs, preserve page structure, read scanned or image-heavy pages, and obtain structured output such as JSON.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yamadashy/agent-readable/readable-pdf
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.

Any agent
npx skills add yamadashy/agent-readable --skill readable-pdf
Clone the repo
git clone --depth 1 https://github.com/yamadashy/agent-readable

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 readable-pdf

README.md
[![agentmods](https://agentmods.dev/badge/skills/yamadashy/agent-readable/readable-pdf/github.svg)](https://agentmods.dev/skills/yamadashy/agent-readable/readable-pdf)
Your own site
<a href="https://agentmods.dev/skills/yamadashy/agent-readable/readable-pdf"><img src="https://agentmods.dev/badge/skills/yamadashy/agent-readable/readable-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.

agentmods 80×15 button for readable-pdf

Your own site · 80×15
<a href="https://agentmods.dev/skills/yamadashy/agent-readable/readable-pdf"><img src="https://agentmods.dev/badge/skills/yamadashy/agent-readable/readable-pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 589 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00089 $0.00589
Opus 5.5 $0.00036 $0.00236
Sonnet 5.5 $0.00018 $0.00118
Haiku 4.5 $0.00009 $0.00059

Measured 1mo ago against content hash 901a255aa929, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

readable-pdf scanned grade A with 1 finding 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 1mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -L -o /tmp/doc.pdf "{URL}"
skills/readable-pdf/SKILL.md · 72 lines

What it actually says

PDF Reader

Uses pdfvision for cross-agent PDF extraction. pdfvision returns text with line breaks preserved, document metadata, per-page density, and optional rendered PNGs for multimodal models.

Prerequisite

npx pdfvision --version

Or install globally: npm install -g pdfvision. Requires Node.js >= 22.13.

Run npx pdfvision --help once before invoking — the flag set evolves (page selection, render output dir, layout / geometry / image-boxes opt-ins, etc.) and the help text is the source of truth for what the installed version supports.

Steps

1. Get a local PDF path

If the input is a URL, download first:

curl -L -o /tmp/doc.pdf "{URL}"

If the input is already a local path, skip this step.

2. Extract text + metadata

npx pdfvision /tmp/doc.pdf

Default output is markdown with one ## Page N section per page and a density Overview at the top.

3. Switch format when needed

# Structured JSON for downstream programmatic use
npx pdfvision /tmp/doc.pdf -f json

# Tag-shaped XML, easier for some LLMs to parse than JSON
npx pdfvision /tmp/doc.pdf -f xml

4. Render pages for multimodal review

If the Overview shows low character coverage on a page (i.e. the page is largely an image / scan), render PNGs and read them:

npx pdfvision /tmp/doc.pdf --render -p {pages}

The output reports the PNG paths. Read each image with the agent's image-reading capability.

5. Page subsets

npx pdfvision /tmp/doc.pdf -p 1-5
npx pdfvision /tmp/doc.pdf -p 1,3,5

Why pdfvision over a built-in PDF reader

  • Works in any agent runtime that can spawn a CLI, not only Claude Code.
  • Reports per-page density so the agent can detect rasterised pages and re-extract with --render.
  • Caches by content hash, so repeated reads of the same PDF are instant.
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. 1mo ago First seen · 72 lines · 89 tokens per session scan A 901a255aa929

Subscribe to this mod's changes

readable-pdf is a skill published in the GitHub repository yamadashy/agent-readable (4 stars, last pushed 5mo ago), licensed MIT. It adds 89 tokens to every session and 589 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.