/major-ai-skills:ai-evaluation-datasetfrom major-ai-skills
Build versioned JSONL evaluation datasets for AI workflows with golden/regression/holdout layers, leakage checks, rubrics, and provenance hashes. Use when creating or revising eval sets before comparing models, prompts, or RAG configs.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
An evaluation dataset is a governed test artifact, not a bag of questions. Scores are only comparable when every run pins an immutable dataset revision, a system fingerprint (prompt/model/tools/retriever), and a judge/scorer fingerprint. Most “the new prompt is better” claims are dataset drift, label edits, or train/eval leakage in disguise.
Claude operates as a Principal AI Evaluation Engineer, specializing in three-layer dataset design (golden / regression / production-holdout), group-aware splits, rubric-first labeling, contamination checks, and bridge reports when labels change.
┌─────────────────────────────────────────────────────────────┐
│ Evaluation Dataset Stack │
│ │
│ Layers (version independently) │
│ ├── golden/ 30–100 hand-verified canonical cases │
│ ├── regression/ 200–500 known failures + edge coverage │
│ └── holdout/ rolling production sample (drift) │
│ │
│ Case record │
│ ├── id, input, expected_behavior, forbidden_behavior │
│ ├── rubric / assertions, gold evidence (source+offsets) │
│ └── tags, split, provenance, ACL, created_at │
│ │
│ Run binding │
│ ├── dataset_version + content_hash │
│ ├── system_hash (prompt/model/retriever/tools) │
│ └── judge_hash (rubric/LLM-judge/deterministic scorers) │
└─────────────────────────────────────────────────────────────┘
Use when
Do not use when
@ai-pii-redaction-review).manifest.json as below.vN; never mutate a shipped file in place.| Layer | Size (start) | Purpose | Change cadence |
|---|---|---|---|
| Golden | 30–100 | Hand-trusted gate for releases | Rare, reviewed |
| Regression | 200–500 | Past bugs, edges, adversarial | Add on every incident |
| Holdout / drift | rolling sample | Catch product/user shift | Refresh on schedule |
Recommended intent mix for product evals (adjust to traffic):
For RAG specifically, include: direct lookup, paraphrase, multi-hop, constraint (“latest”, plan-tier), distractor-heavy, stale-vs-current conflict, and explicit unanswerable cases (catch hallucination instead of “I don’t know”).
One object per line. Prefer source + character/page offsets for evidence so chunk-size changes do not force full relabeling.
{
"id": "eval-0042",
"split": "golden",
"task": "support_rag",
"input": {
"query": "What is the refund window for enterprise?",
"locale": "en-US",
"user_acl": ["tenant:acme", "plan:enterprise"]
},
"expected_behavior": {
"answerable": true,
"must_include_facts": ["30 days from invoice", "enterprise plan only"],
"preferred_answer_outline": "State 30-day window and cite policy section.",
"gold_evidence": [
{"source_id": "policy/refunds.md", "content_hash": "sha256:…", "start": 1204, "end": 1388}
],
"gold_chunk_ids_optional": ["c-881"]
},
"forbidden_behavior": {
"must_not": ["invent a different window", "cite consumer-plan policy", "bypass ACL"]
},
"assertions": [
{"type": "json_schema", "ref": "schemas/support_answer.schema.json"},
{"type": "citation_resolves_to_retrieved"},
{"type": "regex_forbid", "pattern": "(?i)90\\s*days"}
],
"rubric": {
"dimensions": [
{"name": "correctness", "weight": 0.4, "scale": "0-2"},
{"name": "groundedness", "weight": 0.4, "scale": "0-2"},
{"name": "abstention", "weight": 0.2, "scale": "0-2"}
],
"pass_rule": "correctness>=1 AND groundedness>=1 AND no forbidden_behavior"
},
"tags": ["refunds", "enterprise", "constraint", "difficulty:medium"],
"provenance": {
"source": "prod_ticket:T-9182",
"created_at": "2026-10-01",
"annotator": "human:ali",
"label_status": "adjudicated"
}
}
evals/data/v3/manifest.json){
"dataset_version": "v3",
"created_at": "2026-10-05",
"description": "Added unanswerable refund edge cases; fixed gold span on eval-0017",
"files": ["golden.jsonl", "regression.jsonl"],
"case_count": 128,
"content_hash": "sha256:REPLACE_AFTER_FREEZE",
"changelog": ["v2→v3: 4 added, 1 revised, 0 removed"],
"corpus_hash_optional": "sha256:…",
"split_policy": "group_by:source_id|ticket_id; paraphrases_co_located"
}
Pin production/CI with DATASET_VERSION=v3 and store content_hash on every result row.
Collect: task definition, user population, known failure modes, severity classes (e.g. P0 = wrong medical/legal/money advice), and whether retrieval, tools, or pure generation are in path.
expected_behavior and forbidden_behavior with observable criteria (facts, schema, citations), not a single preferred sentence.@rag-retrieval-audit).split by originating document/user/conversation.golden or all dev, never mixed into holdout).evals/data/vN/*.jsonl + manifest."""Dataset freeze utilities: content hash + paraphrase co-location check."""
from __future__ import annotations
import hashlib
import json
from collections import defaultdict
from pathlib import Path
from typing import Any, Iterable
def canonical_line(obj: dict[str, Any]) -> str:
return json.dumps(obj, sort_keys=True, ensure_ascii=False, separators=(",", ":"))
def content_hash(jsonl_paths: Iterable[Path]) -> str:
h = hashlib.sha256()
for path in sorted(jsonl_paths, key=lambda p: p.as_posix()):
for line in path.read_text(encoding="utf-8").splitlines():
if not line.strip():
continue
obj = json.loads(line)
h.update(canonical_line(obj).encode("utf-8"))
h.update(b"\n")
return "sha256:" + h.hexdigest()
def assert_paraphrase_groups_colocated(rows: list[dict[str, Any]], group_key: str = "ticket_id") -> None:
"""Fail if the same originating group appears in multiple splits."""
by_group: dict[str, set[str]] = defaultdict(set)
for row in rows:
prov = row.get("provenance") or {}
gid = prov.get(group_key) or row.get("group_id")
if not gid:
continue
by_group[str(gid)].add(row["split"])
leaked = {g: sorted(splits) for g, splits in by_group.items() if len(splits) > 1}
if leaked:
raise SystemExit(f"Split leakage by {group_key}: {leaked}")
def load_jsonl(path: Path) -> list[dict[str, Any]]:
return [json.loads(line) for line in path.read_text(encoding="utf-8").splitlines() if line.strip()]
# Example:
# rows = load_jsonl(Path("evals/data/v3/golden.jsonl"))
# assert_paraphrase_groups_colocated(rows, group_key="source")
# print(content_hash([Path("evals/data/v3/golden.jsonl"), Path("evals/data/v3/regression.jsonl")]))
{
"dataset_version": "v3",
"dataset_hash": "sha256:…",
"system_hash": "sha256:…",
"judge_hash": "sha256:…",
"corpus_hash": "sha256:…",
"metrics": {"pass_rate": 0.91, "n": 128},
"per_case_path": "results/2026-10-05/per_case.jsonl"
}
For RAG, corpus_hash (index revision / embedding model / chunker) prevents false “model improved” reads when the corpus moved (corpus-provenance gap).
| Failure signature | Root cause | Fix |
|---|---|---|
| Scores jump after “small label tweak” | In-place mutation of gold | New vN + bridge on same system_hash |
| High eval, poor prod | Golden overfit / no holdout drift set | Add rolling production holdout |
| Synthetic-only set looks easy | Questions paraphrase source wording | Prefer log-derived queries; hand-write messy phrasings |
| Judge disagrees with humans | Uncalibrated LLM judge | 50–100 human labels; κ before scale-out |
| Retrieval labels break after rechunk | Labeled chunk IDs only | Relabel with source+offsets; keep chunk IDs optional |
| Train/few-shot boosts eval oddly | Contamination / leakage | Group splits; n-gram overlap check; hidden holdout |
| “Accuracy 92%” with no run artifact | Metric theater | Refuse; require hash-bound result row |
@rag-retrieval-audit).judge_hash in results.@rag-retrieval-audit — score retrieval against gold evidence@prompt-regression-gate — run frozen dataset on prompt changes@llm-json-contract-check — structural assertions on outputs@ai-citation-verification — citation support checks@ai-pii-redaction-review — sanitize cases and traces@llm-cost-latency-benchmark — cost of running the set@ai-human-handoff-contract — escalate P0 / low-confidence casesMANDATORY: Treat eval data as immutable versioned artifacts with content hashes. Split by group; co-locate paraphrases. Label expected/forbidden behavior before viewing model outputs. Bridge when labels change. Never claim accuracy without a hash-bound evaluator run. Never include secrets or unauthorized private content.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization./act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.Other plugins' skills for the same job
2 plugins in one repository ship this exact skill · first indexed Oct 7, 2026