evaluation
它能做什么
这个技能说明如何通过检查、评分细则、回归测试和生产环境监控,衡量 AI 智能体是否得到了正确的结果。适合需要证明其工作效果的 AI 智能体发布团队。
适用场景
- ✓当你希望以可重复的方式测试智能体系统时。
- ✓当你需要确认某项更改没有让智能体变差时。
- ✓当你计划比较两种智能体配置,或在发布前增加质量检查时。
技能链接
https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/evaluation/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我制定一份测试计划,用来证明每次修改之后,我的 AI 智能体是否仍能正确完成任务。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能关注结果而非具体步骤,并建议把简单的自动检查与评分细则结合起来,并设定一个基线用于比较。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Evaluation Methods for Agent Systems
Evaluate agent systems differently from traditional software because agents make dynamic decisions, are non-deterministic between runs, and often lack single correct answers. Build evaluation frameworks that account for these characteristics, provide actionable feedback, catch regressions, and validate that context engineering choices achieve intended effects.
When to Activate
Activate this skill when:
- Testing agent performance systematically
- Validating context engineering choices
- Measuring improvements over time
- Catching regressions before deployment
- Building quality gates for agent pipelines
- Comparing different agent configurations
- Evaluating production systems continuously
Do not activate this skill for adjacent work owned by other skills:
- Designing the LLM judge itself, pairwise comparison, judge calibration, or bias mitigation:
advanced-evaluation. - Designing autonomous control surfaces, novelty gates, rollback, or PR approval boundaries:
harness-engineering. - Debugging a specific context failure mode before measuring it:
context-degradation.
Core Concepts
Focus evaluation on outcomes rather than execution paths, because agents may find alternative valid routes to goals. Judge whether the agent achieves the right outcome via a reasonable process, not whether it followed a specific sequence of steps.
Use multi-dimensional rubrics instead of single scores because one number hides critical failures in specific dimensions. Capture factual accuracy, completeness, citation accuracy, source quality, and tool efficiency as separate dimensions, then weight them for the use case.
Use model-judged evaluation only after deterministic checks and rubrics are stable. When the work centers on judge prompts, pairwise comparison, calibration, or bias mitigation, switch to Advanced Evaluation.
Run deterministic validation before LLM judgment whenever the artifact has machine-checkable structure. Schema validity, duplicate keys, rubric math, manifest sync, retrieval status, and required evidence paths should fail fast before an evaluator spends tokens or returns a subjective score.
Performance Drivers
Apply browsing-agent research when designing evaluation budgets: token usage, tool calls, and model choice can dominate measured performance variance (claim-evaluation-browsecomp-variance).
| Factor | Variance Explained | Implication |
|---|---|---|
| Token usage | Primary driver | More exploration can improve performance until cost or context quality collapses |
| Number of tool calls | Secondary driver | More tool use helps only when calls retrieve useful evidence |
| Model choice | Secondary but multiplicative | Better models often use tokens and tools more efficiently |
Act on these implications when designing evaluations:
- Set realistic token budgets: Evaluate agents with production-realistic token limits, not unlimited resources.
- Compare model upgrades against token increases: Better models may use tokens more efficiently than weaker models with larger budgets.
- Validate multi-agent architectures: Extra agents add tokens and tool calls; evaluate them against single-agent baselines.
Detailed Topics
Evaluation Challenges
Handle Non-Determinism and Multiple Valid Paths
Design evaluations that tolerate path variation because agents may take completely different valid paths to reach goals. One agent might search three sources while another searches ten; both may produce correct answers. Avoid checking for specific steps. Instead, define outcome criteria (correctness, completeness, quality) and score against those, treating the execution path as informational rather than evaluative.
Test Context-Dependent Failures
Evaluate across a range of complexity levels and interaction lengths because agent failures often depend on context in subtle ways. An agent might succeed on simple queries but fail on complex ones, work well with one tool set but fail with another, or degrade after extended interaction as context accumulates. Include simple, medium, complex, and very complex test cases to surface these patterns.
Score Composite Quality Dimensions Separately
Break agent quality into separate dimensions (factual accuracy, completeness, coherence, tool efficiency, process quality) and score each independently because an agent might score high on accuracy but low on efficiency, or vice v
常见问题
智能体必须每次都遵循相同的步骤吗?
不必。该技能判断的是结果是否正确,因为可能有多种路径都能得到好的结果。
什么是基线?
它是较早的结果,用来与新结果进行比较,从而判断情况是改善了还是变差了。
由谁来评判回答?
该技能结合使用自动检查和评分细则,并指向另一份讲解如何设计 AI 评审的指南。
详情
作者的原始描述
This skill should be used when building agent evaluation systems: deterministic checks, regression suites, multi-dimensional rubrics, quality gates, production monitoring, baseline comparison, and outcome measurement for agent pipelines.
热度
- GitHub 星标
- 18k
- 排名
- #10641
- 许可证
- MIT
- 更新时间
- 2026/10/11
评论
- …
同一仓库的更多技能
context-engineering-collection
18k帮你的智能体管理输入 AI 模型上下文窗口的内容,涵盖记忆、工具、多智能体配置以及评估。
advanced-evaluation
18k教你的智能体如何用另一个 AI 来评判 AI 的回答,包括打分、并排比较和偏差检查。
bdi-mental-states
18k教你的智能体用 BDI 方法对信念、目标和计划进行建模,使其决策可以被追溯和解释。
context-compression
18k帮你的智能体把很长的 AI 会话压缩成摘要,保留决策、文件、风险和下一步。