eval
Eval-Driven Development (EDD) for AI workflows. pass@k metrics, capability evals, regression evals. Triggers: eval, edd, pass@k, capability, regress…
它会碰到什么
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
<skill id="eval">
<prerequisite>
AgentDB read-start has run. Check for existing eval definitions in _meta/research/.
Understand what behavior you're evaluating before writing evals.
</prerequisite>
<reference>
Skill-specific: skills/eval/reference/eval-research.md
</reference>
<core_principles>
- DEFINE BEFORE CODE: Evals written first force clear thinking about success criteria.
- CODE GRADERS > MODEL GRADERS: Deterministic checks beat probabilistic judgments.
- STRUCTURAL SEPARATION FOR HIGH-STAKES: When stakes are real (security, payments, eval-of-evals, agent quality scoring), use the blind-evaluator agent — never self-score. Self-scoring inflates results ~36% structurally; procedural separation ("I won't peek") does not fix it.
- TRACK PASS@K: pass@1 (first attempt), pass@3 (within 3 attempts). Target pass@3 > 90%.
- REGRESSION BEFORE SHIP: Every change must pass existing evals before merge.
- FAST EVALS GET RUN: Slow evals get skipped. Keep evaluation fast.
</core_principles>
<workflow>
- DEFINE: Write eval criteria before implementation. (gate: criteria exist in writing before any code)
- IMPLEMENT: Code to pass defined evals.
- EVALUATE: Run evals, record pass@k. (gate: pass@3 > 90% for capability; pass^3 = 100% for regression)
- REPORT: Document results in eval report format. See reference for template.
</workflow>
<blind_evaluation_protocol>
Use when implementing agent would otherwise score its own output (high-stakes: security, payments, agent quality):
- Spawn
agents/blind-evaluator.mdas a fresh agent. - Pass ONLY: problem statement, rubric (3-7 criteria with PASS conditions + weights), artifact path.
- Do NOT pass: implementer's checkpoint, summary, commit message, prompt, or expected solution.
- (gate: blind evaluator runs contamination check — if forbidden inputs detected, returns INVALID; clean inputs and retry)
- (gate: confidence < 0.7 from blind evaluator → escalate to human grader)
Two-phase eval protocol:
- Run 1: implementing agent solves cold, no eval feedback. Blind evaluator scores. This is the externally-reportable number.
- Run 2: implementing agent gets Run 1 score + rubric breakdown, then optimizes. For iteration only.
</blind_evaluation_protocol>
<metrics>
pass@k: "At least one success in k attempts"
- pass@1: First attempt success rate
- pass@3: Success within 3 attempts (typical target: > 90%)
pass^k: "All k trials succeed"
- pass^3: 3 consecutive successes
- Use for critical paths (auth, payments)
See reference for calculation formula and worked examples.
</metrics>
<grader_selection>
- Code-based (preferred): grep, test suite, build, type-check — deterministic, fast.
- Model-based: for open-ended outputs that can't be checked deterministically. Run multiple times, take majority.
- Human: required for security-sensitive changes, UX evaluation, legal/compliance.
See reference for full grader templates and examples.
</grader_selection>
<anti_patterns>
<block id="eval_after_code">Writing evals after implementation tests existing bugs, not requirements.</block>
<block id="model_grader_overuse">Model-based grading is slow and probabilistic. Prefer code graders.</block>
<block id="skip_regression">Every change must pass regression evals. No exceptions.</block>
<block id="slow_evals">Evals that take > 30s get skipped. Keep them fast.</block>
<block id="no_tracking">Track pass@k over time. Declining reliability is a signal.</block>
<block id="self_score">For any user-facing or high-stakes eval, the implementing agent scoring its own work inflates results ~36%. Spawn blind-evaluator instead.</block>
<block id="post_merge_eval">Evaluating against a codebase that already contains the canonical solution = answer key in the eval set. Use pre-merge snapshots or a separate fixture.</block>
<block id="greenfield_in_golden_dataset">Greenfield tickets in the golden eval set collapse to self=10, blind=3. Greenfields are not evaluable as solved tasks — exclude them from the dataset.</block>
<block id="context_breadth_before_baseline">Optimizing how much context the evaluator gets before establishing a baseline score = can't distinguish signal from noise. Run minimal-context baseline first, then test additions one at a time.</block>
</anti_patterns>
<on_complete>
agentdb write-end '{"skill":"eval","eval_type":"capability|regression","pass_at_1":"<X%>","pass_at_3":"<Y%>","failures":["<list>"]}'
Record eval type, pass rates, and any failures for future reference.
</on_complete>
</skill>
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
它属于哪个仓库
plugins/ariaxhan/kernel-claude/skills/eval/SKILL.md同一个仓库里的其他技能
同名技能的其他版本
有 3 个不同仓库或目录里都有叫 eval 的技能。它们内容并不相同,别混用:
- hashgraph-online/awesome-codex-plugins — Quality and performance evaluation with baseline comparison. Sub-modes: correctness, perfo
- hashgraph-online/awesome-codex-plugins — Run an honest session-process evaluation (Standard v1, aiat-llm-eval/1.0) — score the last