drvoss/everything-copilot-cli/eval-harness
Claude Code and agent skill by drvoss/everything-copilot-cli
- community
Checking that the SKILL.md file is still in the repository.
Use when you need to evaluate an LLM pipeline or AI feature systematically — sets up an eval harness with test cases, scoring rubrics, and pass/fail tracking rather than one-off manual spot-checks
Install
npx vskill@latest install drvoss/everything-copilot-cli/eval-harnessSKILL.md
The same SKILL.md was published earlier as drvoss/everything-copilot-cli/eval-harness.
Eval Harness
Build a reproducible evaluation harness for LLM pipelines, AI features, or agent workflows. The harness consists of:
- Eval definitions — test cases with inputs, expected outputs, and scoring rubrics
- Runner — executes the pipeline against all test cases
- Scorer — applies rubrics and records results
- Tracker — maintains pass/fail history across runs (via SQL session DB)
When to Use
- Building a new LLM-powered feature and want regressions caught automatically
- Changing prompts and want to confirm no quality degradation
- Demonstrating quality evidence for a shipped AI pipeline
- Setting a quality gate for a CI/CD pipeline
When NOT to Use
| Instead of eval-harness | Use | |
|---|---|---|
| Spot-check one interaction | answer directly | |
| Standard software unit tests (no LLM output) | tdd-workflow skill | |
| Formal red-team safety evaluation | security team involvement required |
Eval Directory Layout
Workflow
1. Define the eval scope
2. Write test cases
Minimum viable test suite structure:
| Test type | Minimum count | |
|---|---|---|
| Happy path (well-formed inputs) | 5 | |
| Edge cases (unusual but valid) | 3 | |
| Near-miss (close to but not in scope) | 3 | |
| Adversarial / jailbreak attempts | 2 |
Each test case file:
2-A. Declare eval kind and evidence
Every eval case should declare a kind field so the harness knows whether the evidence is reproducible by execution or intentionally routed through human judgment.
kind | Use when | Evidence requirement | |
|---|---|---|---|
execution | The case can be checked against a real reproducible run | Back it with reproducible real input or an equivalent fixed piece of evidence. A static file fixture is one valid option when applicable, but a recorded API transcript, deterministic tool-call replay, or pinned test-environment snapshot also qualifies. If another evaluator cannot rerun or inspect the same evidence, the case is not execution-ready. | |
dialogue | The case requires human judgment across a conversation or other inherently reviewed interaction | Treat this as an explicit human-approved exception category. Document the review rubric and who performs the judgment. It is not a softer trust lane and not a hedge for cases that should have been made reproducible. |
Rules:
- Default to
executionwhenever reproducible evidence can exist - Use
dialogueonly when the important signal is inherently conversational or judgment-heavy - There is no
trust_level: provisionalstate — either provide reproducible evidence for an
execution eval or mark it dialogue and require human review
3. Define scoring rubrics
Rubric types (choose appropriate ones):
| Rubric type | Use for | |
|---|---|---|
exact_match | classification, routing, label extraction | |
contains_all | structured output with required fields | |
semantic_similarity | open-ended generation; threshold 0.80 | |
human_review | subjective quality, creativity | |
format_check | JSON schema, Markdown structure, length | |
multimodal_rubric | images, diagrams, code execution artifacts, or other non-text outputs |
3-A. Design multimodal rubrics for non-text outputs
When the system produces more than plain text, grade the artifact type directly instead of forcing it into a text-only rubric.
| Output type | Score dimensions | Typical evidence | |
|---|---|---|---|
| Image or screenshot | visual correctness, missing elements, safety, readability | referenced artifact plus a short judge explanation | |
| Diagram | semantic accuracy, completeness, structure, label clarity | rendered diagram or exported source | |
| Code execution result | correctness, determinism, error handling, side effects | logs, exit status, snapshots, or produced files | |
| Structured file (JSON, CSV, YAML) | schema validity, field completeness, value plausibility | validator output plus sampled rows |
Guidelines:
- store or reference the artifact being graded so the judge can inspect the actual output, not a lossy paraphrase
- define one rubric per artifact type with explicit pass/fail thresholds
- score safety and policy compliance separately from usefulness when the artifact could be harmful even if technically correct
- if the output cannot be judged reliably by automation, mark it
human_reviewinstead of pretending the rubric is objective
4. Track runs in SQL
5. Run and record
For each test case:
- Submit input to the pipeline
- Compare output to rubric
- Record
pass/failand score - Flag regressions (previously passing tests now failing)
After all cases:
6. Analyze and act
Interpret results:
- < 60% pass rate → pipeline needs rework before shipping
- 60–80% → document known failures, consider mitigations
- 80–95% → acceptable for beta / early access
- > 95% → confidence for general availability
On regression (previously passing, now failing):
- Compare pipeline changes since last green run
- Identify if the test case itself needs updating or if the regression is real
Config Schema
LLM-as-Judge Evaluation (Advanced)
When exact-match scoring is too rigid but manual review is too slow, use an LLM judge with an explicit rubric.
Judge / Worker model separation
Do not use the same model for both generation and evaluation when you can avoid it.
| Role | Recommendation | Why | |
|---|---|---|---|
| Worker | faster, cheaper model | generate candidate outputs at scale | |
| Judge | stronger, more reliable model | score quality with less self-consistency bias |
Copilot CLI tip: When practical, run the Worker and Judge on different model families or providers so one model's bias does not dominate both generation and evaluation, using /model or per-agent model overrides when the workflow allows it. This reduces self-grading bias and keeps cost down.
Common judge patterns
| Pattern | Use for | |
|---|---|---|
| Single-output scoring | One answer scored 1-5 against a rubric | |
| Pairwise comparison | Picking the better output between two candidates | |
| Rubric-based grading | Multi-criteria scoring for accuracy, completeness, format, or tone |
Judge prompt structure
Always include:
- The scoring rubric and score scale
- A clear instruction to explain why the score was assigned
- Good and bad examples when available
- Output-order randomization for pairwise evaluation to reduce position bias
Example:
Guardrails
- Keep a small human-reviewed calibration set
- Reuse the same judge prompt across comparable runs
- Treat judge scores as evidence, not ground truth
- If a judge verdict is surprising, sample manual review before acting on it
Trajectory Evaluation
For agent workflows, do not score only the final answer. Score the path taken as well.
Trajectory dimensions:
- final output quality
- tool-call efficiency
- reasoning-chain soundness
- resource usage (cost, time, tokens)
Example rubric:
| Rating | Meaning | |
|---|---|---|
| OPTIMAL | correct outcome with an efficient path | |
| ACCEPTABLE | correct outcome, but inefficient or noisy path | |
| INCORRECT | wrong answer or failed completion | |
| UNSAFE | violated guardrails or produced harmful behavior |
Use trajectory evaluation when the workflow itself matters — especially multi-step agent systems, tool-using assistants, or retry-heavy pipelines.
Multi-run stability and verdict-flip attribution
A single run can pass by luck. For pipelines with any non-determinism (temperature > 0, tool retries, model-side randomness), run each case multiple times and treat instability itself as a failure signal, not just the individual pass/fail outcomes.
- Onboard a golden baseline — capture a known-good run's outputs as the reference baseline
before making any change.
- Run each case N times (3-5 is a reasonable default) against both the baseline and the
candidate.
- Detect verdict flips — a case that passes on some runs and fails on others against the
same candidate is unstable regardless of its average pass rate. Flag it separately from a case that consistently fails.
- Attribute the flip — before treating a verdict flip as a regression, check whether it
traces to the candidate change itself or to pre-existing non-determinism the baseline already had. Compare flip rate on the baseline (should be near zero) against flip rate on the candidate; a candidate-only increase in flip rate is the real signal.
A case with a high verdict-flip rate should block a ship decision even if its average pass rate looks acceptable — instability is itself the defect.
Size the eval so it can return a verdict
Repeated runs measure reliability; they do not add evidence. Five runs of one case are still one case. When comparing a candidate against a baseline, give each distinct case one vote (its majority direction across runs). A case is eligible when both variants run it and the rubric can score it — cases meant to check that the skill stays inactive do not count. Require at least five eligible distinct cases before the gate can return pass or fail; with fewer, report underpowered — never a pass and never a regression. Keep ties in the record: a tie is not a win, and because it leaves fewer decisive votes, it makes a win harder to claim. Do not drop ties to make the result look cleaner. Adapted from the eval sizing rules in dotnet/skills CONTRIBUTING.md (MIT).
Trajectory argument matching
When a trajectory check depends on tool inputs, compare normalized arguments rather than raw payloads when possible.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/testing/eval-harness/SKILL.md
Popularity
- Repository stars
- 41
- Repository forks
- 9
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/drvoss/everything-copilot-cli/eval-harness)