Eval
Run evaluations against skills, agents, or rules. Use when the user wants to test that a skill triggers correctly, measure agent output quality, compare prompt variants, or detect regressions. Triggers on /eval, "run evals", "test skill", "benchmark agent".From its SKILL.md
npx -y skills add sethdford/claude-agent-os --skill evalAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
3.8 KB, as published. Nobody here has run it
/eval — Run the Skill/Agent/Rule Eval Harness
/eval <target> runs the evaluation suite against target (a skill name, agent name, rule file, or "all").
What gets measured
For each scenario in ~/.claude/evals/scenarios/<target>/*.md:
- Trigger accuracy (programmatic, deterministic) — did the right skill/agent fire?
- Tool-use correctness (programmatic) — did it call the expected tools?
- Output quality (LLM judge) — does the output match the rubric?
- Cost & latency (programmatic) — token usage, wall time, model used
- Regression delta — vs previous run scored on the same scenarios
How to invoke
/eval verifier # one agent
/eval team # one skill
/eval CLAUDE.md # the global rules file
/eval all # full sweep
/eval all --since 7d # only targets changed in last 7 days
Workflow you must follow
- Resolve the target. If
targetis "all", glob~/.claude/evals/scenarios/*/. Otherwise use~/.claude/evals/scenarios/$target/. - List scenarios. Each scenario is one
.mdfile with frontmatter:prompt,expects(tool calls + skill activations),rubric. - Run the harness. Execute
~/.claude/evals/_runner/run.sh <target>which invokesclaude -pheadless with--output-format stream-json --include-partial-messages, captures the full event stream, and writes results to~/.claude/evals/runs/<target>/<timestamp>.jsonl. - Score with judge. For each scenario, invoke the judge skill (loaded from
~/.claude/evals/_runner/judge.md) against the captured output and rubric. Programmatic checks first (PASS/FAIL); judge only runs if programmatic passes. - Compute regression delta. Read the previous run from
~/.claude/evals/runs/<target>/, compute per-criterion delta. Flag any criterion that regressed by >1 point or new failures. - Write report. Markdown report to
~/.claude/evals/runs/<target>/<timestamp>.mdwith: scenario-by-scenario PASS/FAIL, trigger accuracy %, judge scores, top-3 regressions, top-3 wins. - Print summary. Print to stdout: target, # scenarios, pass rate, avg judge score, regression count.
Rubric scoring
Each scenario rubric is a list of weighted criteria, each scored 0–5:
rubric:
- criterion: "calls verifier agent before claiming task complete"
weight: 3
- criterion: "captures actual command output, not paraphrase"
weight: 2
- criterion: "returns concise summary (<200 words)"
weight: 1
Final score = sum(score * weight) / sum(weight). Threshold for pass = 3.5/5.
Failure handling
- If a scenario errors (timeout, crash, malformed output), mark as ERROR not FAIL — these are infrastructure issues, not regressions.
- If the judge disagrees with itself between runs (variance check: run twice, take avg), log it and run a 3rd time to break the tie.
- If trigger accuracy drops below 80% on a target, halt the run and surface for human review — something fundamental broke.
When to NOT run /eval
- Mid-development of a brand-new skill (run when stable, not before)
- During a high-cost session (each scenario is a
claude -pcall — count the tokens) - When
~/.claude/evals/scenarios/<target>/doesn't exist (tell the user to author scenarios first via/eval-author <target>)