drvoss/everything-copilot-cli/eval-harness

Claude Code and agent skill by drvoss/everything-copilot-cli

Trust tier 2
  • community
Source check pending

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

SKILL.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-harnessUse
Spot-check one interactionanswer directly
Standard software unit tests (no LLM output)tdd-workflow skill
Formal red-team safety evaluationsecurity team involvement required

Eval Directory Layout

text
.evals/
<harness-name>/
config.json # harness metadata
cases/ # individual test cases
01_basic.json
02_edge_case.json
rubrics/ # scoring rubrics
accuracy.md
format.md
results/ # run results (auto-generated)
2024-01-15_run001.json

Workflow

1. Define the eval scope
text
What pipeline or feature are you evaluating?
What does "good" output look like?
What are the critical failure modes?
2. Write test cases

Minimum viable test suite structure:

Test typeMinimum count
Happy path (well-formed inputs)5
Edge cases (unusual but valid)3
Near-miss (close to but not in scope)3
Adversarial / jailbreak attempts2

Each test case file:

json
{
"id": "tc_01",
"name": "Basic summarization accuracy",
"kind": "execution",
"input": "Summarize this article: [article text]",
"expected_output": {
"contains": ["main topic", "key insight"],
"excludes": ["hallucinated fact"],
"format": "3-5 sentences"
},
"rubric": "accuracy + format",
"tags": ["happy-path", "summarization"]
}
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.

kindUse whenEvidence requirement
executionThe case can be checked against a real reproducible runBack 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.
dialogueThe case requires human judgment across a conversation or other inherently reviewed interactionTreat 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 execution whenever reproducible evidence can exist
  • Use dialogue only when the important signal is inherently conversational or judgment-heavy
  • There is no trust_level: provisional state — 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 typeUse for
exact_matchclassification, routing, label extraction
contains_allstructured output with required fields
semantic_similarityopen-ended generation; threshold 0.80
human_reviewsubjective quality, creativity
format_checkJSON schema, Markdown structure, length
multimodal_rubricimages, 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 typeScore dimensionsTypical evidence
Image or screenshotvisual correctness, missing elements, safety, readabilityreferenced artifact plus a short judge explanation
Diagramsemantic accuracy, completeness, structure, label clarityrendered diagram or exported source
Code execution resultcorrectness, determinism, error handling, side effectslogs, exit status, snapshots, or produced files
Structured file (JSON, CSV, YAML)schema validity, field completeness, value plausibilityvalidator 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_review instead of pretending the rubric is objective
4. Track runs in SQL
sql
-- Create eval tracking tables
CREATE TABLE IF NOT EXISTS eval_runs (
run_id TEXT PRIMARY KEY,
harness_name TEXT,
timestamp TEXT,
total INTEGER,
passed INTEGER,
failed INTEGER,
notes TEXT
);
CREATE TABLE IF NOT EXISTS eval_results (
run_id TEXT,
case_id TEXT,
status TEXT, -- pass | fail | skip
score REAL,
notes TEXT,
PRIMARY KEY (run_id, case_id)
);
5. Run and record

For each test case:

  1. Submit input to the pipeline
  2. Compare output to rubric
  3. Record pass / fail and score
  4. Flag regressions (previously passing tests now failing)

After all cases:

sql
INSERT INTO eval_runs VALUES ('run_001', 'summarizer', '2024-01-15', 10, 8, 2, 'Baseline run');
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

json
{
"name": "summarizer-v2",
"version": "1.0",
"description": "Evaluates summarization quality for the article pipeline",
"rubrics": ["accuracy", "format"],
"thresholds": {
"pass_rate": 0.80,
"semantic_similarity": 0.80
},
"tags": ["summarization", "nlp"]
}

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.

RoleRecommendationWhy
Workerfaster, cheaper modelgenerate candidate outputs at scale
Judgestronger, more reliable modelscore 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
PatternUse for
Single-output scoringOne answer scored 1-5 against a rubric
Pairwise comparisonPicking the better output between two candidates
Rubric-based gradingMulti-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:

text
You are grading an AI response.
Rubric:
1. Accuracy (0-5)
2. Completeness (0-5)
3. Format compliance (0-5)
Return JSON:
{
"accuracy": number,
"completeness": number,
"format": number,
"verdict": "pass" | "fail",
"reason": "short explanation"
}
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:

  1. final output quality
  2. tool-call efficiency
  3. reasoning-chain soundness
  4. resource usage (cost, time, tokens)

Example rubric:

RatingMeaning
OPTIMALcorrect outcome with an efficient path
ACCEPTABLEcorrect outcome, but inefficient or noisy path
INCORRECTwrong answer or failed completion
UNSAFEviolated 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.

  1. Onboard a golden baseline — capture a known-good run's outputs as the reference baseline

before making any change.

  1. Run each case N times (3-5 is a reasonable default) against both the baseline and the

candidate.

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

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

sql
CREATE TABLE IF NOT EXISTS stability_runs (
case_id TEXT,
variant TEXT, -- baseline | candidate
run_number INTEGER,
status TEXT, -- pass | fail
PRIMARY KEY (case_id, variant, run_number)
);

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/drvoss/everything-copilot-cli/eval-harness/badge)](https://verified-skill.com/skills/drvoss/everything-copilot-cli/eval-harness)

Something wrong with this skill or its page? Tell us.