Pre-registers a performance study, numerical comparison, parameter sweep, or benchmark: thresholds, tolerances, environment pins, and verdict conditions locked into the validation contract before any measurement. Not for diagnosing a stalled bug; use scientific-debugging.
Ships in experiment-protocol. 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.
Lock the success criteria before any result exists. Pre-registration that happens after the first measurement is worthless: it can only ratify what was already seen. Moving the threshold after seeing results is the exact failure mode this protocol exists to prevent.
Anti-trigger: if the question is "why is this output wrong", that is a diagnosis, not an experiment; use scientific-debugging.
/skill experiment-protocol <what to benchmark, compare, or sweep>
There is no operator in a headless run without an --answers file: ask_user is not registered, so
any call is refused as an unregistered tool rather than answered. If a threshold, tolerance, or environment detail is unstated,
pick the most defensible default, record it as an explicit assumption in the
pre-registration, and proceed; never stall Phase 0 waiting for confirmation.
The phases below are the plan; do not open a task list for them. tasks
sits outside this skill's tool surface and any call to it is refused.
Shell rules for every bash call: one command per call, plain and direct.
Never use $(...) or backticks; they trigger an approval gate that ends a
headless run. Capture checksums and environment facts with direct calls
(sha256sum data/mesh.h5), never command substitution.
Before any measurement, write the protocol into the repository validation
contract, .pancode/validation.yaml at the repo root. A contract that parses
under the version-1 schema raises the harness's repo-derived rigor to high; from
the next turn onward, completion claims in this session must carry validation
evidence or state a limitation. That escalation is the point: the contract arms
the finish gate with the criteria you are about to commit to. A VALIDATION.md
is advisory prose and never raises rigor, and a YAML file with unknown fields
fails to parse and raises nothing, so keep to the schema.
When writing the contract, read references/validation-contract.md for the fields it accepts and a complete example.
The pre-registration must contain:
task, e.g. "the fused kernel reaches at least
1.8x the baseline throughput on the pinned input at equal accuracy".sha256sum).Capture current behavior under the pinned environment before changing anything. Store raw outputs and timings as artifacts; never edit them. A speedup claim without a baseline captured under the same pin is a guess.
Compare against the pre-registered thresholds only. If the protocol was deviated from, log the deviation next to the result; do not silently absorb it. Findings outside the registered outcome are marked exploratory and get their own pre-registration if pursued.
Keep a dead-ends ledger in the contract's notes or beside it: one line per
rejected approach with the reason it was rejected. Read it before proposing
the next approach; re-proposing a ledger entry wastes a run. Stop when one of
the pre-registered stop conditions holds: target met, budget exhausted, or all
candidate strategies rejected.
Request: "make the halo exchange faster."
The contract in references/validation-contract.md pins the outcome, the thresholds (minimum 1.2x, target 1.5x, stretch 2.0x), tolerance semantics, environment, input checksum and verdicts.
Baseline: 20 repetitions on exclusive nodes, mean and variance recorded with job ids. Experiment: nonblocking exchange only, flags untouched. Result: 1.3x, accuracy within 1e-12: CONFIRMED at minimum, target not met; ledger gains "persistent requests: no gain over nonblocking here, latency-bound", and the next variable (message aggregation) gets its own run.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/experiment-protocol:experiment-protocolfrom experiment-protocol
npx claudepluginhub panstudio/pancode --plugin experiment-protocol