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

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/woodfishhhh/ez_math_model/pdf
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.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.svg" alt="Measured on agentmods" 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. 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.1 $0.00037 $0.00514
Opus 5 $0.00018 $0.00257
Sonnet 5 $0.00007 $0.00103
Haiku 4.5 $0.00004 $0.00051

Measured 5d ago against content hash 6807a38a157f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 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.

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_fallbackpaper_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. 5d 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 (40 stars, last pushed 1mo ago), licensed MIT. It adds 37 tokens to every session and 514 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

math-modeling-finalizer

数学建模项目收口与终审 Skill。用于正式结果已基本冻结后的参赛者尺度代码简化与行为回归、最终完整复审、AI 工具使用详情 DOCX、Word/PDF 排版检查、支撑材料 ZIP 与提交前卫生检查。典型请求包括“结果已经定了,把代码改得更像学生项目”“最后完整审一遍”“检查最终 Word/PDF”“生成 AI 使用详情和支撑材料”。若需要重新建模、修改 evaluator 或正式结果,路由回 math-modeling-solver;正文、摘要、引用语义或公式写作问题路由回 math-modeling-paper;提交后的项目复盘/教学交给 math-modeling-growth。.

mantou6666/Math-Modeling-Agent-Flow · 160 tokens

modeling-delivery-gate

Final delivery checker for support archives, DOCX/static checks and exact-PDF visual review. Missing exact PDF remains NOTVERIFIED.

mantou6666/Math-Modeling-Agent-Flow · 33 tokens

pdf-batch

批量把含正文、表格、数学公式和图片的 PDF、DOCX、PPTX、XLSX 与图片转换为 Dify 文本库 Markdown 和多模态图片检索包。用户要求一键转换论文、OCR 扫描件、保留 LaTeX 公式/原图或生成批量转换清单时使用。.

MrSGSA/math-modeling-skill-dify · 82 tokens

pdf

读取、提取、创建和修改 PDF,支持文本/表格/图片提取、合并、拆分、旋转、水印、表单、加密解密与 OCR。用户提到 PDF 文件或要求生成 PDF 时使用。.

MrSGSA/math-modeling-skill-dify · 55 tokens

foundry-hosted-agent-validation

Step-by-step process for validating a Python Foundry hosted agent sample (under python/samples/04-hosting/foundry-hosted-agents/) end to end — running it locally (native runtime and azd ai agent run) and after deploying it to an Azure AI Foundry project with azd. Use this when asked to validate a hosted agent sample.

microsoft/agent-framework · 82 tokens

skill-doc-delivery

Convert markdown to DOCX, PPTX, XLSX, PDF office documents — use when you need exportable deliverables.

nyldn/claude-octopus · 29 tokens