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 | $0.00000 | $0.00420 |
| Sonnet 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 10d 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.
- 10d 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 (60 stars, last pushed 3d 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.
Other commands, from other repositories
latex-polish
Inspect a cleanly compiling LaTeX document for source pathologies and rendered visual defects by linting and viewing selected PDF pages. Use when compilation succeeds but title pages, floats, tables, figures, or layout still need publication-quality review. Not for basic compilation health; use $latex-health-check.
latex
Compile one specified LaTeX document, resolve build errors, audit citations, and report build quality. Use when a .tex source must be built or a concrete compilation failure repaired. Not for corpus-wide build checks, visual polish after a clean build, or creating a project; use $latex-health-check, $latex-polish, or…
bib-filter
Filter a LaTeX project's bibliography to the entries actually cited, with Overleaf-source resolution, temporary staging, validation, approval-gated canonical replacement, and compilation. Use before submission or after large revisions.
wtfp:export-latex
Export the manuscript and bibliography to portable LaTeX source with declared formatting.
autor.paper-writing
Workflow 3: Full paper writing pipeline. Orchestrates paper-plan → paper-figure → paper-write → paper-compile → paper-improver to go from a narrative report to a polished, submission-ready PDF. Use when user says "write paper pipeline", "paper writing", or wants the complete paper generation workflow.
render-figures
Compile all .tex and .typ figure files in a directory.