Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add CanXiangCC/aminer-open-skill/plugin install aminer-pdf-ocrWrote 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/commands/canxiangcc/aminer-open-skill/aminer-pdf-ocr)<a href="https://agentmods.dev/commands/canxiangcc/aminer-open-skill/aminer-pdf-ocr"><img src="https://agentmods.dev/badge/commands/canxiangcc/aminer-open-skill/aminer-pdf-ocr/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/commands/canxiangcc/aminer-open-skill/aminer-pdf-ocr"><img src="https://agentmods.dev/badge/commands/canxiangcc/aminer-open-skill/aminer-pdf-ocr.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.00000 | $0.00841 |
| Opus 5.5 | $0.00000 | $0.00336 |
| Sonnet 5.5 | $0.00000 | $0.00168 |
| Haiku 4.5 | $0.00000 | $0.00084 |
Grade A, and why
aminer-pdf-ocr 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 3mo 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 — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/aminer-pdf-ocr — PDF OCR + Experiment Extraction
User invoked the PDF/Image OCR skill with:
$ARGUMENTS
Language Routing / 语言路由
- If
$ARGUMENTSor the conversation is mainly Chinese, follow 中文命令流程 and read${CLAUDE_PLUGIN_ROOT}/SKILL.zh.md. - Otherwise follow English Command Flow and read
${CLAUDE_PLUGIN_ROOT}/SKILL.md. - Parameter names stay English:
input,output-dir,ocr-only,no-save-images,output. - JSON keys stay English (
engine,status,artifacts,counts, etc.). - 如果
$ARGUMENTS或对话主要是中文,使用 中文命令流程。 - 否则使用 English Command Flow。
English Command Flow
1. Pre-flight
- Check that
AMINER_API_KEYexists without printing its value. If missing, stop and send the user to https://open.aminer.cn/open/board?tab=control.OPEN_PLATFORM_TOKENis a deprecated fallback only. - Check that
requestsandpypdfare installed. - Confirm the user supplied a local PDF or an HTTP(S) URL. The open API accepts only unencrypted PDFs with 1-30 pages and size <= 10 MiB.
2. Run
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/ocr.py" --input "<input>"
Pass --output-dir, --request-timeout, --poll-timeout, --max-upload-attempts, --no-save-images, or --output only when requested. Do not pass the removed local-parser options (custom base URL, backend, page ranges, formula, or table flags).
3. Extract Experiments
Unless ocr-only: yes, read the complete <output-dir>/result.md, read references/experiment_prompt.md, write one JSON object to <output-dir>/experiments.json, and paste that same complete JSON into the reply. Do not add justification fields or invent facts.
中文命令流程
1. 执行前检查
- 检查
AMINER_API_KEY是否存在,禁止回显值;缺失则停止,并引导用户前往 https://open.aminer.cn/open/board?tab=control。`OPEN_PLATFORM_TOKEN` 仅作兼容回退。 - 检查
requests和pypdf依赖。 - 确认用户提供本地 PDF 或 HTTP(S) URL。开放接口只接受未加密、1–30 页且不超过 10 MiB 的 PDF。
2. 运行
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/ocr.py" --input "<input>"
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.
- 3mo ago First seen · 64 lines · 0 tokens per session scan A f86ea5b631b7
aminer-pdf-ocr is a command published in the GitHub repository CanXiangCC/aminer-open-skill (61 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 841 tokens. 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.
aminer-pdf-ocr compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| aminer-pdf-ocrCanXiangCC/aminer-open-skill | Command | 61 | 2mo ago | MIT | A | 0 | Claude Code |
| bib-filterflonat/flonat-research | Command | 155 | 17d ago | MIT | A | 68 | Claude Code |
| latex-polishflonat/flonat-research | Command | 155 | 17d ago | MIT | A | 60 | Claude Code |
| latexflonat/flonat-research | Command | 155 | 17d ago | MIT | A | 72 | Claude Code |
| wtfp:export-latexakougkas/wtf-p | Command | 20 | 7d ago | MIT | A | 22 | Claude Code |
| autor.paper-writingllv22/AutoResearchWithEyes | Command | 5 | 1mo ago | MIT | A | 69 | Claude Code |
| render-figuresbraininahat/brains-in-a-hat | Command | 4 | 1mo ago | MIT | A | 17 | Claude Code |