/sdrf-skills:sdrf-adversarial-reviewfrom sdrf-skills
Independently falsifies and reviews SDRF files against specification, ontology terms, source evidence, and repository files. Use after annotation or repair, before contribution, or when an isolated reviewer must distrust the producer's self-assessment.
Ships in sdrf-skills. 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.
Bundle paths.
spec/,tools/anddata/ship with this skill, not with your working directory. Resolve every such path below against the bundle root (SDRF_SKILLS_ROOT, elseCLAUDE_PLUGIN_ROOT, else your sdrf-skills checkout):${SDRF_SKILLS_ROOT:-${CLAUDE_PLUGIN_ROOT}}/spec/sdrf-proteomics/TERMS.tsv. The helpers are thesdrf-toolscommand (install notes:sdrf-annotate/references/setup.md; check withsdrf-tools doctor); noPYTHONPATHor bundle-root variable is needed to run them. Files the user is annotating stay relative to the working directory.
Review the artifact from fresh context. Try to disprove its correctness; do not polish or extend it. Approve only what the artifact and cited evidence support.
The producer usually dispatches this review (sdrf-annotate Step 9.5). A caller
can also run it directly, for example as a separate pipeline task. The caller
then supplies the original request, the SDRF, the evidence manifest and the
deterministic validation output, and receives the findings and report.
REVIEW_UNAVAILABLE and
do not create a passing receipt.files_all.json,
efetch.xml, mmc*.xlsx) silently substitutes one dataset's data for
another's — the file still parses, it just describes a different PXD. Read
only from scratchpad/<PXD>/ or the evidence paths the caller supplied, and
assert on read: every fetched file list's projectAccessions, and every
supplementary/efetch result's returned title/accession, must match the
artifact's accession before you use it — verify identity, not just HTTP 200.Read references/review-contract.md before
writing the report or recording approval. The report must match
tools/schemas/review-report.schema.json; the evidence manifest follows
tools/schemas/evidence-manifest.schema.json. sdrf-tools schema-check --print-schema <name> prints either one, and sdrf-tools schema-check <file> checks a file against it.
Compute its SHA-256 and record the repository-relative path. If the hash changes during review, discard the review and start again.
spec/sdrf-proteomics/TERMS.tsv.spec/sdrf-proteomics/sdrf-templates/templates.yaml and every active
template YAML.Run official parse_sdrf validate-sdrf for every active template. Also run:
sdrf-tools check <artifact>
sdrf-tools score <artifact>
If the repository tools are not importable from the target project, invoke them from the loaded plugin:
sdrf-tools check <artifact>
sdrf-tools score <artifact>
Do not mark deterministic_validation as passing when required validation
could not run.
comment[data file] with repository files;
look for missing, duplicate, unmatched, or non-raw files.For each finding, give a precise row/column or file-level location, evidence, and a correction criterion. Classify it as:
blocker: invalid, unsafe, fabricated, or structurally unusable.important: required before contribution or completion.minor: useful improvement that does not block approval.Return FAIL if any blocker or important finding remains, or if specification
compliance, ontology integrity, omission safety, or deterministic validation is
unverified. Do not record a receipt. Give the producer or caller an actionable
finding list.
Return PASS only when all required checks in the review contract pass and no
blocker or important finding remains. Write the report JSON, then bind approval
to the current artifact hash:
python3 "${SDRF_SKILLS_ROOT:-${CLAUDE_PLUGIN_ROOT:?set SDRF_SKILLS_ROOT to the sdrf-skills checkout}}/tools/review_gate.py" approve <artifact> \
--report <report.json> --reviewer independent-hook-agent --cwd <repo-root>
Outside Claude Code, set SDRF_SKILLS_ROOT to the installed sdrf-skills
root. A producer agent must never run approve for its own work.
When a caller ran you directly, write the report JSON (PASS or FAIL, same
schema) where the caller asked, and run approve only if the caller asks for
it. Never run it outside a git repository: it cannot record a receipt there.
The caller checks the verdict and artifact_sha256.
After any producer edit, repeat this skill in a new reviewer context; the old receipt is intentionally stale.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
sdrf, adversarial-review, proteomics, data-validation, reproducibility
4 skills in this plugin
/sdrf-annotateUse for anything about one SDRF file - create it from a PXD accession (always followed by an independent review), review, validate, check, score or fix an existing .sdrf.tsv, look up a cell line or an ontology term, verify technical metadata from raw files, plan what to capture before there is a file, or explain what a column, value, error or concept means. Triggers on PXD accessions, .sdrf.tsv paths, and any question about the SDRF format, its templates, reserved words, modifications or ontology terms./sdrf-campaignUse when the user wants to run an SDRF annotation campaign over a class of studies rather than one dataset — screen or shortlist proteomics studies from PRIDE, MassIVE or ProteomeXchange against user-defined inclusion criteria and write an evidence-backed resumable TSV, then annotate the included datasets as an autonomous retained-improvement loop. Covers both halves: use stop_after="screen" for screening only, or target a manifest to skip straight to annotation./sdrf-contributeUse when the user has a completed SDRF annotation for a ProteomeXchange dataset and wants to contribute it back to the community via a PR to sdrf-annotated-datasets.npx claudepluginhub bigbio/sdrf-skills --plugin sdrf-skillsOther plugins' skills for the same job