[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78FPXP6731FFANZXZ5S1N4Q":3,"skill-same:01M78FPXP6731FFANZXZ5S1N4Q":44},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M78FPXP6731FFANZXZ5S1N4Q","evals",null,"SeaBrad72\u002Fsparkwright","SeaBrad72","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F189294229?v=4","01M78FP39B4DE6NKHX1AJKSPFX","Bradley James","01M78FP3A2X3TW6T6GHBPB7PT3",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FSeaBrad72\u002Fsparkwright\u002Fblob\u002Fmain\u002Fskills\u002Fevals\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: evals\ndescription: Use when building or changing ANY model\u002Fprompt-dependent behavior — BEFORE writing the prompt or feature. The kit's own eval-driven-development skill (a kit-original; superpowers has no evals skill). Evals are the test suite for AI — the AI-native sibling of skills\u002Ftdd\u002FSKILL.md: write the eval first, watch the unbuilt feature miss the threshold, build to the bar. Pin an independent judge, red-team for safety, and grow the set from production misses.\n---\n\n# Evals — eval-driven development, the AI sibling of tdd\n\nThe kit's own `eval-driven` development skill: the craft of holding any model- or prompt-dependent behavior to a measured bar the same way `skills\u002Ftdd\u002FSKILL.md` holds code to a failing test. A prompt is production logic; an eval is its test. This is a **kit-original** — superpowers has no evals skill — so it *adds* the AI-native discipline the rest of the spine lacks; it does not replace anything. It POINTS AT the kit's existing eval infrastructure (the EVAL-PLAN template, `conformance\u002Freadiness.sh eval-ready`, the §7 Eval gate, the AI System Card); it does not duplicate it.\n\n\u003C!-- The frontmatter and the discipline phrases below are conformance-load-bearing:\n     conformance\u002Forchestrator-loop-wired.sh greps this file for kit-distinctive markers\n     (name: evals, eval-driven, judge, red-team, threshold).\n     Edits that drop or rename them can turn the skill-spine lock RED. -->\n\n## When to use\nBEFORE building or changing **any behavior that depends on a model or a prompt** — a new AI feature, a prompt edit, a model\u002Fversion swap, a RAG or tool-use change, a classifier, an agent loop. If the output is probabilistic, `tdd` is the wrong gate (a single assertion cannot pin a distribution); the eval is the right one. Write the eval first, the same way you write the failing test first. Exceptions (ask the owner): pure deterministic glue around a model that has its own evals upstream.\n\n## Evals are the test suite for AI (the `eval-driven` law)\nAny behavior that depends on a model or a prompt is held to the same bar as code. The eval set — a dataset of inputs + a rubric or judge + a scored `threshold` — IS the test suite. Eval-driven development is the AI-native sibling of `skills\u002Ftdd\u002FSKILL.md`: the failing-test-first cycle, made probabilistic.\n\n## Probabilistic red -> green (the distinctive framing vs tdd)\n1. **RED — write the eval first.** Build the dataset (representative + adversarial inputs) and the rubric\u002F`judge` BEFORE the prompt or feature exists. State the `threshold` (the pass bar) up front.\n2. **Verify RED — watch the UNBUILT feature MISS the bar.** Run it against the absent\u002Fnaive implementation and confirm it scores **below the `threshold`**. This is the non-vacuity law of `tdd` made probabilistic: **an eval the unbuilt feature already passes proves nothing** (a never-red test). Calibrate the dataset\u002Frubric until it *discriminates* — good answers score high, bad answers score low.\n3. **GREEN — build the prompt\u002Ffeature to the bar.** Iterate the prompt\u002Fsystem until the score meets the `threshold`.\n4. **\"Green\" is a `threshold`, NOT 0 failures.** Unlike a unit test, green means **score ≥ bar** and **no tracked metric drops > N pts vs the pinned baseline** — never \"every case passed\". A probabilistic system has a failure rate by nature; the bar governs it.\n5. **REFACTOR — tighten the bar as the feature matures**; raise the `threshold` and add cases, never lower it silently.\n\n## Pin the `judge` + judge-independence\n- **Pin the system under test.** Record the SUT model + version; an unpinned model means a \"regression\" might just be a silent provider update.\n- **Pin the `judge`.** Record the judge model + version + rubric so a score is reproducible.\n- **Judge-independence — no self-grading.** The `judge` model is independent of the system under test (a model grading its own output is not a measurement). For subjective rubrics, anchor the judge with few-shot exemplars and spot-check against human labels.\n\n## `red-team` \u002F safety (the security dimension — the §7 security gate for AI)\n- Maintain an adversarial `red-team` set: jailbreaks, prompt-injection payloads, harmful-output probes, bias\u002Fleakage cases. Run it BEFORE shipping, not after.\n- **AI incidents feed the `red-team` set.** Every harmful output, jailbreak, or safety miss in production becomes a permanent `red-team` case so the same failure cannot recur silently — the regression-test law of `tdd`, applied to safety.\n- This is why the **Security-reviewer** also owns this skill: the AI red-team is a load-bearing §7 security gate, not a build-time nicety.\n\n## Runtime guards COMPLEMENT evals (not either\u002For)\nDev-time evals do not remove the need for runtime defenses. Ship BOTH:\n- **Prompt-injection defense** — never let user\u002Ftool input override system instructions; treat tool output as untrusted data, not commands.\n- **Output-schema validation** — validate the model's output against a schema (and re-check authz\u002Flimits) before acting on it.\nEvals measure the behavior offline; the runtime guards contain it online.\n\n## Versioned + grows from production misses\nThe eval set is versioned WITH the code (a prompt change ships with its eval delta) and grows from production misses + retros. A declining eval score is tech debt surfaced at retro, not a number to quietly re-baseline. New failure modes become new cases.\n\n## Policy: author + wire the evals; do NOT run the live provider\nThe agent **authors and wires** the evals (dataset, rubric, `threshold`, CI hook); **running the live model is a human\u002FCI step.** The guard treats reading a live provider key into context as a speed-bump (see `docs\u002Foperations\u002Fsecrets-for-ai.md`) — that is intentional. Do not exfiltrate keys or call paid endpoints to \"just check\"; hand the wired eval to CI \u002F the human to execute, and prove the result with `skills\u002Fverification\u002FSKILL.md` (evidence before claiming the eval passed).\n\n## Chain to the kit's own eval infra + spine\n- **Plan the evals** with `templates\u002FEVAL-PLAN-TEMPLATE.md` (dataset, rubric, judge, `threshold`, baseline).\n- **Readiness** — `conformance\u002Freadiness.sh eval-ready` checks the eval scaffolding is present.\n- **The §7 Eval gate** enforces the `threshold` in CI (the real enforcement of \"green\"; this skill is the craft, the gate is the teeth).\n- **Risk \u002F classification** — `templates\u002FAI-SYSTEM-CARD-TEMPLATE.md` records the SUT, judge, and risk tier.\n- **Sibling skills** — `skills\u002Ftdd\u002FSKILL.md` (the deterministic sibling — code gets the failing test, AI gets the eval) and `skills\u002Fverification\u002FSKILL.md` (prove the eval result is real before claiming it).\n\n## Rationalizations to refuse\n| Rationalization | Why it fails |\n|---|---|\n| \"It's just a prompt tweak, no eval needed.\" | A prompt is production logic; an unevalled prompt change is an untested code change. Write the eval. |\n| \"I'll add evals after it works.\" | Evals-after pass immediately and prove nothing — you never watched the unbuilt feature MISS the `threshold`. |\n| \"It passed every case, ship it.\" | Green is a `threshold`, not 0 failures — and if every case passes the eval may be too easy to discriminate. |\n| \"The model can grade its own output.\" | Self-grading is not a measurement — pin an independent `judge`. |\n| \"We'll red-team later if there's a complaint.\" | The `red-team` set runs BEFORE shipping; an incident is a new permanent case, not the first test. |\n| \"Evals cover it; we can skip the runtime guard.\" | Evals are dev-time; prompt-injection defense + output-schema validation are runtime — ship both. |\n| \"Let me read the API key and run it to check.\" | Author + wire only; running the live provider is a human\u002FCI step (the key speed-bump is deliberate). |\n\n## Red flags (stop — you are about to skip eval-driven dev)\n- Editing a prompt \u002F swapping a model with no eval delta.\n- An eval the unbuilt\u002Fnaive feature already passes (a never-red eval — calibrate it to discriminate).\n- A `judge` that is the same model (or family) as the system under test.\n- \"Green\" reported as \"all cases passed\" instead of a `threshold` vs a pinned baseline.\n- Shipping an AI feature with no `red-team` set, or with no runtime prompt-injection \u002F output-schema guard.\n- Reaching for a live provider key to run the eval yourself instead of handing it to CI \u002F the human.\n\n## Terminal state\nThe behavior has a versioned eval set written FIRST (it was watched missing the `threshold` before the feature existed), an independent pinned `judge`, a `red-team` safety set, and runtime guards; \"green\" is the `threshold` enforced by the §7 Eval gate in CI, not a 0-failure claim; the result was proven via `skills\u002Fverification\u002FSKILL.md`, and every production miss becomes a new case. Never ship a model\u002Fprompt change without an eval that could fail.\n","# Evals — eval-driven development, the AI sibling of tdd\n\nThe kit's own `eval-driven` development skill: the craft of holding any model- or prompt-dependent behavior to a measured bar the same way `skills\u002Ftdd\u002FSKILL.md` holds code to a failing test. A prompt is production logic; an eval is its test. This is a **kit-original** — superpowers has no evals skill — so it *adds* the AI-native discipline the rest of the spine lacks; it does not replace anything. It POINTS AT the kit's existing eval infrastructure (the EVAL-PLAN template, `conformance\u002Freadiness.sh eval-ready`, the §7 Eval gate, the AI System Card); it does not duplicate it.\n\n\u003C!-- The frontmatter and the discipline phrases below are conformance-load-bearing:\n     conformance\u002Forchestrator-loop-wired.sh greps this file for kit-distinctive markers\n     (name: evals, eval-driven, judge, red-team, threshold).\n     Edits that drop or rename them can turn the skill-spine lock RED. -->\n\n## When to use\nBEFORE building or changing **any behavior that depends on a model or a prompt** — a new AI feature, a prompt edit, a model\u002Fversion swap, a RAG or tool-use change, a classifier, an agent loop. If the output is probabilistic, `tdd` is the wrong gate (a single assertion cannot pin a distribution); the eval is the right one. Write the eval first, the same way you write the failing test first. Exceptions (ask the owner): pure deterministic glue around a model that has its own evals upstream.\n\n## Evals are the test suite for AI (the `eval-driven` law)\nAny behavior that depends on a model or a prompt is held to the same bar as code. The eval set — a dataset of inputs + a rubric or judge + a scored `threshold` — IS the test suite. Eval-driven development is the AI-native sibling of `skills\u002Ftdd\u002FSKILL.md`: the failing-test-first cycle, made probabilistic.\n\n## Probabilistic red -> green (the distinctive framing vs tdd)\n1. **RED — write the eval first.** Build the dataset (representative + adversarial inputs) and the rubric\u002F`judge` BEFORE the prompt or feature exists. State the `threshold` (the pass bar) up front.\n2. **Verify RED — watch the UNBUILT feature MISS the bar.** Run it against the absent\u002Fnaive implementation and confirm it scores **below the `threshold`**. This is the non-vacuity law of `tdd` made probabilistic: **an eval the unbuilt feature already passes proves nothing** (a never-red test). Calibrate the dataset\u002Frubric until it *discriminates* — good answers score high, bad answers score low.\n3. **GREEN — build the prompt\u002Ffeature to the bar.** Iterate the prompt\u002Fsystem until the score meets the `threshold`.\n4. **\"Green\" is a `threshold`, NOT 0 failures.** Unlike a unit test, green means **score ≥ bar** and **no tracked metric drops > N pts vs the pinned baseline** — never \"every case passed\". A probabilistic system has a failure rate by nature; the bar governs it.\n5. **REFACTOR — tighten the bar as the feature matures**; raise the `threshold` and add cases, never lower it silently.\n\n## Pin the `judge` + judge-independence\n- **Pin the system under test.** Record the SUT model + version; an unpinned model means a \"regression\" might just be a silent provider update.\n- **Pin the `judge`.** Record the judge model + version + rubric so a score is reproducible.\n- **Judge-independence — no self-grading.** The `judge` model is independent of the system under test (a model grading its own output is not a measurement). For subjective rubrics, anchor the judge with few-shot exemplars and spot-check against human labels.\n\n## `red-team` \u002F safety (the security dimension — the §7 security gate for AI)\n- Maintain an adversarial `red-team` set: jailbreaks, prompt-injection payloads, harmful-output probes, bias\u002Fleakage cases. Run it BEFORE shipping, not after.\n- **AI incidents feed the `red-team` set.** Every harmful output, jailbreak, or safety miss in production becomes a permanent `red-team` case so the same failure cannot recur silently — the regression-test law of `tdd`, applied to safety.\n- This is why the **Security-reviewer** also owns this skill: the AI red-team is a load-bearing §7 security gate, not a build-time nicety.\n\n## Runtime guards COMPLEMENT evals (not either\u002For)\nDev-time evals do not remove the need for runtime defenses. Ship BOTH:\n- **Prompt-injection defense** — never let user\u002Ftool input override system instructions; treat tool output as untrusted data, not commands.\n- **Output-schema validation** — validate the model's output against a schema (and re-check authz\u002Flimits) before acting on it.\nEvals measure the behavior offline; the runtime guards contain it online.\n\n## Versioned + grows from production misses\nThe eval set is versioned WITH the code (a prompt change ships with its eval delta) and grows from production misses + retros. A declining eval score is tech debt surfaced at retro, not a number to quietly re-baseline. New failure modes become new cases.\n\n## Policy: author + wire the evals; do NOT run the live provider\nThe agent **authors and wires** the evals (dataset, rubric, `threshold`, CI hook); **running the live model is a human\u002FCI step.** The guard treats reading a live provider key into context as a speed-bump (see `docs\u002Foperations\u002Fsecrets-for-ai.md`) — that is intentional. Do not exfiltrate keys or call paid endpoints to \"just check\"; hand the wired eval to CI \u002F the human to execute, and prove the result with `skills\u002Fverification\u002FSKILL.md` (evidence before claiming the eval passed).\n\n## Chain to the kit's own eval infra + spine\n- **Plan the evals** with `templates\u002FEVAL-PLAN-TEMPLATE.md` (dataset, rubric, judge, `threshold`, baseline).\n- **Readiness** — `conformance\u002Freadiness.sh eval-ready` checks the eval scaffolding is present.\n- **The §7 Eval gate** enforces the `threshold` in CI (the real enforcement of \"green\"; this skill is the craft, the gate is the teeth).\n- **Risk \u002F classification** — `templates\u002FAI-SYSTEM-CARD-TEMPLATE.md` records the SUT, judge, and risk tier.\n- **Sibling skills** — `skills\u002Ftdd\u002FSKILL.md` (the deterministic sibling — code gets the failing test, AI gets the eval) and `skills\u002Fverification\u002FSKILL.md` (prove the eval result is real before claiming it).\n\n## Rationalizations to refuse\n| Rationalization | Why it fails |\n|---|---|\n| \"It's just a prompt tweak, no eval needed.\" | A prompt is production logic; an unevalled prompt change is an untested code change. Write the eval. |\n| \"I'll add evals after it works.\" | Evals-after pass immediately and prove nothing — you never watched the unbuilt feature MISS the `threshold`. |\n| \"It passed every case, ship it.\" | Green is a `threshold`, not 0 failures — and if every case passes the eval may be too easy to discriminate. |\n| \"The model can grade its own output.\" | Self-grading is not a measurement — pin an independent `judge`. |\n| \"We'll red-team later if there's a complaint.\" | The `red-team` set runs BEFORE shipping; an incident is a new permanent case, not the first test. |\n| \"Evals cover it; we can skip the runtime guard.\" | Evals are dev-time; prompt-injection defense + output-schema validation are runtime — ship both. |\n| \"Let me read the API key and run it to check.\" | Author + wire only; running the live provider is a human\u002FCI step (the key speed-bump is deliberate). |\n\n## Red flags (stop — you are about to skip eval-driven dev)\n- Editing a prompt \u002F swapping a model with no eval delta.\n- An eval the unbuilt\u002Fnaive feature already passes (a never-red eval — calibrate it to discriminate).\n- A `judge` that is the same model (or family) as the system under test.\n- \"Green\" reported as \"all cases passed\" instead of a `threshold` vs a pinned baseline.\n- Shipping an AI feature with no `red-team` set, or with no runtime prompt-injection \u002F output-schema guard.\n- Reaching for a live provider key to run the eval yourself instead of handing it to CI \u002F the human.\n\n## Terminal state\nThe behavior has a versioned eval set written FIRST (it was watched missing the `threshold` before the feature existed), an independent pinned `judge`, a `red-team` safety set, and runtime guards; \"green\" is the `threshold` enforced by the §7 Eval gate in CI, not a 0-failure claim; the result was proven via `skills\u002Fverification\u002FSKILL.md`, and every production miss becomes a new case. Never ship a model\u002Fprompt change without an eval that could fail.\n",{},"main","46ed464a0bfe79d18251e771dd0fc9e1e89fe43f","skills\u002Fevals",0,"https:\u002F\u002Fgithub.com\u002FSeaBrad72\u002Fsparkwright","https:\u002F\u002Fgithub.com\u002FSeaBrad72","2026-11-15 04:00:12",{"source":7,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add SeaBrad72\u002Fsparkwright --skill evals",{"tool":36,"command":37},"bunx","bunx skills add SeaBrad72\u002Fsparkwright --skill evals",{"tool":39,"command":40},"pnpm","pnpm dlx skills add SeaBrad72\u002Fsparkwright --skill evals","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSeaBrad72\u002Fsparkwright\u002Fblob\u002Fmain\u002Fskills\u002Fevals\u002FSKILL.md",true,[],[45,52,59,65,72,79],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M7DZCWVTK18C484JQPMN4NAZ","inception-from-code","Use when adopting the kit into an EXISTING repository (brownfield), to draft the Inception artifacts from the code instead of from blank templates. The agent reads the repository and writes five drafts, only under docs\u002Finception-draft\u002F, each tagged by how each fact is known; a person reviews them and moves what is right into place. Agents propose, humans ratify.","https:\u002F\u002Fgithub.com\u002FSeaBrad72\u002Fsparkwright\u002Fblob\u002Fmain\u002Fskills\u002Finception-from-code\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M78FQSZRGQH2D4RCKCH9594N","worktrees","Use BEFORE fanning out parallel Engineers or starting isolated feature work — the kit's own isolation skill (replaces, does not depend on, superpowers using-git-worktrees). The isolation craft, wired to the Orchestrator seat — detect-existing-first, native tools first, the kit's disjoint-set parallel-safety rule, and conflict-safe integration.","https:\u002F\u002Fgithub.com\u002FSeaBrad72\u002Fsparkwright\u002Fblob\u002Fmain\u002Fskills\u002Fworktrees\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M78FQQXX2CYGF8V0GVG35TTB","verification","https:\u002F\u002Fgithub.com\u002FSeaBrad72\u002Fsparkwright\u002Fblob\u002Fmain\u002Fskills\u002Fverification\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M78FQK7Y0JVS2V77S8SEBD29","using-skills","Use at the START of any task, before any response or action — the kit's own discovery keystone (replaces, does not depend on, superpowers using-superpowers). How the kit's skills are found and invoked (invoke by reading), the discipline of checking for a relevant skill before acting, instruction priority, and the index of the kit's own spine skills.","https:\u002F\u002Fgithub.com\u002FSeaBrad72\u002Fsparkwright\u002Fblob\u002Fmain\u002Fskills\u002Fusing-skills\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M78FQEA5ATPZDYN780F4VGQD","tdd","Use when implementing any feature, bug fix, refactor, or behaviour change — BEFORE writing production code. The kit's own test-driven-development skill (replaces, does not depend on, superpowers test-driven-development). Red-green-refactor framed as the kit's non-vacuity law, plus coverage, testing-pyramid, and AI-eval disciplines.","https:\u002F\u002Fgithub.com\u002FSeaBrad72\u002Fsparkwright\u002Fblob\u002Fmain\u002Fskills\u002Ftdd\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M78FQADNX9RZQ63C7WG7HPZH","review","https:\u002F\u002Fgithub.com\u002FSeaBrad72\u002Fsparkwright\u002Fblob\u002Fmain\u002Fskills\u002Freview\u002FSKILL.md",[],[]]