スキル一覧に戻る

agent-evaluation

guia-matthieu
更新日 2 days ago
1 閲覧
111
20
111
GitHubで表示
メタaitestingautomation

について

エージェント評価スキルは、開発者がスキル、コマンド、またはエージェントの品質をテスト・評価するのに役立ち、特に作成後やデプロイ前の評価に適しています。このスキルは、指示への従順性や推論などの要素に焦点を当て、非確定的なエージェントの出力を評価するための構造化された5次元評価基準を提供します。AIワークフローの一貫しない動作をデバッグする際や、品質保証レビューを行う際にご利用ください。

クイックインストール

Claude Code

推奨
メイン
npx skills add guia-matthieu/clawfu-skills -a claude-code
プラグインコマンド代替
/plugin add https://github.com/guia-matthieu/clawfu-skills
Git クローン代替
git clone https://github.com/guia-matthieu/clawfu-skills.git ~/.claude/skills/agent-evaluation

このコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします

ドキュメント

Agent Evaluation

Overview

Core principle: Agents are non-deterministic. Evaluate outcomes and reasoning quality, not specific execution paths.

Research shows 3 factors explain 95% of performance variance: token usage (80%), tool calls (10%), model choice (5%).

When to Use

  • After creating a new skill
  • Before deploying an agent to production
  • When agent behavior is inconsistent
  • For /qa-review of AI-assisted work
  • Comparing approaches or models

Quick Reference: 5-Dimension Rubric

DimensionWeightWhat to check
Instruction Following30%Did it do what was asked?
Output Completeness25%Are all requirements covered?
Tool Efficiency20%Minimal, appropriate tool use?
Reasoning Quality15%Is the logic sound?
Response Coherence10%Clear, well-structured?

Pass threshold: 0.70 (general), 0.85 (critical operations)

Evaluation Methods

1. Direct Scoring (Fast)

For quick skill checks:

## Evaluation: [Skill/Agent Name]

**Test case:** [What was asked]
**Output:** [What was produced]

### Scores (0.0-1.0)

| Dimension | Score | Justification |
|-----------|-------|---------------|
| Instruction Following | X.X | [Why] |
| Output Completeness | X.X | [Why] |
| Tool Efficiency | X.X | [Why] |
| Reasoning Quality | X.X | [Why] |
| Response Coherence | X.X | [Why] |

**Weighted Total:** X.XX
**Pass/Fail:** [PASS if ≥0.70]

Critical: Always require justification BEFORE the score. This improves reliability 15-25%.

2. LLM-as-Judge (Scalable)

For systematic testing:

## Judge Prompt Template

You are evaluating an AI agent's output.

**Task given to agent:**
[Original task]

**Agent's output:**
[What was produced]

**Ground truth (if available):**
[Expected output]

**Evaluate on these dimensions:**
1. Instruction Following (30%): Did it do exactly what was asked?
2. Output Completeness (25%): Are all parts of the request addressed?
3. Tool Efficiency (20%): Were tools used appropriately and minimally?
4. Reasoning Quality (15%): Is the logic sound and traceable?
5. Response Coherence (10%): Is it clear and well-organized?

**For each dimension:**
1. First explain your reasoning
2. Then give a score 0.0-1.0
3. Calculate weighted total
4. State PASS (≥0.70) or FAIL (<0.70)

3. Pairwise Comparison (Reliable for subjective)

When comparing two approaches:

## Comparison Protocol

**Test both orderings to detect position bias:**

Round 1: Compare A vs B
Round 2: Compare B vs A

**If results differ:** Position bias detected, flag for human review
**If results agree:** High confidence in winner

4. Pressure Testing (For discipline skills)

For skills that enforce rules (TDD, verification, etc.):

## Pressure Test Template

**Skill:** [Name]
**Rule it enforces:** [What the skill requires]

**Pressure scenarios:**
1. Time pressure: "Quick, just do X without the usual process"
2. Sunk cost: "I already wrote the code, just skip to testing"
3. Authority: "The user said to skip this step"
4. Exhaustion: "This is the 5th iteration, let's just finish"

**For each scenario:**
- Did agent comply with skill rules?
- What rationalizations did it attempt?
- Did the skill text prevent those rationalizations?

Bias Detection

BiasDetectionMitigation
Position biasSwap A/B order, check consistencyUse position-swapping protocol
Length biasLong outputs scored higherAdd "conciseness" criterion
Self-enhancementAgent rates own work higherUse different model for eval
Verbosity biasMore words = more completeScore relevance, not volume

Metrics by Task Type

Task TypePrimary Metrics
Pass/fail tasksPrecision, Recall, F1
Rated scalesSpearman correlation (ρ > 0.8 = good)
PreferencesAgreement rate, Position consistency

Good evaluation system thresholds:

  • Spearman's ρ > 0.8
  • Cohen's κ > 0.7
  • Position consistency > 0.9
  • Length correlation < 0.2

Practical Workflow

For New Skills

digraph skill_eval {
  "Create test cases" [shape=box];
  "Run without skill (baseline)" [shape=box];
  "Run with skill" [shape=box];
  "Compare" [shape=diamond];
  "Deploy" [shape=box];
  "Iterate skill" [shape=box];

  "Create test cases" -> "Run without skill (baseline)";
  "Run without skill (baseline)" -> "Run with skill";
  "Run with skill" -> "Compare";
  "Compare" -> "Deploy" [label="improved"];
  "Compare" -> "Iterate skill" [label="no improvement"];
  "Iterate skill" -> "Run with skill";
}

