Extracts structured experiment data (methods, datasets, metrics, results) from academic paper markdown files using GLM sentence filtering and LLM extraction via the Zhipu BigModel API.
Ships in aminer-exp-extraction. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
One script, one chain: md -> preprocess -> GLM filter -> LLM -> JSON. No manifests, no run state, no monitoring — just extraction. A single model service (Zhipu BigModel, default glm-5.3-flash) powers both the sentence filter and the extraction.
requests from requirements.txt.BIGMODEL_API_KEY must be set — it authenticates BOTH model stages (sentence filter + extraction) as Authorization: Bearer (OPENAI_API_KEY accepted as fallback). Never print key values. No other credential or internal service is used.LLM_CHAT_URL — default https://open.bigmodel.cn/api/paas/v4/chat/completions (used by both stages)LLM_MODEL — default glm-5.3-flash (fast variant, used by both stages; glm-5.3 / glm-5.2 also valid)--md/--md-dir), or paper_id,md_url CSV rows (--csv, md downloaded to --md-cache, cached across re-runs). Local mode: file stem = paper_id.# single paper
python3 extract_experiments.py --md /path/to/paper.md -o out.json
# batch: one md per paper, named <paper_id>.md
python3 extract_experiments.py --md-dir md_papers/ -o-dir out_json/
# batch from paper_id + md_url (CSV: header paper_id,md_url; md downloaded to md_cache/)
python3 extract_experiments.py --csv papers.csv --md-cache md_cache/ -o-dir out_json/
Per-paper failures don't stop the batch; exit code 2 means at least one failed. CSV downloads are cached — re-runs skip already-downloaded papers.
One JSON per paper: paper_id, paper_title, research_problem(_description/_aliases), domain, experiments[] (name, type, methods, datasets, metrics, key_results, conclusion, limitations, evidence), plus stats (sentence counts, filter backend, elapsed). Schema identical to the production workflow's predictions.
The skill contacts exactly ONE service: the public Zhipu BigModel chat-completions API. No internal/AMiner gateway is called anywhere (the SciBERT /filter/batch path was removed; stale vendored call sites raise explicitly).
{LLM_CHAT_URL} with a numbered-sentence scoring prompt (system prompt + user prompt, temperature: 0.05). GLM returns {"kept": [{"i", "score"}, ...]}; client keeps score ≥ 0.6 (frozen threshold), original order, cap 60 (WF4_MAX_QWEN_SENTENCES). Unparseable response is a hard error; an explicitly empty kept list is a legitimate "no experiment sentences" result.POST {LLM_CHAT_URL} (Zhipu BigModel https://open.bigmodel.cn/api/paas/v4/chat/completions, default model glm-5.3-flash) standard OpenAI messages format, stream: false, temperature: 0.05, max_tokens: 2048 (frozen). Auth: Authorization: Bearer $BIGMODEL_API_KEY.--csv mode) fetches the user-provided md_url (public OSS/HTTP link) into --md-cache; no AMiner API is queried. Non-http(s), localhost/private-network, and metadata-host URLs are refused, redirects are re-validated per hop, and downloads are size-capped (same policy as aminer-pdf-ocr).extract_experiments.py (opens in a new tab)pipeline/__init__.py (opens in a new tab)pipeline/benchmark/__init__.py (opens in a new tab)pipeline/benchmark/config.py (opens in a new tab)pipeline/benchmark/parse_helpers.py (opens in a new tab)pipeline/benchmark/stages/__init__.py (opens in a new tab)pipeline/benchmark/stages/bert_client.py (opens in a new tab)pipeline/benchmark/stages/llm_client.py (opens in a new tab)pipeline/benchmark/stages/openai_chat_llm_client.py (opens in a new tab)pipeline/benchmark/stages/sentence_clean.py (opens in a new tab)pipeline/benchmark/stages/union_merge.py (opens in a new tab)pipeline/benchmark/workflows/__init__.py (opens in a new tab)pipeline/benchmark/workflows/base.py (opens in a new tab)pipeline/benchmark/workflows/registry.py (opens in a new tab)pipeline/benchmark/workflows/wf1_merged.py (opens in a new tab)pipeline/benchmark/workflows/wf8_core.py (opens in a new tab)pipeline/json_repair.py (opens in a new tab)pipeline/production/__init__.py (opens in a new tab)pipeline/production/adapters/__init__.py (opens in a new tab)pipeline/production/adapters/dataset_confidence.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/aminer-exp-extraction:aminer-exp-extractionfrom aminer-exp-extraction
npx claudepluginhub aminerorg/aminer-research-skills --plugin aminer-exp-extractionOther plugins' skills for the same job