eval
alirezarezvani/claude-skills
Evaluate and rank agent results by metric, LLM judge, or hybrid scoring for AgentHub sessions.
What is eval?
Automatically scores and ranks completed agent results using either metric-based evaluation (run a command), LLM judge comparison (code quality and correctness), or a hybrid approach. Use this when you need to pick a winner among competing agents or compare their outputs objectively.
- Run metric-based evaluation by executing a command in each agent's worktree and ranking by performance
- Compare agent diffs and result posts using LLM judgment on correctness, simplicity, and code quality
- Support hybrid evaluation that uses metrics first, then LLM judge to break ties within 10% of top score
- Display ranked results with winner highlighted and delta/change metrics
- Update session state and suggest next steps (merge, review)
How to install eval
npx skills add https://github.com/alirezarezvani/claude-skills --skill eval- AgentHub session with completed agent runs
- For metric mode: an evaluation command configured in skill settings
- For LLM judge mode: agent result posts in `.agenthub/board/results/`
How to use eval
- 1.Run `/hub:eval` to evaluate the latest session using configured criteria, or `/hub:eval {session-id}` for a specific session
- 2.Choose evaluation mode: metric-based (if eval command configured), LLM judge (default if no command), or force judge with `--judge` flag
- 3.Review the ranked results with winner highlighted and justification
- 4.Run `/hub:merge {session-id} --agent {winner}` to merge the winning agent's changes, or use `/hub:merge` to merge interactively
Use cases
- Score multiple agents on execution speed or performance metrics after a coding task
- Compare code quality and correctness across agents when no numeric metric exists
- Break ties between top-performing agents using qualitative LLM judgment
- Rank content generation agents by quality and relevance of output
- Evaluate and select the best solution from a parallel agent run
- AgentHub users running competitive agent sessions
- Teams comparing multiple AI-generated solutions
- Developers benchmarking agent performance on specific tasks
- Users needing objective ranking of agent outputs
eval FAQ
Metric mode runs a command (e.g., performance test) in each agent's worktree and ranks by numeric results. LLM judge mode compares code diffs and result posts to rank by correctness, simplicity, and quality. Use metric mode for objective benchmarks; use LLM judge when quality is subjective.
Yes. Hybrid mode runs metrics first, then uses LLM judge to break ties if top agents are within 10% of each other. This combines objective scoring with qualitative comparison.
The skill updates session state and displays ranked results with the winner highlighted. You can then run `/hub:merge {session-id} --agent {winner}` to merge the winning agent's changes.
It compares agent diffs and result posts, scoring on correctness (does it solve the task), simplicity (fewer lines changed is better), and quality (clean execution, good structure, no regressions).
Yes, use `/hub:eval {session-id}` to evaluate a specific session by ID, or `/hub:eval --judge` to force LLM judge mode regardless of configuration.
Full instructions (SKILL.md)
Source of truth, from alirezarezvani/claude-skills.
name: "eval" description: "Evaluate and rank agent results by metric or LLM judge for an AgentHub session. Use when the user runs /hub:eval or asks to score, compare, or pick a winner among completed AgentHub agents." command: /hub:eval
/hub:eval — Evaluate Agent Results
Rank all agent results for a session. Supports metric-based evaluation (run a command), LLM judge (compare diffs), or hybrid.
Usage
/hub:eval # Eval latest session using configured criteria
/hub:eval 20260317-143022 # Eval specific session
/hub:eval --judge # Force LLM judge mode (ignore metric config)
What It Does
Metric Mode (eval command configured)
Run the evaluation command in each agent's worktree:
python {skill_path}/scripts/result_ranker.py \
--session {session-id} \
--eval-cmd "{eval_cmd}" \
--metric {metric} --direction {direction}
Output:
RANK AGENT METRIC DELTA FILES
1 agent-2 142ms -38ms 2
2 agent-1 165ms -15ms 3
3 agent-3 190ms +10ms 1
Winner: agent-2 (142ms)
LLM Judge Mode (no eval command, or --judge flag)
For each agent:
- Get the diff:
git diff {base_branch}...{agent_branch} - Read the agent's result post from
.agenthub/board/results/agent-{i}-result.md - Compare all diffs and rank by:
- Correctness — Does it solve the task?
- Simplicity — Fewer lines changed is better (when equal correctness)
- Quality — Clean execution, good structure, no regressions
Present rankings with justification.
Example LLM judge output for a content task:
RANK AGENT VERDICT WORD COUNT
1 agent-1 Strong narrative, clear CTA 1480
2 agent-3 Good data points, weak intro 1520
3 agent-2 Generic tone, no differentiation 1350
Winner: agent-1 (strongest narrative arc and call-to-action)
Hybrid Mode
- Run metric evaluation first
- If top agents are within 10% of each other, use LLM judge to break ties
- Present both metric and qualitative rankings
After Eval
- Update session state:
python {skill_path}/scripts/session_manager.py --update {session-id} --state evaluating
- Tell the user:
- Ranked results with winner highlighted
- Next step:
/hub:mergeto merge the winner - Or
/hub:merge {session-id} --agent {winner}to be explicit
Related skills
More from alirezarezvani/claude-skills and the wider catalog.

extract
Package recurring patterns and debugging solutions into portable, reusable skills.

fda-consultant-specialist
FDA regulatory consultant for medical device companies. Provides 510(k)/PMA/De Novo pathway guidance, QMSR (21 CFR 820, which incorporates ISO 13485:2016 by reference since 2026-02-02; formerly QSR) compliance, HIPAA assessments, and device cybersecurity. Use when user mentions FDA submission, 510(k), PMA, De Novo, QMSR, QSR, ISO 13485 for FDA, premarket, predicate device, substantial equivalence, HIPAA medical device, or FDA cybersecurity.

finance-skills
Router for financial-analyst and saas-metrics-coach skills—pick the right finance analysis tool for your request.

financial-analyst
Performs financial ratio analysis, DCF valuation, budget variance analysis, and rolling forecast construction for strategic decision-making. Use when analyzing financial statements, building valuation models, assessing budget variances, or constructing financial projections and forecasts. Also applicable when users mention financial modeling, cash flow analysis, company valuation, financial projections, or spreadsheet analysis.

fix
Diagnose and fix failing or flaky Playwright tests using a systematic taxonomy.

gcp-cloud-architect
Design GCP architectures for startups and enterprises. Use when asked to design Google Cloud infrastructure, deploy to GKE or Cloud Run, configure BigQuery pipelines, optimize GCP costs, or migrate to GCP. Covers Cloud Run, GKE, Cloud Functions, Cloud SQL, BigQuery, and cost optimization.