Agent skill
eval-harness
Eval-driven development (EDD) — define pass/fail criteria before coding, measure with pass@k metrics. Use when defining completion criteria or measuring agent reliability.
Install this agent skill to your Project
npx add-skill https://github.com/xbklairith/kisune/tree/main/dev-workflow/skills/eval-harness
SKILL.md
Eval Harness
Formal evaluation framework implementing eval-driven development (EDD) — treating evals as unit tests for AI development.
When to Activate
- Setting up eval-driven development for AI workflows
- Defining pass/fail criteria for task completion
- Measuring agent reliability with pass@k metrics
- Creating regression test suites for prompt/agent changes
Philosophy
- Define expected behavior BEFORE implementation
- Run evals continuously during development
- Track regressions with each change
- Use pass@k metrics for reliability measurement
Eval Types
Capability Evals
Test if Claude can do something new:
[CAPABILITY EVAL: feature-name]
Task: What Claude should accomplish
Success Criteria:
- [ ] Criterion 1
- [ ] Criterion 2
- [ ] Criterion 3
Regression Evals
Ensure changes don't break existing functionality:
[REGRESSION EVAL: feature-name]
Baseline: SHA or checkpoint
Tests:
- existing-test-1: PASS/FAIL
- existing-test-2: PASS/FAIL
Result: X/Y passed
Grader Types
| Type | When | How |
|---|---|---|
| Code grader | Deterministic checks | <test-command> && echo PASS |
| Rule grader | Regex/schema constraints | Pattern matching |
| Model grader | Open-ended quality | LLM-as-judge rubric |
| Human grader | Ambiguous outputs | Manual review |
pass@k Metrics
- pass@1: First attempt success rate
- pass@3: Success within 3 attempts (practical reliability)
- pass^3: All 3 trials succeed (stability test)
Thresholds
- Capability evals: pass@3 >= 90%
- Regression evals: pass^3 = 100% for release-critical paths
Workflow
1. Define (Before Coding)
## EVAL: add-authentication
Capability Evals:
- [ ] User can register with email/password
- [ ] Invalid credentials rejected
- [ ] Sessions persist across reloads
Regression Evals:
- [ ] Public routes still accessible
- [ ] API responses unchanged
Success: pass@3 > 90%, regression pass^3 = 100%
2. Implement
Write code to pass defined evals.
3. Evaluate
Run evals, record PASS/FAIL.
4. Report
EVAL REPORT: add-authentication
Capability: 3/3 passed (pass@3: 100%)
Regression: 3/3 passed (pass^3: 100%)
Status: SHIP IT
Anti-Patterns
- Overfitting prompts to known eval examples
- Measuring only happy-path outputs
- Ignoring cost/latency while chasing pass rates
- Allowing flaky graders in release gates
Best Practices
- Define evals BEFORE coding
- Run evals frequently
- Track pass@k over time
- Use code graders when possible (deterministic > probabilistic)
- Human review for security (never fully automate)
- Keep evals fast
- Version evals with code
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
e2e-testing
Playwright E2E testing — Page Object Model, configuration, flaky test strategies, and CI/CD integration. Use when writing, debugging, or configuring E2E tests.
brainstorming
Collaborative refinement of rough ideas into clear requirements/designs through systematic questioning. Use when requirements are vague or exploring architectural options.
agentic-engineering
Operate as an agentic engineer — eval-first execution, task decomposition, cost-aware model routing (Haiku/Sonnet/Opus). Use when setting up AI-assisted workflows or optimizing model routing.
test-driven-development
Strict RED-GREEN-REFACTOR enforcement with no exceptions. Use when implementing features or fixing bugs. No production code without a failing test first.
api-design
REST API design patterns — resource naming, status codes, pagination, filtering, error responses, versioning, and rate limiting. Use when designing, reviewing, or documenting API endpoints.
spec-driven-planning
MANDATORY planning — creates specs in docx/features/ with EARS requirements and technical design. MUST activate instead of ad-hoc planning for any new feature.
Didn't find tool you were looking for?