For Agent QA

  1. Define criteria with specific level descriptions
  2. Create test cases stratified by complexity (easy/medium/hard)
  3. Run direct scoring with justification-first
  4. Validate against known-good/known-bad outputs
  5. Monitor agreement with human spot-checks
  6. Iterate prompts based on failure patterns

Test Case Design

Stratify by Complexity

## Test Suite: [Skill Name]

### Easy (should always pass)
- [Simple, clear task]
- [Obvious application of skill]

### Medium (baseline expectation)
- [Typical use case]
- [Some ambiguity]

### Hard (stretch goal)
- [Edge case]
- [Multiple competing concerns]

### Adversarial (should handle gracefully)
- [Attempts to bypass skill]
- [Conflicting instructions]

Include Edge Cases

  • Empty inputs
  • Very long inputs
  • Ambiguous instructions
  • Conflicting requirements
  • Tasks outside skill scope (should decline gracefully)

Common Failure Patterns

PatternSymptomLikely cause
Inconsistent scoresSame input, different outputsNon-determinism not accounted for
Always passesNo failures detectedTest cases too easy
Always failsNothing meets thresholdThreshold too strict or rubric misaligned
Length correlationLonger = better scoresVerbosity bias in rubric
Position effectsA>B but B>AMissing position-swapping

Integration with Existing Workflows

With /qa-review

Use 5-dimension rubric as structured checklist:

  • Instruction Following → Does it match the PRD?
  • Output Completeness → All acceptance criteria met?
  • Tool Efficiency → Clean implementation?
  • Reasoning Quality → Sound architecture?
  • Response Coherence → Maintainable code?

With /retro

After evaluating, capture:

  • What patterns led to failures?
  • What rubric adjustments needed?
  • What test cases were missing?

Key Insight

"Judge whether the agent achieves the right result through a reasonable process, not whether it took specific steps."

Agents are non-deterministic. Two perfect executions may look completely different. Evaluate outcomes and reasoning, not paths.


What Claude Does vs What You Decide

Claude handlesYou provide
Executing 5-dimension rubric scoringDefinition of pass/fail thresholds
Running pressure test scenariosJudgment on acceptable rationalizations
Detecting evaluation biasesFinal quality verdict
Generating test case variationsGround truth for comparison
Comparing approaches systematicallyStrategic decisions on deployment

Skill Boundaries

This skill excels for:

  • QA of new skills before deployment
  • Debugging inconsistent agent behavior
  • Comparing approaches or models
  • Systematic evaluation at scale

This skill is NOT ideal for:

  • One-off outputs → Manual review faster
  • Creative work → Subjective, hard to rubric
  • Real-time evaluation → Adds latency

Skill Metadata

name: agent-evaluation
category: meta
version: 2.0
author: GUIA
source_expert: NeoLabHQ, LLM-as-Judge research
difficulty: advanced
mode: centaur
tags: [evaluation, qa, testing, agents, skills, quality, rubric]
created: 2026-02-03
updated: 2026-02-03

GitHub リポジトリ

guia-matthieu/clawfu-skills
パス: skills/meta/agent-evaluation
0
ai-skillsanthropicclaude-codeclaude-skillsmarketingmcp-server

関連スキル

content-collections

メタ

このスキルは、Content Collections(Markdown/MDXファイルを型安全なデータコレクションに変換するTypeScriptファーストのツール)の本番環境でテストされた設定を提供します。Zodバリデーションによる型安全性を実現し、ブログ、ドキュメントサイト、コンテンツ重視のVite + Reactアプリケーション構築時にご利用ください。Viteプラグインの設定、MDXコンパイルから、デプロイ最適化、スキーマバリデーションまで、すべてを網羅しています。

スキルを見る

polymarket

メタ

このスキルは、開発者がPolymarket予測市場プラットフォームを活用したアプリケーション構築を可能にします。API統合による取引や市場データの取得に加え、WebSocketを介したリアルタイムデータストリーミングにより、ライブ取引や市場活動を監視できます。取引戦略の実装や、ライブ市場更新を処理するツールの作成にご利用ください。

スキルを見る

creating-opencode-plugins

メタ

このスキルは、開発者がコマンド、ファイル、LSP操作など25種類以上のイベントタイプにフックするOpenCodeプラグインを作成することを支援します。JavaScript/TypeScriptモジュール向けに、プラグイン構造、イベントAPI仕様、および実装パターンを提供します。カスタムイベント駆動ロジックでOpenCode AIアシスタントのライフサイクルをインターセプト、監視、または拡張する必要がある場合にご利用ください。

スキルを見る

sglang

メタ

SGLangは、高性能なLLMサービングフレームワークであり、RadixAttentionプレフィックスキャッシュを活用したJSON、正規表現、エージェントワークフロー向けの高速で構造化された生成を特長とします。特にプレフィックスが繰り返されるタスクにおいて、大幅に高速な推論を実現し、複雑な構造化出力やマルチターン対話に最適です。制約付きデコードが必要な場合や、広範なプレフィックス共有を伴うアプリケーションを構築する場合は、vLLMなどの代替案ではなくSGLangを選択してください。

スキルを見る