Benchmark Builder
ASecurityBuild, check, export or score a time-split, leakage-checked benchmark of protein function annotations (GO terms with evidence, reference, date, provenance, split, difficulty and measured prior knowledge). Use when someone asks for "protein annotations for a benchmark" with constraints such as species, recency window, GO aspect or branch, evidence types, size, or pseudoenzymes and other catalytically dead paralogs, or wants to compare a blind sequence-only read with organism, full-header and a...
- 25 stars
- 0 votes
- 0 copies
- 1 view
- Added November 26, 2026
Security analysis
100/100Pro scans all 5 files and shows the line behind each finding
npx -y skills add ai4curation/ai-gene-review --skill benchmark-builder --agent claude-codeAre you the author of Benchmark Builder?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ai4curation-benchmark-builder)---
name: benchmark-builder
description: >
Build, check, export or score a time-split, leakage-checked benchmark of
protein function annotations (GO terms with evidence, reference, date,
provenance, split, difficulty and measured prior knowledge). Use when someone asks for "protein
annotations for a benchmark" with constraints such as species, recency window,
GO aspect or branch, evidence types, size, or pseudoenzymes and other
catalytically dead paralogs, or wants to compare a blind sequence-only read
with organism, full-header and agent-review conditions, for any predictor
(LLM tools, sequence tools, agent reviews, curators). Do not use for
reviewing one gene's annotations (use review) or for judging one prediction
file (use review-function-prediction).
compatibility: >
The deterministic steps (spec, build, check, export, score) run on any model
with Bash and network access to release.geneontology.org, rest.uniprot.org and
eutils.ncbi.nlm.nih.gov. The agentic steps (REVIEW_DERIVED builds and agent
evaluation) need a frontier model (Claude Opus or Fable class).
metadata:
short-description: Time-split GO annotation benchmarks with leakage checks
agentic-steps: frontier-models-only
---
# Benchmark builder
When this skill is invoked, build the benchmark the user asked for, with the
deterministic steps below. Do the agentic steps only when the user asks for them.
## When to use, and when not
- **Use** to make a new benchmark, to extend or recheck one under `benchmarks/`,
to export inputs for a predictor run, to import a predictor's output as
generic predictions, or to score them.
- **Do not use** to review a gene (use `review`), to judge one set of
predictions (use `review-function-prediction`), or to run paid model calls
without the user's go-ahead.
## Steps
1. **Write the spec.** Copy `benchmarks/human-goa-2025-06/human-goa-2025-06-spec.yaml`
to `benchmarks/<id>/<id>-spec.yaml` and change only what the request fixes.
Choose the releases, the cutoff and `min_reference_date` as described in
[references/spec-choices.md](references/spec-choices.md). Tell the user each
choice. Never guess a model's training cutoff: leave it out instead.
Validate the spec with
`uv run ai-gene-review benchmark validate <spec> --class BenchmarkSpec`.
2. **Build.** Run `just benchmark-build benchmarks/<id>/<id>-spec.yaml`. If the
draw comes up short of the requested size or feature quota, report the counts.
Do not widen the window or the query without asking. Never hand-edit drawn
targets: change the spec and rebuild.
3. **Check.** Run `just benchmark-check benchmarks/<id>/<id>.yaml`. Any FAIL must be
fixed, by changing the spec, before you go on. Report the summary table, the
`reference_recency` counts per predictor (which models the benchmark is fair
for), `feature_label` warnings, reference concentration, the difficulty mix,
and the "Prior-knowledge strata" table.
Never describe targets with CAFA's knowledge categories alone. Report the
measures: how many targets were predicted on the protein, known on a
subfamily or family homolog, resting on a paper before each cutoff, or in
UniProt text. `cafa_knowledge_category` is a legacy label for comparison
with CAFA; say so whenever you quote it.
If the request names a kind of target ("dark proteins", "no close homolog",
"papers after the model cutoff"), write it as `target_filters` (to draw only
such targets) or as a named stratum (to report on them), as described in
[references/spec-choices.md](references/spec-choices.md), and rebuild.
4. **Agentic steps, only if asked** (frontier models only; otherwise stop and
say so): a review-derived build, and an agent evaluation. Follow
[references/agentic-steps.md](references/agentic-steps.md).
5. **Probe exposure, only if asked.** Ask before any paid model call. Run an
identity probe (a blind `function` task with a shuffle control), import it
with `--from peptalk-function`, commit it under `benchmarks/<id>/probes/`,
and run `just benchmark-measure benchmarks/<id>/<id>.yaml --probes <file>`.
Follow [references/conditions-and-scoring.md](references/conditions-and-scoring.md).
6. **Export, run, import and score, only if asked.** Follow
[references/conditions-and-scoring.md](references/conditions-and-scoring.md).
Scoring reads only generic `Prediction` records; convert native outputs with
`benchmark import --from <importer>`. Ask before any paid model call, and
test with a free or stub mode first. Report the stratum breakdown as well as
the overall table: a score on targets that were predicted, homolog-known or
readable before the cutoff says little about reading function off a sequence.
7. **Deliver.** Run `just validate-benchmarks` and `uv run pytest packages/aigr-benchmark tests/test_benchmark_committed.py`.
Commit the spec, the benchmark, the check report, any agent evaluation, the
prediction files under `predictions/`, probe files under `probes/` and the
score report. After changing a committed benchmark's spec strata or adding
probes, remeasure, recheck and rescore it; never redraw it to do so.
Never commit `run-inputs/`, `runs/` or `.cache/benchmark/`. In the PR, state
the purpose (blind versus combined reasoning, per item), the counts that limited
the draw, and the models the benchmark is and is not fair for.
## Addenda
- [references/spec-choices.md](references/spec-choices.md): how to set each spec field.
- [references/agentic-steps.md](references/agentic-steps.md): the review-derived build and agent evaluation.
- [references/conditions-and-scoring.md](references/conditions-and-scoring.md): export, predictor runs, importers and scoring.
- [references/example-results.md](references/example-results.md): the worked example's check report and what it taught.
- [docs/benchmarks.md](../../../docs/benchmarks.md): design rationale, the full list of checks, the prior-knowledge measures and difficulty rules, related practice (CAFA, fs2f, "A Society of AI Scientists") and limits.
Files in this skill
- SKILL.md
- references/agentic-steps.md
- references/conditions-and-scoring.md
- references/example-results.md
- references/spec-choices.md
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.