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.5 $0.00000 $0.00336
Sonnet 5.5 $0.00000 $0.00168
Haiku 4.5 $0.00000 $0.00084

Measured 3mo ago against content hash f86ea5b631b7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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. 检查 requests 和 pypdf 依赖。
  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. 3mo 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 (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.

Related

aminer-pdf-ocr compared with commands from other repositories

aminer-pdf-ocr next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
aminer-pdf-ocrCanXiangCC/aminer-open-skillCommand612mo agoMITA0Claude Code
bib-filterflonat/flonat-researchCommand15517d agoMITA68Claude Code
latex-polishflonat/flonat-researchCommand15517d agoMITA60Claude Code
latexflonat/flonat-researchCommand15517d agoMITA72Claude Code
wtfp:export-latexakougkas/wtf-pCommand207d agoMITA22Claude Code
autor.paper-writingllv22/AutoResearchWithEyesCommand51mo agoMITA69Claude Code
render-figuresbraininahat/brains-in-a-hatCommand41mo agoMITA17Claude Code