pdf

pdf is a skill for Claude Code, Codex from woodfishhhh/EZ_math_model. It costs 37 tokens per session (514 once invoked), scanned A, original, MIT.

A fallback guide for reading, converting, and extracting information from PDF files, including problem statements, research papers, scanned pages, tables, and formulas. It recommends different tools depending on the PDF's contents and quality.

In plain words
What is it for?
Use it to extract text or tables, read selected sections of papers, handle scanned PDFs with OCR, diagnose extraction problems, and convert PDFs to Markdown.
Why use it?
It helps recover useful text when the preferred PDF-reading tool is unavailable or produces poor results. It also records when an exported PDF is only a rough placeholder.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to extract text or tables, read selected sections of papers, handle scanned PDFs with OCR, diagnose extraction problems, and convert PDFs to Markdown.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/woodfishhhh/ez_math_model/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 woodfishhhh/EZ_math_model --skill pdf
Clone the repo
git clone --depth 1 https://github.com/woodfishhhh/EZ_math_model

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 pdf

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/woodfishhhh/ez_math_model/pdf"><img src="https://agentmods.dev/badge/skills/woodfishhhh/ez_math_model/pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 514 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00037 $0.00514
Opus 5.5 $0.00015 $0.00206
Sonnet 5.5 $0.00007 $0.00103
Haiku 4.5 $0.00004 $0.00051

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

Security

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

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.

skills/ez-math-model/tools/pdf/SKILL.md · 60 lines

What it actually says

pdf — PDF 读取与转换兜底

何时使用

  • 用户上传 .pdf 题目。
  • 需要读取优秀论文 PDF 的摘要、目录或局部章节。
  • MinerU 不可用或输出失败。
  • PDF 扫描件需要 OCR。

优先链路

  1. mineru skill。
  2. 宿主 pdf skill。
  3. pdfplumber 文本和表格提取。
  4. 图像 OCR 兜底。

论文 PDF 导出兜底

scripts/runtime/export_paper.ps1 的 simple text-only PDF 只用于占位交付。该兜底 使用基础字体,非 ASCII 字符会被替换为 ?,因此中文 formal 论文不能把它视为 高保真 PDF。出现该兜底时必须:

  • 在 export_report.json 中写 pdf_fallback 与 paper_pdf_high_fidelity=false;
  • 在 export_audit.json 中标记 pdf_readability=placeholder 或 warning;
  • 最终质量等级最高为 provisional_pass。

题目 PDF 转 Markdown

import pdfplumber

with pdfplumber.open("problem.pdf") as pdf:
    text = "\n\n".join(page.extract_text() or "" for page in pdf.pages)

with open("problem.md", "w", encoding="utf-8") as f:
    f.write(text)

复杂表格、公式和多栏排版优先交给 mineru。

参考论文读取策略

  • 优先读标题、摘要、目录、参考文献。
  • 只在需要借鉴模型表述时读对应章节。
  • 每篇累计读取页数不超过 5 页。
  • 不全文复制优秀论文内容。

失败诊断

情况 处理
全部 PDF 工具不可用 保留原 PDF,让多模态能力直接读
提取乱码 写诊断,建议用户提供文本版
公式提取失败 保留原始字符串,由 writer 补 LaTeX
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 · 60 lines · 37 tokens per session scan A 6807a38a157f

Subscribe to this mod's changes

pdf is a skill published in the GitHub repository woodfishhhh/EZ_math_model (43 stars, last pushed 2mo ago), licensed MIT. It adds 37 tokens to every session and 514 once invoked, about $0.0001 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-30.

Related

Other skills, from other repositories