aminer-pdf-ocr

aminer-pdf-ocr is a command for Claude Code from CanXiangCC/aminer-open-skill. It costs 0 tokens per session (841 once invoked), scanned A, original, MIT.

A tool that reads text from a PDF or image and extracts structured experiment details, such as methods, datasets, metrics, and results. OCR means recognising text in scanned pages or images so it can be processed.

In plain words
What is it for?
Use it to process an eligible PDF or image, run OCR, and extract information about a study’s methods, datasets, evaluation measures, and results.
Why use it?
Important experimental information may be trapped in scanned documents or difficult-to-parse PDFs. Turning it into structured fields makes those details easier to review and compare.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the aminer-pdf-ocr plugin — 1 skill, 1 command shipped together

Good fit Use it to process an eligible PDF or image, run OCR, and extract information about a study’s methods, datasets, evaluation measures, and results.

Compare 6 commands from other repositories ↓
Install

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.

Claude Code
/plugin marketplace add CanXiangCC/aminer-open-skill
Claude Code
/plugin install aminer-pdf-ocr

Made for: Claude Code.

Or install aminer-pdf-ocr, the plugin that ships this one along with the rest of its 1 skill, 1 command.

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 aminer-pdf-ocr

README.md
[![agentmods](https://agentmods.dev/badge/commands/canxiangcc/aminer-open-skill/aminer-pdf-ocr/github.svg)](https://agentmods.dev/commands/canxiangcc/aminer-open-skill/aminer-pdf-ocr)
Your own site
<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.

agentmods 80×15 button for aminer-pdf-ocr

Your own site · 80×15
<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>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 841 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.
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.00000 $0.00841
Opus 5 $0.00000 $0.00420
Sonnet 5 $0.00000 $0.00168
Haiku 4.5 $0.00000 $0.00084

Measured 10d ago against content hash f86ea5b631b7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

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.

skills/aminer-pdf-ocr/commands/aminer-pdf-ocr.md · 64 lines

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 $ARGUMENTS or 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

  1. Check that AMINER_API_KEY exists without printing its value. If missing, stop and send the user to https://open.aminer.cn/open/board?tab=control. OPEN_PLATFORM_TOKEN is a deprecated fallback only.
  2. Check that requests and pypdf are installed.
  3. 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. 执行前检查

  1. 检查 AMINER_API_KEY 是否存在,禁止回显值;缺失则停止,并引导用户前往 https://open.aminer.cn/open/board?tab=control。`OPEN_PLATFORM_TOKEN` 仅作兼容回退。
  2. 检查 requestspypdf 依赖。
  3. 确认用户提供本地 PDF 或 HTTP(S) URL。开放接口只接受未加密、1–30 页且不超过 10 MiB 的 PDF。

2. 运行

python3 "${CLAUDE_PLUGIN_ROOT}/scripts/ocr.py" --input "<input>"

Read the full file on GitHub · 64 lines

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. 10d ago First seen · 64 lines · 0 tokens per session scan A f86ea5b631b7

Subscribe to this mod's changes

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.

Related

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.

flonat/flonat-research · 60 tokens

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…

flonat/flonat-research · 72 tokens

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.

flonat/flonat-research · 41 tokens

wtfp:export-latex

Export the manuscript and bibliography to portable LaTeX source with declared formatting.

akougkas/wtf-p · 22 tokens

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.

llv22/AutoResearchWithEyes · 69 tokens

render-figures

Compile all .tex and .typ figure files in a directory.

braininahat/brains-in-a-hat · 17 tokens