agentleFS
ariaxhanariaxhan/kernel-claude/skills/eval/SKILL.md

eval

Skill15 starsChanged 4 months agoMITView on GitHub

Eval-Driven Development (EDD) for AI workflows. pass@k metrics, capability evals, regression evals. Triggers: eval, edd, pass@k, capability, regression, benchmark.

41 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use docs-ci, docs-interfaces and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • jh941213Skill

    docs-ci

    문서 CI(링크·OpenAPI lint·breaking 게이트·mermaid 검증)나 문서 드리프트 감지(docs.yaml 신선도 검사)를 설치하거나 돌릴 때 사용. 문서 내용 작성은 docs-architecture·docs-interfaces·docs-manuals.

    Also in 3 projects that use this

  • jh941213Skill

    docs-interfaces

    API·이벤트 인터페이스 문서(OpenAPI·swagger·AsyncAPI 명세, 엔드포인트 레퍼런스, API 구성도·시퀀스, API CHANGELOG)를 만들거나 코드와 맞출 때 사용. 시스템 구성도는 docs-architecture, API 설계 원칙은 api-design-principles.

    Also in 3 projects that use this

  • open-coder-aiSkill

    policy-init

    Create conformant Chock policy from request. args(request, target_path,

    Also in 3 projects that use this

  • TheKREATORSSkill

    instinct-export

    Export instincts from project/global scope to a file

    Also in 3 projects that use this

  • TheKREATORSSkill

    instinct-import

    Import instincts from file or URL into project/global scope

    Also in 3 projects that use this

  • diego-tobalinaSkill

    build-fix

    Fix build and compilation errors systematically. Run when build fails.

    Also in 6 projects that use this

  • +4 more from jh941213

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 32 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use when implementing agent would otherwise score its own output (high-stakes: security, payments, agent quality):

    line 40
  2. Distinctive:

    Do NOT pass: implementer's checkpoint, summary, commit message, prompt, or expected solution.

    line 44
  3. Distinctive:

    Run 1: implementing agent solves cold, no eval feedback.

    line 49
  4. Distinctive:

    Run 2: implementing agent gets Run 1 score + rubric breakdown, then optimizes.

    line 50
  5. Distinctive:

    Use for critical paths (auth, payments)

    line 60
  6. Distinctive:

    Before trusting a model grader, compare its pass and fail decisions with labels from a human subject-matter expert.

    line 70
  7. Distinctive:

    Before trusting a score:

    line 79
  8. Distinctive:

    Read transcripts and grades from many trials.

    line 83

“Common” is measured: kept by at least 6 in 10 of the 32 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<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>

  1. DEFINE BEFORE CODE: Evals written first force clear thinking about success criteria.
  2. CODE GRADERS > MODEL GRADERS: Deterministic checks beat probabilistic judgments.
  3. 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.
  4. TRACK PASS@K: pass@1 (first attempt), pass@3 (within 3 attempts). Target pass@3 > 90%.
  5. REGRESSION BEFORE SHIP: Every change must pass existing evals before merge.
  6. FAST EVALS GET RUN: Slow evals get skipped. Keep evaluation fast. </core_principles>
<workflow> 1. DEFINE: Write eval criteria before implementation. (gate: criteria exist in writing before any code) 2. IMPLEMENT: Code to pass defined evals. 3. EVALUATE: Run evals, record pass@k. (gate: pass@3 > 90% for capability; pass^3 = 100% for regression) 4. 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):

  1. Spawn agents/blind-evaluator.md as a fresh agent.
  2. Pass ONLY: problem statement, rubric (3-7 criteria with PASS conditions + weights), artifact path.
  3. Do NOT pass: implementer's checkpoint, summary, commit message, prompt, or expected solution.
  4. (gate: blind evaluator runs contamination check — if forbidden inputs detected, returns INVALID; clean inputs and retry)
  5. (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>

  1. Code-based (preferred): grep, test suite, build, type-check — deterministic, fast.
  2. Model-based: for open-ended outputs that can't be checked deterministically. Run multiple times, take majority.
  3. Human: required for security-sensitive changes, UX evaluation, legal/compliance.

Before trusting a model grader, compare its pass and fail decisions with labels from a human subject-matter expert. Tune it on separate examples, then measure its ability to find failures and recognize passes on a held-out set. Report both rates; overall accuracy can hide a grader that labels every case as passing. Recheck after changing the grader.

See reference for full grader templates and examples. </grader_selection>

<eval_validity> Before trusting a score:

  • Isolate trials: each starts from a clean environment (fresh checkout/fixture). Leftover state or git history from earlier trials correlates failures or inflates passes.
  • Reference solution: every task has a known-good output that passes all graders; proves the task is solvable and the grader is wired right.
  • Near-zero pass rate = suspect the task or grader first, not the agent.
  • Read transcripts and grades from many trials; separates real agent errors from graders rejecting valid solutions.
  • Grade the outcome produced, not the path taken; give partial credit on multi-part tasks.
  • 100% pass tracks regressions only; add harder tasks once saturated. Source: https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents </eval_validity>

<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>

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.