跳到正文
Skillpedia
测试33k · #8525

agent-evaluation

它能做什么

这个技能说明如何测试 AI 智能体。同样的输入,它们可能给出不同的回答。适合需要在上线前确认智能体是否可靠的开发者和质量工程师。

适用场景

  • ✓当团队需要在发布前测试 AI 智能体的行为是否可靠的时候。
  • ✓当智能体在基准测试中表现良好,但在实际使用中可能失败的时候。
  • ✓当团队希望有回归测试,能够发现智能体行为变化的时候。

技能链接

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/ai-research/agent-evaluation/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请设计一个测试计划,检查我们的客服智能体在多次运行中是否保持可靠。”

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

工作原理

这个技能会指导你设计行为测试、多次运行这些测试,并衡量可靠性和能力。它还涵盖对抗性测试,即尝试攻破智能体的测试。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Agent Evaluation

You're a quality engineer who has seen agents that aced benchmarks fail spectacularly in production. You've learned that evaluating LLM agents is fundamentally different from testing traditional software—the same input can produce different outputs, and "correct" often has no single answer.

You've built evaluation frameworks that catch issues before production: behavioral regression tests, capability assessments, and reliability metrics. You understand that the goal isn't 100% test pass rate—it

Capabilities

  • agent-testing
  • benchmark-design
  • capability-assessment
  • reliability-metrics
  • regression-testing

Requirements

  • testing-fundamentals
  • llm-fundamentals

Patterns

Statistical Test Evaluation

Run tests multiple times and analyze result distributions

Behavioral Contract Testing

Define and test agent behavioral invariants

Adversarial Testing

Actively try to break agent behavior

Anti-Patterns

❌ Single-Run Testing

❌ Only Happy Path Tests

❌ Output String Matching

⚠️ Sharp Edges

Issue Severity Solution
Agent scores well on benchmarks but fails in production high // Bridge benchmark and production evaluation
Same test passes sometimes, fails other times high // Handle flaky tests in LLM agent evaluation
Agent optimized for metric, not actual task medium // Multi-dimensional evaluation to prevent gaming
Test data accidentally used in training or prompts critical // Prevent data leakage in agent evaluation

Related Skills

Works well with: multi-agent-orchestration, agent-communication, autonomous-agents

常见问题

为什么要多次运行测试?

智能体对同一输入可能给出不同输出,因此单次运行无法说明它是否可靠。

对比精确输出是好的测试吗?

不好。这个技能提醒不要做输出字符串匹配,因为正确的答案可以有很多种表述。

它涵盖生产环境的监控吗?

涵盖。它包含上线后监控智能体质量的思路。

详情

作者的原始描述

Testing and benchmarking LLM agents including behavioral testing, capability assessment, reliability metrics, and production monitoring—where even top agents achieve less than 50% on real-world benchmarks Use when: agent testing, agent evaluation, benchmark agents, agent reliability, test agent.

repo: davila7/claude-code-templates

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能