/agent-eval-harness:eval-analyzefrom agent-eval-harness
Generates eval.yaml configuration for the agent eval harness by analyzing skills or running custom analysis prompts. Supports skill-based and prompt-based evaluation modes with batch assessment.
Ships in agent-eval-harness. 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; scripts run unread.
You generate eval.yaml — the configuration /eval-run needs. You either:
--prompt): Execute a custom analysis prompt defining what to evaluate and howThe core principle: observe, don't assume. Every field name, file pattern, and directory path in the generated eval.yaml must come from reading actual files. If you can't point to a specific file or field you observed, don't put it in the config.
| Argument | Required | Default | Description |
|---|---|---|---|
--skill <name> | no | auto-detect | Which skill to analyze |
--config <path> | no | auto-discover | Output path for the config |
--prompt <path> | no | none | Custom analysis prompt (for non-skill evals) |
--update | no | false | Fill in missing sections only, preserve user edits |
--assess | no | false | Assess all skills and recommend which ones need evals |
If $ARGUMENTS contains --assess: skip the rest of Step 0 and Step 1. Go directly to Batch Assessment (between Step 0 and Step 1). Do not run state.py init, do not discover configs, do not look for a single skill.
Otherwise, proceed with the normal flow:
mkdir -p tmp
python3 ${CLAUDE_SKILL_DIR}/scripts/agent_eval/state.py init tmp/analyze-config.yaml \
skill=<skill> prompt=<prompt> config=<config> update=<true/false>
If --config provided, use that path. Otherwise run python3 ${CLAUDE_SKILL_DIR}/../../scripts/discover.py and decide:
eval.yaml at project root--skill targets a different eval than the existing one: offer to reorganize into eval/ layout. If the user accepts, run python3 ${CLAUDE_SKILL_DIR}/scripts/reorganize.py --eval-name <name> (add --project-root <path> if not the cwd). If declined, ask where to put the new config.eval/<skill-name>/eval.yaml (nested) or alongside existing flat configsSet the resolved config path as <config> for all subsequent steps. Set <eval_md_path> to <config> with .yaml→.md (so flat eval/<name>.yaml → eval/<name>.md, not a shared eval/eval.md).
If --assess was provided (even with --skill, which is ignored in this mode):
python3 ${CLAUDE_SKILL_DIR}/scripts/assess_skills.py --json
If empty, report no skills found and stop. Otherwise, read ${CLAUDE_SKILL_DIR}/prompts/assess-skills.md and follow its instructions to classify each skill and display the grouped report. Offer to run /eval-analyze --skill <name> on RECOMMENDED skills. Stop here — do not proceed to Step 1.
If --skill provided: Go to Step 2 (skill analysis)
If --prompt provided: Go to Step 2-Prompt (custom prompt analysis)
If neither: Detect what exists via python3 ${CLAUDE_SKILL_DIR}/scripts/find_skills.py and checking for CLAUDE.md/AGENTS.md/ai-docs/, then:
If --skill was provided, locate its SKILL.md:
python3 ${CLAUDE_SKILL_DIR}/scripts/find_skills.py --name <skill>
If --skill was not provided, list all project skills:
python3 ${CLAUDE_SKILL_DIR}/scripts/find_skills.py
This reads .claude-plugin/plugin.json for custom skill paths, falls back to .claude/skills/ and skills/, and excludes eval harness skills. If only one skill is found, use it automatically. If none are found, tell the user — they may need to check skill directory paths or create a skill.
If multiple skills are found, list them and ask the user which one to analyze via AskUserQuestion. For batch assessment, use --assess explicitly.
If --update and eval.yaml already has a skill field: use that skill. If --skill is also provided and differs, ask the user which they mean — don't silently overwrite.
If the resolved <config> already exists and --update was not set:
test -f <config> && echo "CONFIG_EXISTS" || echo "NO_CONFIG"
If it exists, validate it:
python3 ${CLAUDE_SKILL_DIR}/scripts/validate_eval.py config <config>
Then check if eval.md (the cached analysis) is still fresh — meaning the SKILL.md hasn't changed since the last analysis:
python3 ${CLAUDE_SKILL_DIR}/scripts/validate_eval.py memory <eval_md_path>
If FRESH and eval.yaml has a non-empty dataset.schema, at least one outputs entry with a schema, at least one judge, and models.skill set, report config is up to date and exit. No work needed. (An INCOMPLETE config — empty sections, or missing models.skill from a pre-restructure eval.yaml — still needs analysis.)
If STALE, NO_CONFIG, or --update was set, proceed to full analysis.
This is the most important step — the quality of everything downstream depends on how thoroughly you understand the skill.
Launch an Explore agent to do the analysis:
${CLAUDE_SKILL_DIR}/prompts/analyze-skill.md to get the analysis instructionssubagent_type="Explore"The analysis is recursive — the agent follows sub-skill chains (Skill tool calls, /skill-name references) until it finds the skills that produce the final artifacts (typically 2-5 levels, capped at 5 to avoid circular references), reading each sub-skill's SKILL.md to trace the full pipeline. The outputs section must describe what the entire pipeline produces, not just the top-level orchestrator.
The agent returns structured YAML with: purpose, inputs, outputs, sub_skills, flags, pipeline, quality_criteria, and suggested_judges. See ${CLAUDE_SKILL_DIR}/prompts/analyze-skill.md for the full schema.
Verify the response: check outputs reference actual directories and file patterns (not placeholders like <output-dir>), sub_skills lists real skill names, and suggested_judges include working code snippets. If anything looks fabricated, ask the agent to re-examine specific files.
First check if eval.yaml already has a dataset.path (from a previous run or --update):
ls <dataset_path>/ 2>/dev/null | head -20
If not set or doesn't exist, search the project (relative to <config> directory) for test case directories using the Glob tool:
Glob: **/cases/ or **/test-cases/ or **/fixtures/ or **/examples/ or **/dataset/ or **/eval/ or **/tests/data/
Exclude .venv/, .git/, node_modules/ from results.
If nothing found, ask the user where their test cases are (or will be).
If a cases directory exists, read one complete sample case — every file in it. Note:
This is what you'll describe in dataset.schema. If you didn't read the actual files, your schema description will be wrong — and downstream judges will fail because they expect fields that don't exist.
If no test cases exist, note this clearly and suggest running /eval-dataset to generate them. Describe the expected case structure in dataset.schema anyway — eval-dataset uses that description to create matching cases.
Combine the skill analysis (Step 4) and dataset exploration (Step 5) into a complete eval.yaml. Read ${CLAUDE_SKILL_DIR}/references/eval-yaml-template.md for the full field reference — it documents every field, the workspace_mode decision guide, permissions/deny rules, the [EXTERNAL: System] convention, inputs.tools, and the reward schema in depth. The eval-analyze-specific decisions to get right:
execution.mode from Step 4 (if it returned ASK_USER, ask the user — don't default to case; a skill processing collections internally is batch). For case mode, build execution.arguments with {field} placeholders matching observed input.yaml fields; for batch, the literal string (e.g. "--input batch.yaml --headless").repo only when the agent must navigate the real tree (doc navigation, code exploration) — and then add permissions.deny for eval/, eval.yaml, eval.md, tmp/ to prevent test-cheating. Deny rules are prompt-mode only.models.skill and models.judge → claude-opus-4-6; models.hook → claude-sonnet-4-6 if the skill uses AskUserQuestion interactively. CLI flags override.dataset.schema and outputs[*].schema drive the whole pipeline — be specific, use the real file/field names you observed. Mark inputs that reference external systems with [EXTERNAL: System] so /eval-dataset won't fabricate them.allowed-tools includes Skill, add "Skill" to permissions.allow — nested skill calls fail silently in headless without it.inputs.tools entries (match = natural-language description, prompt = how to handle). AskUserQuestion answering uses models.hook + per-case answers.yaml.stdout_only: true): bare {{ outputs }} renders empty — see references/judge-prompt-template.md.python3 ${CLAUDE_SKILL_DIR}/scripts/list_builtins.py; parameterize via arguments:) → inline check → boolean LLM prompt → numeric LLM prompt — one failure mode per judge. Aim for 1-2 builtin + 2-3 check + 1-2 LLM; start lean. LLM prompts follow references/judge-prompt-template.md. Judges receive outputs["annotations"] for outcome-aware scoring.reward: section so the report and Harbor's reward.json match your intent — otherwise a default resolution applies that can silently disagree. Schema in the template.dataset.path / outputs[*].path project-relative (absolute paths break under Harbor / EvalHub).--update: preserve the existing file; only add missing top-level keys. Check LLM judge prompts for literal {{ }} not matching a template variable.After writing eval.yaml to the resolved <config> path, validate all references are correct:
python3 ${CLAUDE_SKILL_DIR}/scripts/validate_eval.py config <config>
This checks dataset path exists (resolved relative to the config file's directory), output paths are relative, judge prompt_file/context/module references resolve, and runner.settings exists.
Errors (exit code 1): fix before proceeding — broken file references, absolute paths, missing modules.
Warnings (exit code 0): may be expected — empty dataset (no cases yet), missing judges (added later). Report them to the user but don't block.
eval.md caches the skill analysis so it doesn't need repeating. Write it to <eval_md_path> (defined in Config Location Discovery). The hash tracks only the top-level SKILL.md — if sub-skills change, the user should run /eval-analyze --update to refresh. Compute the skill hash:
python3 -c "import hashlib; from pathlib import Path; print(hashlib.sha256(Path('<skill-path>/SKILL.md').read_bytes()).hexdigest()[:12])"
Read the template at ${CLAUDE_SKILL_DIR}/prompts/generate-eval-md.md. Write <eval_md_path> with YAML frontmatter (skill, analyzed_at, skill_hash) and a markdown narrative of the analysis.
Tell the user what was generated:
<path> (M cases found)<eval_md_path>: skill analysis cached (hash: <hash>)/eval-dataset to generate test cases (required before eval-run)/eval-run --model <model> to execute the evaluationIf validation produced warnings, list them so the user knows what's incomplete.
Objective: Generate eval.yaml using a custom analysis prompt defining what to evaluate and how.
This is for non-skill evaluations where you want to test agent capabilities directly:
python3 ${CLAUDE_SKILL_DIR}/scripts/resolve_prompt.py <prompt-ref><config>python3 ${CLAUDE_SKILL_DIR}/scripts/validate_eval.py config <config> (check execution.prompt set, fields populated, paths resolve)Same config surface as skill mode. A prompt-mode eval.yaml still needs models, judges, and
thresholds — read references/eval-yaml-template.md and Step 6's field guidance (it applies to both
modes) rather than re-deriving it. Two prompt-mode specifics Step 6 flags but the analysis prompt
may not: set runner.workspace_mode: repo when the agent must navigate the real repo (docs/ai-docs
navigation), and add permissions.deny for eval/, eval.yaml, eval.md, tmp/ so the agent
can't read the answer key (test-cheating guard — deny rules are prompt-mode only).
Prefer builtin generation prompts — for synthetic-generation datasets, emit a top-level generation:
block with strategy: synthetic, context: (repository knowledge), and seeds:. Each seed sets a
category, a count, and one of builtin: / prompt_file: / prompt:. Prefer builtin: for
common patterns (they ship in agent_eval/prompts/); discover them with
python3 ${CLAUDE_SKILL_DIR}/../eval-dataset/scripts/list_prompts.py. Use prompt_file: for
project-specific generation prompts.
Report to user:
<prompt-name> (execution.prompt, case mode)/eval-dataset to generate cases, then /eval-run --model sonnet| Aspect | Skill Analysis | Prompt-Based Analysis |
|---|---|---|
| Command | /eval-analyze --skill my-skill | /eval-analyze --prompt examples/openshift-agentic-docs.md |
| Analyzes | SKILL.md, scripts, sub-skills | Docs, patterns, APIs (prompt-defined) |
| Executes | Skill invocation (execution.skill) | Direct prompt (execution.prompt) |
| Mode | case or batch | case only |
| Dataset | Schema-based (input/output fields) | Generated (generation.strategy: synthetic | from-traces) |
| Judges | Output quality checks | Capability checks (rubrics) |
| Generation context | Usually empty | Prompt-defined knowledge/constraints |
| Purpose | Does my skill work? | Can agents use my docs? |
# Skill analysis
/eval-analyze --skill my-skill # Explicit skill
/eval-analyze # Auto-detect single skill
# Prompt-based analysis
/eval-analyze --prompt examples/openshift-agentic-docs.md # Domain-specific recipe
/eval-analyze --prompt path/to/prompt.md # Custom prompt
# Options
/eval-analyze --skill my-skill --update # Preserve user edits
/eval-analyze --prompt examples/openshift-agentic-docs.md --config eval/docs.yaml # Custom output path
$ARGUMENTS
prompts/analyze-skill.md (opens in a new tab)prompts/assess-skills.md (opens in a new tab)prompts/generate-eval-md.md (opens in a new tab)references/eval-yaml-template.md (opens in a new tab)references/judge-prompt-template.md (opens in a new tab)scripts/assess_skills.py (opens in a new tab)scripts/find_skills.py (opens in a new tab)scripts/list_builtins.py (opens in a new tab)scripts/reorganize.py (opens in a new tab)scripts/resolve_prompt.py (opens in a new tab)scripts/validate_eval.py (opens in a new tab)scripts/agent_eval/__init__.py (opens in a new tab)scripts/agent_eval/_bootstrap.py (opens in a new tab)scripts/agent_eval/actions_mask.py (opens in a new tab)scripts/agent_eval/agent/__init__.py (opens in a new tab)scripts/agent_eval/agent/base.py (opens in a new tab)scripts/agent_eval/agent/claude_code.py (opens in a new tab)scripts/agent_eval/agent/cli_runner.py (opens in a new tab)scripts/agent_eval/agent/codex.py (opens in a new tab)scripts/agent_eval/agent/cursor_agent.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub fullsend-ai/agent-eval-harness --plugin agent-eval-harness10 skills in this plugin
/eval-anovaRun Design-of-Experiments (DoE) evaluations with ANOVA over a matrix of agent configurations — comparing models, thinking-effort levels, prompts, or other factors across shared test cases, with repeated-measures / mixed-effects statistics that account for case difficulty plus a cost/quality Pareto view. Use whenever the user wants to compare models or configurations on an eval, decide which model or config is best, sweep or grid factors, run replications, or check whether a difference in eval scores is statistically significant (F, p, effect size) — even if they don't say "ANOVA" or "DoE". Also use when an eval.yaml has a matrix block or the user asks to fan an eval out across configurations./eval-checkEvaluate the full harness configuration as a system. Scans all skills, commands, CLAUDE.md, and hooks for redundancy, overlap, type misclassification, and structural issues. Produces an informational report with restructuring suggestions. Use when the user wants to check their overall setup health, find redundant skills, detect overlapping triggers, or get restructuring recommendations before diving into individual skill evaluation. Triggers on "check my setup", "harness health", "are my skills redundant", "what should I merge", "setup overview", "configuration check".Other plugins' skills for the same job