/will-wright-eng-skills:autoresearch-verifyfrom will-wright-eng-skills
Build a repo-specific verifier script for an autoresearch loop. The script has two modes — `light` (fast per-candidate metric evaluation, emits the JSON the loop consumes) and `heavy` (matrix-of-conditions integrity check). Run after autoresearch-method confirms the repo fits and before autoresearch-program. Use when a user wants to build the verifier script for an autoresearch loop.
Ships in will-wright-eng-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.
None: SKILL.md is the whole skill.
Build a single repo-specific verifier script with two modes. The script is what every candidate change is scored against. This skill produces only the script — git handling, branching, baselines, acceptance rules, and the gating relationship between light and heavy all live in program.md (created by autoresearch-program).
autoresearch-method has been read and the repo passes the fit checklist (single metric, lockable verifier, bounded mutable scope, cheap evaluation).One artifact at the target repo root (or another location the human chooses):
verify.py — a Python script with two modes:
python verify.py --mode light (default mode if --mode is omitted)python verify.py --mode heavyThis skill does not create program.md, configure git, run baselines, or define when heavy is invoked. Those are autoresearch-program's job.
The script is written from scratch following the spec below. No stub or schema file is shipped — generic stubs encourage generic verifiers, and the verifier is the most repo-specific part of the methodology.
Read the repo and ask the human as needed. Confirm every value before writing code.
light mode. Examples: validation loss, p95 latency ms, accuracy, throughput tokens/sec.minimize or maximize.light. A fixed budget every candidate gets (wall clock, training steps, tokens, evaluation episodes). The same budget applies to every candidate so architecturally different candidates are directly comparable on the primary metric. This is the comparator, not a safety timeout.light. A separate cutoff above the budget. Runs exceeding it are treated as crashes.heavy. Each condition is a check the candidate must pass. Examples: full test suite, multi-seed stability (run light N times with different seeds, variance below threshold), hold-out evaluation set, dependency / type checks, performance regression vs baseline on auxiliary metrics. Each condition has a name and a pass criterion.heavy. A cutoff for the entire heavy run.verify_runs/ at the repo root.light is called for every candidate in the loop. It must be fast and deterministic enough that score differences reflect the candidate, not noise.
Input. The current working tree.
Action. Run the primary metric evaluation under the compute budget. Enforce the hard timeout strictly — exceedances are crashes.
Output. Exactly one JSON object on stdout. The recommended shape is below; adapt field names or add fields to fit the repo, but every field in the required list must be present with the documented type so program.md can consume the output without per-repo branching.
Required fields:
valid (boolean) — true if the run completed and the result reflects a genuine evaluation. False on crash, timeout, or any failure that means the score should not be trusted.score (number or null) — the primary metric value. Null when valid is false.metric_name (string) — the name of the primary metric. Should match what was elicited above.objective (string, either "minimize" or "maximize") — direction for ranking candidates.status (string) — short machine-readable status. Suggested values: "valid", "crash", "timeout", "parse_failure", "correctness_failure". Add others as needed.Optional fields (use when useful):
metrics (object) — auxiliary numeric/string metrics for diagnostics. Not used for ranking.artifacts (object) — paths to logs, plots, checkpoints produced by the run.Example:
{
"valid": true,
"score": 0.0,
"metric_name": "<your metric>",
"objective": "minimize",
"status": "valid",
"metrics": {},
"artifacts": {}
}
Exit code. 0 if the run completed and the result is valid. Nonzero for any invalid result (crash, timeout, parse failure, correctness failure). The valid field must reflect the same judgment as the exit code.
Side effects. Write logs and intermediate artifacts under <persistence_path>/<timestamp>/. Never write outside the persistence path or the script's own scope. Never mutate the working tree.
heavy is invoked by program.md as a gate above light — accepted candidates must also pass heavy. (How and when is autoresearch-program's concern, not this skill's.)
Input. The current working tree (same as light).
Action. Run every integrity condition from the matrix. Conditions may run sequentially or in parallel; pick what's natural for the repo. Enforce the heavy hard timeout for the run as a whole.
Output. Exactly one JSON object on stdout. Recommended shape below; adapt as needed, but the required fields must be present with the documented type.
Required fields:
mode (string) — must be "heavy". Distinguishes the payload from light output when both are piped through the same channel.pass (boolean) — true only if every condition passed.conditions (object) — keyed by condition name. Each value is an object with at minimum a pass (boolean) field. Per-condition detail strings and metrics are recommended.Optional fields:
timings (object) — keyed by condition name, value is seconds elapsed.artifacts (object) — paths to logs or reports produced by heavy.Example:
{
"mode": "heavy",
"pass": true,
"conditions": {
"<condition_name>": {
"pass": true,
"detail": "short human-readable summary",
"metrics": {}
}
},
"timings": {
"<condition_name>": 12.3
}
}
Exit code. 0 if all conditions pass. Nonzero otherwise. The pass field must reflect the same judgment as the exit code.
Side effects. Same persistence rules as light.
A single Python script. Suggested skeleton (the agent fills in the bodies):
#!/usr/bin/env python3
import argparse, json, sys
def run_light() -> dict: ...
def run_heavy() -> dict: ...
def main() -> int:
p = argparse.ArgumentParser()
p.add_argument("--mode", choices=["light", "heavy"], default="light")
args = p.parse_args()
payload = run_light() if args.mode == "light" else run_heavy()
print(json.dumps(payload, sort_keys=True))
return 0 if (payload.get("valid") if args.mode == "light" else payload.get("pass")) else 1
if __name__ == "__main__":
raise SystemExit(main())
If Python is not the right language for this repo, use whatever language fits — same interface, same JSON contracts, same exit-code semantics.
program.md's judgment, made from the JSON.program.md's concern.Before finishing, run both modes once and confirm:
python verify.py --mode light emits a JSON object with the required light fields and exits with code matching the valid field.python verify.py --mode heavy emits a JSON object with the required heavy fields and exits with code matching the pass field.If either mode crashes on the unmodified working tree, fix it before declaring this skill complete. A broken verifier blocks the loop.
Run autoresearch-program to generate program.md at the repo root. That skill defines how light and heavy are invoked across the loop, the git workflow (branch, commit, revert), the acceptance rule, and the mutable/immutable scope. After autoresearch-program runs, the autoresearch skills are no longer in the picture.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (will-wright-eng/skills) — no native marketplace selected
npx claudepluginhub p/will-wright-eng-will-wright-eng-skills21 skills in this plugin
/agent-specificationWrite or review the specification of an agent, or of a system of several agents, through a question/answer session. Chooses the arrangement first (one agent, pipeline, orchestrator or blackboard), then settles one SPECIFICATION.md per agent and, when there is more than one agent, a SYSTEM.md that states how they are joined. Works in a fresh repo or against one role of a system that already exists. Takes an optional path to a specification or system document to review. Use when defining, scoping or reviewing an agent or a multi-agent system, choosing between agent patterns, writing an agent's SPECIFICATION.md, or giving each role of an existing agent system a written scope./annealDecompose a god module into stable and volatile pieces whose boundaries match how the code actually changes. Locates hotspots with the hc CLI (decay-weighted churn × complexity quadrants), autopsies the chosen file along three evidence axes (symbol co-change, consumer slices, internal references), interviews through each proposed seam one at a time, and delivers a strangler-fig migration plan with a measurable hc baseline. Use when a file is a "god module" or "god file", one file soaks up every change, a module needs splitting, or the user wants to isolate hot code or reduce churn concentration./assess-test-suiteAssess a project's test suite against the verification practice in "How the Claude Code team thinks about verification" — classifies every test on two axes (scope unit/integration/E2E × oracle interaction/example/snapshot/property/differential) plus health tags (flaky, slow, cannot-fail, not agent-runnable), maps user-facing features to E2E coverage, then proposes a ranked refactor toward E2E, property and differential tests, closing with a short note on what the refactor does to CI/CD runtime. Writes the assessment only on confirmation and never edits tests. Use when the user wants to "assess the test suite", "audit our tests", know "are our tests any good" or "which tests are worth writing", plan a test strategy or test refactor, deal with too many mocks or unit tests or with flaky tests, or make a test suite a reliable feedback loop for coding agents./autoresearch-methodExplain the autoresearch methodology — a verifiable autonomous experiment loop — and evaluate whether the current repo is a good fit before running the autoresearch-verify and autoresearch-program skills. Use when a user wants to add autonomous experimentation to a project, asks about autoresearch/autoresearch, or is about to invoke the other autoresearch skills./autoresearch-programGenerate `program.md` at the repo root from the autoresearch program template, with mutable/immutable scope and verifier commands baked in via light templating. Run after autoresearch-verify produces the verifier script. The generated program.md is the operating directive for a fresh agent session running the autoresearch loop — after this skill runs, the autoresearch skills are no longer in the picture. Use when a user wants to generate the loop directive for an autoresearch run./blog-antipatternsReview a markdown software blog post against Michael Lynch's "Anti-Patterns in Software Blogging" — the meandering intro and preamble, assuming the reader knows what you know, overreliance on links, the sequel injection bug, excessive formality, and fumbled HTML basics (mobile overflow, unreadable text). Names the post's reference reader first, then reports each finding with its line, the rule it breaks, and a paste-ready rewrite; rendering issues markdown can't settle become targeted manual checks. Read-only — never edits the post. Use when a blog post or draft article needs reviewing before publishing — "review my blog post", "critique this draft", "check this post for blogging anti-patterns", "is this post ready to publish".