跳到正文
Skillpedia
智能体29k · #9530

eval

它能做什么

这项技能对处理同一任务的智能体结果进行排名。适合需要在多个 AI 尝试之间公平、基于证据地做出选择的人。

适用场景

  • ✓当多个智能体已完成工作、你需要知道哪个结果最好的时候。
  • ✓当你有可测量的目标(例如速度或测试覆盖率)可用来对结果排名时。
  • ✓当没有明确指标、你想让 AI 评委比较代码的时候。

技能链接

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/agenthub/skills/eval/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/alirezarezvani/claude-skills/blob/main/engineering/agenthub/skills/eval/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请为最近一次会话中的三个智能体结果打分,并告诉我哪一个获胜。”

每周 5 个新技能,1 分钟读完。

工作原理

在指标模式下,智能体会在每个工作树中运行你的评测命令,并按测得的数值排名。没有指标时,它会比较每个智能体的差异在正确性、简洁性和质量方面的表现,并解释其排名。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

/agenthub: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

/agenthub:eval                           # Eval latest session using configured criteria
/agenthub:eval 20260317-143022           # Eval specific session
/agenthub: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:

  1. Get the diff: git diff {base_branch}...{agent_branch}
  2. Read the agent's result post from .agenthub/board/results/agent-{i}-result.md
  3. 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

  1. Run metric evaluation first
  2. If top agents are within 10% of each other, use LLM judge to break ties
  3. Present both metric and qualitative rankings

After Eval

  1. Update session state:
python {skill_path}/scripts/session_manager.py --update {session-id} --state evaluating
  1. Tell the user:
    • Ranked results with winner highlighted
    • Next step: /agenthub:merge to merge the winner
    • Or /agenthub:merge {session-id} --agent {winner} to be explicit
常见问题

即使有指标,也能强制使用评委模式吗?

能。有一个参数可以强制使用 LLM 评委模式,并忽略指标设置。

排名表显示什么?

每个智能体的排名、指标数值、相对基线的变化以及它改动的文件数量。

我能选择特定的会话吗?

能。你可以指定会话 ID,默认使用最新的会话。

详情

作者的原始描述

Use to score and pick a winner among finished AgentHub agents by metric or judge.

repo: alirezarezvani/claude-skills

热度

GitHub 星标
29k
排名
#9530
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能