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 AgenticAIPlan/AgenticAISkills --skill batch-paper-pdf-to-markdowngit clone --depth 1 https://github.com/AgenticAIPlan/AgenticAISkillsWrote 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/agenticaiplan/agenticaiskills/batch-paper-pdf-to-markdown)<a href="https://agentmods.dev/skills/agenticaiplan/agenticaiskills/batch-paper-pdf-to-markdown"><img src="https://agentmods.dev/badge/skills/agenticaiplan/agenticaiskills/batch-paper-pdf-to-markdown/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/agenticaiplan/agenticaiskills/batch-paper-pdf-to-markdown"><img src="https://agentmods.dev/badge/skills/agenticaiplan/agenticaiskills/batch-paper-pdf-to-markdown.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.00085 | $0.01568 |
| Opus 5 | $0.00043 | $0.00784 |
| Sonnet 5 | $0.00017 | $0.00314 |
| Haiku 4.5 | $0.00009 | $0.00157 |
Grade A, and why
batch-paper-pdf-to-markdown 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 11d 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 — 128 lines — stays where its author put it; the contents beside it link to each section on GitHub.
批量论文 PDF 转 Markdown
适用场景
当用户需要把一个或多个本地论文 PDF 转成可编辑 Markdown,并保留版面中的图片资源时,使用本 Skill。
适用于以下场景:
- 批量将论文导入知识库或笔记系统
- 为后续摘要、问答或标签整理做预处理
- 在保留图片引用的前提下,把 PDF 内容转成可编辑文本
- 将版面复杂、包含图片和结构化内容的学术论文先转成更适合编辑、检索和复用的中间格式
本 Skill 基于 PaddleOCR 文档解析能力完成 PDF 内容提取和图片整理,并在脚本侧补充整篇文档输出、图片资源落盘、相对路径改写、覆盖保护、超时控制和错误返回约束,减少手工摘录、手工改路径和重复整理成本。
不适用场景与边界
- 不处理远程 URL、网页、DOCX、PPT、图片文件或压缩包;用户需先提供本地
.pdf文件。 - 不做论文摘要、翻译、主题分类、引用格式解析、BibTeX 生成或文献综述。
- 不保证复刻 PDF 原版排版;目标是生成可编辑 Markdown 和可引用的本地图片资源。
- 不替用户申请、保存或提交 PaddleOCR token;密钥只能通过运行环境变量提供。
- 不在输出已存在时自动覆盖;只有用户明确允许覆盖时才使用
--force。 - 单次运行总时间上限为 300 秒;大批量论文应拆成多批处理。
输入要求
- 输入三选一:
--file-path:单个本地 PDF 文件--input-dir:包含 PDF 的本地目录,可配合--recursive--file-list:逐行列出 PDF 路径的 UTF-8 文本文件,空行和#开头的注释行会被忽略
- 当前目录应为本 Skill 目录,或命令中的
scripts/pdf_to_markdown.py路径应写成可执行的相对/绝对路径。 - 运行环境需有 Python 3、
httpx和可用的 PaddleOCR 文档解析接口。 - 已配置以下环境变量:
PADDLEOCR_DOC_PARSING_API_URLPADDLEOCR_ACCESS_TOKEN- 可选:
PADDLEOCR_DOC_PARSING_TIMEOUT
不要把 token、.env 或其他密钥文件放进 Skill 目录或仓库提交内容。
执行步骤
- 先确认输入路径存在,PDF 输出可以写回原目录,并确认是否允许覆盖已有结果。
- 如缺少依赖,先在当前 Skill 目录下执行
python -m pip install -r scripts/requirements.txt。 - 对批量任务先执行
--dry-run,确认将处理的 PDF 列表和目标输出路径。 - 根据输入类型选择正式命令:
- 单个 PDF:使用
--file-path - 目录批量:使用
--input-dir,需要包含子目录时追加--recursive - 路径清单:使用
--file-list
- 单个 PDF:使用
- 以可轮询的异步方式等待脚本完成,总超时时间不得超过 300 秒;预计超过时先拆批。
- 如果目标
paper.md或paper/已存在,只有在明确允许覆盖时才追加--force。 - 批量任务默认遇到首个错误即失败停止;如果用户明确希望尽量处理完其余 PDF,追加
--continue-on-error。 - 如果脚本非零退出,直接返回原始报错和 JSON 摘要,不要改用其他 OCR 或手工解析流程。
输出要求
- 对每个 PDF,在同目录生成一个同名 Markdown 文件,例如
paper.md - 对每个 PDF,在同目录生成一个同名图片目录,例如
paper/ - Markdown 中的图片引用应改写为相对路径,例如
paper/imgs/example.jpg - 脚本输出 JSON 摘要,单文件和批量结果都需要明确:
- Markdown 路径
- 图片目录路径
- 图片数量
- 页数
- 批量任务还需要明确总数、成功数、失败数和失败明细
- 失败时直接暴露脚本返回的错误信息,不能静默忽略
质量自查
任务完成后检查:
- JSON 摘要中的
ok、total、succeeded、failed与实际处理结果一致。 - 每条成功记录都包含
source_pdf、markdown_path、image_dir、image_count、pages。 markdown_path指向的 Markdown 文件存在且非空。image_dir指向的目录存在;如image_count > 0,目录下应有对应图片文件。- 若存在失败项,输出中必须列出失败 PDF 路径和错误原因。
What ships with it
7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 11d ago First seen · 128 lines · 85 tokens per session scan A d00a2ef8c9a8
batch-paper-pdf-to-markdown is a skill published in the GitHub repository AgenticAIPlan/AgenticAISkills (11 stars, last pushed 3mo ago), licensed MIT. It adds 85 tokens to every session and 1,568 once invoked, about $0.0004 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.
Other skills, from other repositories
pydicom
Use pydicom to read, inspect, write, transform, and safely preflight local DICOM datasets and pixel data. Applies to DICOM metadata, transfer syntaxes, compression plugins, frames, private elements, JSON, and bounded de-identification review.
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.
skill-doc-delivery
Convert markdown to DOCX, PPTX, XLSX, PDF office documents — use when you need exportable deliverables.
pdf-extract-create-workflow
Complete PDF lifecycle: download, extract, and generate structured documents with reportlab.
document-direct-python
Use direct Python execution for reliable document creation including spreadsheets, PDFs, and structured reports.
parse-document
Convert a PDF, scan, image of a page, or office file to clean markdown through the connected Superlinked MCP edge, so the source document is not read into model context directly. Use when the user asks to read, parse, OCR, extract from, summarize, or answer questions about a document.