[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78AMPHRRBXGJSM4BVFHG05W":3,"skill-same:01M78AMPHRRBXGJSM4BVFHG05W":110},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"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":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":54,"ownerHtmlUrl":55,"ownerBlogUrl":6,"ownerDescription":56,"updatedAt":57,"install":58,"resources":71},"01M78AMPHRRBXGJSM4BVFHG05W","test-evals",null,"Use when writing tests or verifying behavior before code lands — the stage that writes the plan's tests and runs them RED before build; TDD red-green-refactor, the iron law (no production code without a failing test first), seam-first public-interface tests, test sizes, mock discipline. Or when the user says \"TDD N loops each batch Opus loop\", \"batch properly, Opus on each batch before commit\", \"implement, use TDD\", or wants multi-feature TDD with per-batch Opus review before commit. Supports both Hermes-builds and Cursor-builds. Covers pre-commit five-axis review, severity labels, and verifying external review findings before fixing.","moonlight-lupin\u002Fagent-skills","moonlight-lupin","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F136997773?v=4","01M78AEDSH1N62R0RNWPWMWVQY","01M78AEDT8ZF85MTK6XYBQBTNT",123,"MIT","https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdev-pipeline\u002Fskills\u002Ftest-evals\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: test-evals\ndescription: \"Use when writing tests or verifying behavior before code lands — the stage that writes the plan's tests and runs them RED before build; TDD red-green-refactor, the iron law (no production code without a failing test first), seam-first public-interface tests, test sizes, mock discipline. Or when the user says \\\"TDD N loops each batch Opus loop\\\", \\\"batch properly, Opus on each batch before commit\\\", \\\"implement, use TDD\\\", or wants multi-feature TDD with per-batch Opus review before commit. Supports both Hermes-builds and Cursor-builds. Covers pre-commit five-axis review, severity labels, and verifying external review findings before fixing.\"\nmetadata:\n  version: 2.0.0\n  author: moonlight-lupin\n  license: MIT\n  platforms: [linux, macos, windows]\n  hermes:\n    tags: [tdd, testing, red-green-refactor, seams, test-sizes, mocks, batched-tdd, opus-review, pre-commit-review, severity-labels, test-evals]\n    related_skills: [build, spec, review-commit, skill-quality-review, model-routing, doubt-driven-development, hermes-agent-skill-authoring]\n---\n\n# Test Evals\n\n## Overview\n\nThe test-and-evaluation stage of the dev-pipeline: how behavior is pinned\nbefore it ships. Test-driven development is the core discipline; the batched\nmulti-feature TDD loop with a per-batch Opus review, the pre-commit\nverification pipeline, and external-review-finding verification hang off it.\n\n**Core principle:** If you didn't watch the test fail, you don't know if it tests the right thing.\n\n**Tests verify behavior through public interfaces.** A bad test is one that\nbreaks on a refactor without a behavior change.\n\n## This stage owns the tests\n\nIn the pipeline, the plan names each task's test cases (behavior, seam,\nexpected value and where it comes from). This stage turns them into real\ntests, runs each one to a failure for the right reason, and attests the files\n(`review-commit\u002Fscripts\u002Fattest_file.py attest`) so the build can't quietly\nrewrite them. The `build` implementer makes them GREEN; it adds a test only\nfor behavior the plan missed, and says so. Output of this stage: the test\nfiles, a RED run log, and one line per test naming the seam note it pins.\n\n## When to Use\n\n- User says \"TDD N loops each batch Opus loop\" or \"batch properly, Opus on each batch before commit\"\n- User says \"implement, use TDD\" or \"TDD, 2 loops each batch, Opus on each batch\"\n- Writing new features, bug fixes, or behavior changes that need failing tests first\n- Reviewing or sizing a change before commit (five-axis review, severity labels)\n- Verifying external review findings before fixing them\n\n**Don't use for:**\n\n- Iterative post-commit review convergence — the `review-commit` stage owns that\n- In-flight doubt about a mid-build step — that's `doubt-driven-development`\n- Judging a skill's own quality — the `skill-quality-review` efficacy rubric and\n  its Checks stay owned by that skill; this stage links to it, it does not\n  duplicate the rubric\n\n## 1. Test-Driven Development (TDD)\n\n**Core principle:** the Overview's — the one stated there is the rule this cycle enforces (see Overview; restated once, applied everywhere in this stage).\n\n### RED-GREEN-REFACTOR Cycle\n1. **RED** — Write one minimal failing test. Run it. Watch it fail for the right reason (feature missing, not typo).\n2. **GREEN** — Write simplest code to pass. Cheating is OK (hardcode, copy-paste). Run test to verify pass.\n3. **REFACTOR** — Clean up duplication, improve names, extract helpers — in code THIS cycle wrote or changed, nothing else (surgical changes, `orchestrator\u002Freferences\u002Fcoding-principles.md`). Keep tests green throughout.\n4. **Repeat** — Next test for next behavior.\n\n### Iron Law\n```\nNO PRODUCTION CODE WITHOUT A FAILING TEST FIRST\n```\nCode before test? Delete it. Start over. No \"keep as reference.\"\n\n### Common Rationalizations to Reject\n- \"Too simple to test\" → Simple code breaks too.\n- \"I'll test after\" → Tests passing immediately prove nothing.\n- \"Already manually tested\" → Ad-hoc ≠ systematic.\n- \"TDD will slow me down\" → TDD is faster than debugging.\n\n### Seam first, then size\n\nPick WHERE a test attaches before deciding how big it is (see *Seams and mock\ndiscipline* below):\n\n1. **Test at the highest seam that exists** — the public API, CLI command, MCP\n   tool, or module's public function the behavior is observed through. Fewer\n   seams are better; one is ideal.\n2. **Go lower only for logic the high seam can't reach cheaply** — dense\n   pure-logic edge cases (parsers, money math, date rules) get small tests at\n   their own public function.\n3. **Keep the slow end small** — full-system E2E runs are for the few\n   acceptance paths that need the real thing (pre-deploy smoke).\n\nThere is no target ratio of unit to integration tests. A seam test that runs\nagainst a temp DB is the right test even if that makes \"integration\" the\nmajority. (v0.1.x carried an 80\u002F15\u002F5 pyramid; it pulled against the seam\nrule and was dropped.)\n\n### Test Sizes\n\n| Size | What it touches | Speed | When to use |\n|---|---|---|---|\n| **Small** | One function, no I\u002FO, no network, no DB, no filesystem | Sub-ms | Pure logic, edge cases, regression tests |\n| **Medium** | Multiple functions or real I\u002FO (filesystem, temp DB, localhost network) | Seconds | Integration, API surface, DB roundtrip |\n| **Large** | Full system, external services, real network, multi-machine | Minutes | End-to-end acceptance, pre-deploy smoke |\n\n**Label tests by size.** If a test is slow, it should be because it's doing real integration — not because it's a unit test with accidental I\u002FO.\n\n### DAMP over DRY\n\nTests favor **DAMP** (Descriptive And Meaningful Phrases) over **DRY** (Don't Repeat Yourself). Some duplication in tests is good — each test should read as a standalone narrative. A reader should understand a test without scrolling to shared helpers.\n\n- **DRY** is for production code — shared logic, one source of truth.\n- **DAMP** is for test code — readability first, some repetition acceptable.\n\nOver-abstracted test helpers (`setupGenericFixture(Options)`) are worse than 3 tests with copy-pasted setup — the abstraction hides what each test actually tests.\n\n### The Beyonce Rule\n\n> If you liked it, you should have written a test for it.\n\nAny behavior the system depends on should have a test. \"Obvious\" behavior that breaks in production was never obvious — it was untested. If a refactor could break it silently, it needs a test.\n\nSee `references\u002Ftest-driven-development.md` for full methodology.\n\n## Seams and mock discipline\n\nA **seam** is the public boundary where behavior is observed — the place a\ntest attaches to the running system: an API route, an MCP tool, a CLI\nsubcommand, a module's public function.\n\n- **Tests verify behavior through public interfaces.** A bad test is one that\n  breaks on a refactor without a behavior change. If deleting the test only\n  breaks when internal code is reshaped, the test is implementation-coupled.\n- **No test at an unconfirmed seam.** If you cannot name which public boundary\n  the test observes behavior through, do not write it — it is coupled to\n  internals that can be reshaped without the behavior changing.\n\nFor every seam, leave a **one-line note on what the test at that seam catches\nand what it misses** (e.g. \"the create-order API test catches payload-shape\nregressions, misses queue-timeout behavior\"). The **spec stage records** these\nseam notes next to the behavior; the **test stage consumes** them — every RED\ntest cites the seam note it pins.\n\n**Anti-pattern checks** — each is a test to rewrite, not a style nit:\n\n- **Implementation-coupled:** internal-collaborator mocks, or tests against\n  private methods. Rewrite against the public surface.\n- **Tautological expected values:** the test recomputes the truth the same\n  way the code does — it can never fail on a real bug.\n- **Side-channel verification:** asserting through `db.query` instead of the\n  API. Assert what the caller observes, not where the data happened to land.\n\n**Expected values must come from an independent source of truth:** a literal,\na worked example you did by hand, or the value stated in the spec. Never the\nsame computation the code performs.\n\n**One logical assertion per test.** \"and\" in the test name means two tests.\n\n**Mocks only at system boundaries**: external APIs, time\u002Frandomness,\nfilesystem (sometimes); prefer a test DB over a mocked DB. Never mock your\nown classes or internal collaborators.\n\n## Batched TDD + Opus loop\n\nFor multi-feature builds the user may structure TDD in batches: features are\ngrouped into batches, each batch gets N TDD loops (build → verify + fix),\nthen an actual Opus review before commit — spec → batch features → TDD loops\nper batch → Opus review → fix → commit → push → CI. The trigger phrase is\n\"TDD N loops each batch Opus loop\". The full process is kept verbatim in\n`references\u002Fbatched-tdd-opus-loop.md`, with the rule files below.\n\n## Pre-commit review\n\nBefore code lands, run the verification pipeline in\n`references\u002Fpre-commit-review.md`: five-axis review, severity labels, change\nsizing, structural remedies, and the independent-reviewer steps. The\nreview-commit stage OWNS the convergence loop over review findings\n(confirm-round protocol) — this stage runs the pre-commit pass that precedes\nit. \"If Local Coding CLIs Are Unauthenticated\" territory resolves through the\n`cli-auth-fallback` skill — never guess credentials.\n\n## Integration Between Patterns\n\n- **TDD → Code Review**: After TDD implementation, run pre-commit review before push.\n- **Spike → TDD**: Once a spike is VALIDATED, discard the spike code and implement properly with TDD.\n- **Simplify → Review**: Simplify-code is a cleanup pass AFTER implementation. Code review is a quality gate BEFORE commit.\n- **Debug → TDD**: Bug found? Write failing test reproducing it (TDD RED). Fix it (GREEN). Test prevents regression.\n\n## Red Flags\n\n- Writing production code without a failing test first\n- \"It works, that's good enough\" — working but unreadable\u002Finsecure\u002Farchitecturally wrong creates compounding debt\n- \"I wrote it, so I know it's correct\" — authors are blind to their own assumptions\n- \"We'll clean it up later\" — later never comes; the review is the quality gate\n- \"AI-generated code is probably fine\" — AI code needs MORE scrutiny, not less; it's confident and plausible even when wrong\n- \"The tests pass, so it's good\" — tests are necessary but not sufficient; they don't catch architecture, security, or readability issues\n- \"The refactor makes it cleaner\" — relocating complexity isn't reducing it; count the concepts a reader must hold\n- A refactor that moves code around without making branches disappear\n- A change that grows an already-large file instead of decomposing it\n- New conditionals scattered into unrelated code paths (a missing abstraction)\n- A near-duplicate of an existing canonical helper\n- Review comments without severity labels — makes it unclear what's required vs optional\n- Accepting \"I'll fix it later\" — it never happens\n- A bulk \"bump dependencies\" PR with no changelog review\n- Spiking without a verdict (spike code left in the codebase)\n- Trusting the builder's self-report without independent verification\n- Hand-coding fixes when the review loop is the active workflow — non-trivial code changes are delegated to the builder lane; hand-editing is only acceptable for trivial mechanical fixes, and say so explicitly when deviating (the `review-commit` stage's delegate rule)\n\n## Verification\n\nAfter completing any development workflow task, confirm:\n\n- [ ] Tests written before production code (TDD) — or explicit justification for skipping\n- [ ] Every test attaches at a named seam (the highest that reaches the behavior) and cites its seam note\n- [ ] Independent review completed (not self-verified) — another agent or model\n- [ ] Findings labeled with severity (Critical \u002F Required \u002F Optional \u002F Nit \u002F FYI)\n- [ ] Change size within target (~100 lines good, ~300 acceptable, ~1000 split)\n- [ ] No dead code left behind (or explicitly listed for future removal)\n- [ ] Refactoring separated from feature work (or explicitly combined at reviewer discretion)\n- [ ] Simplification reduced concepts, not relocated them\n- [ ] Spike code discarded or explicitly marked for reuse\n- [ ] External review findings verified independently before fixing\n\n## Stage-exit confirmation\nAfter this stage, the TDD verification checklist above must pass and\nevery rule file listed in References must be reachable from this file.\n\n## References\n\n- `references\u002Fbatched-tdd-opus-loop.md` — verbatim batched TDD + Opus review process (\"TDD N loops each batch Opus loop\"); §6 points at the review-commit stage's confirm-round-protocol\n- `references\u002Ftest-driven-development.md` — full TDD methodology: iron law, cycle detail, rationalization tables, red flags, bug-fix example, Hermes integration, testing anti-patterns\n- `references\u002Fpre-commit-review.md` — pre-commit verification pipeline: Five-Axis Review, Severity Labels, Change Sizing, Structural Remedies, Steps, Read-Only Codebase Audits, external-review verification\n- `references\u002Frequesting-code-review.md` — pre-commit code verification dimensions (also used by the build stage's final integration review)\n- `references\u002Fpitfalls-loop-convergence.md` — loop convergence: public-interface tests, RED delegation, pins, reachability, downstream review\n- `references\u002Fpitfalls-cli-and-env-mechanics.md` — CLI, env, dispatch timing, turn caps, gh, pre-existing CI\n- `references\u002Fpitfalls-review-findings.md` — review findings: warnings, payloads, provenance, injection, concurrency, timestamps\n- `references\u002Freview-report-shape.md` — report shape to demand in every review brief; per-batch review session records stay in the source archive\n- `references\u002Fkey-rules.md` — read before the first batch: RED before GREEN, review-before-commit, specific `git add`, CI after push, independent verification, BLE001\n\n## Where it fits\n\nTest-evals is stage 3 of the dev-pipeline pipeline: `grill` → `spec` →\n**`test-evals`** → `build` → `review-commit`. Tests are written in this\nstage; the build stage runs the implementation (ticket title restated before\nstarting, dependency injection for mockability). Each seam note written at\nthe spec stage is consumed here at test-writing time.\n","# Test Evals\n\n## Overview\n\nThe test-and-evaluation stage of the dev-pipeline: how behavior is pinned\nbefore it ships. Test-driven development is the core discipline; the batched\nmulti-feature TDD loop with a per-batch Opus review, the pre-commit\nverification pipeline, and external-review-finding verification hang off it.\n\n**Core principle:** If you didn't watch the test fail, you don't know if it tests the right thing.\n\n**Tests verify behavior through public interfaces.** A bad test is one that\nbreaks on a refactor without a behavior change.\n\n## This stage owns the tests\n\nIn the pipeline, the plan names each task's test cases (behavior, seam,\nexpected value and where it comes from). This stage turns them into real\ntests, runs each one to a failure for the right reason, and attests the files\n(`review-commit\u002Fscripts\u002Fattest_file.py attest`) so the build can't quietly\nrewrite them. The `build` implementer makes them GREEN; it adds a test only\nfor behavior the plan missed, and says so. Output of this stage: the test\nfiles, a RED run log, and one line per test naming the seam note it pins.\n\n## When to Use\n\n- User says \"TDD N loops each batch Opus loop\" or \"batch properly, Opus on each batch before commit\"\n- User says \"implement, use TDD\" or \"TDD, 2 loops each batch, Opus on each batch\"\n- Writing new features, bug fixes, or behavior changes that need failing tests first\n- Reviewing or sizing a change before commit (five-axis review, severity labels)\n- Verifying external review findings before fixing them\n\n**Don't use for:**\n\n- Iterative post-commit review convergence — the `review-commit` stage owns that\n- In-flight doubt about a mid-build step — that's `doubt-driven-development`\n- Judging a skill's own quality — the `skill-quality-review` efficacy rubric and\n  its Checks stay owned by that skill; this stage links to it, it does not\n  duplicate the rubric\n\n## 1. Test-Driven Development (TDD)\n\n**Core principle:** the Overview's — the one stated there is the rule this cycle enforces (see Overview; restated once, applied everywhere in this stage).\n\n### RED-GREEN-REFACTOR Cycle\n1. **RED** — Write one minimal failing test. Run it. Watch it fail for the right reason (feature missing, not typo).\n2. **GREEN** — Write simplest code to pass. Cheating is OK (hardcode, copy-paste). Run test to verify pass.\n3. **REFACTOR** — Clean up duplication, improve names, extract helpers — in code THIS cycle wrote or changed, nothing else (surgical changes, `orchestrator\u002Freferences\u002Fcoding-principles.md`). Keep tests green throughout.\n4. **Repeat** — Next test for next behavior.\n\n### Iron Law\n```\nNO PRODUCTION CODE WITHOUT A FAILING TEST FIRST\n```\nCode before test? Delete it. Start over. No \"keep as reference.\"\n\n### Common Rationalizations to Reject\n- \"Too simple to test\" → Simple code breaks too.\n- \"I'll test after\" → Tests passing immediately prove nothing.\n- \"Already manually tested\" → Ad-hoc ≠ systematic.\n- \"TDD will slow me down\" → TDD is faster than debugging.\n\n### Seam first, then size\n\nPick WHERE a test attaches before deciding how big it is (see *Seams and mock\ndiscipline* below):\n\n1. **Test at the highest seam that exists** — the public API, CLI command, MCP\n   tool, or module's public function the behavior is observed through. Fewer\n   seams are better; one is ideal.\n2. **Go lower only for logic the high seam can't reach cheaply** — dense\n   pure-logic edge cases (parsers, money math, date rules) get small tests at\n   their own public function.\n3. **Keep the slow end small** — full-system E2E runs are for the few\n   acceptance paths that need the real thing (pre-deploy smoke).\n\nThere is no target ratio of unit to integration tests. A seam test that runs\nagainst a temp DB is the right test even if that makes \"integration\" the\nmajority. (v0.1.x carried an 80\u002F15\u002F5 pyramid; it pulled against the seam\nrule and was dropped.)\n\n### Test Sizes\n\n| Size | What it touches | Speed | When to use |\n|---|---|---|---|\n| **Small** | One function, no I\u002FO, no network, no DB, no filesystem | Sub-ms | Pure logic, edge cases, regression tests |\n| **Medium** | Multiple functions or real I\u002FO (filesystem, temp DB, localhost network) | Seconds | Integration, API surface, DB roundtrip |\n| **Large** | Full system, external services, real network, multi-machine | Minutes | End-to-end acceptance, pre-deploy smoke |\n\n**Label tests by size.** If a test is slow, it should be because it's doing real integration — not because it's a unit test with accidental I\u002FO.\n\n### DAMP over DRY\n\nTests favor **DAMP** (Descriptive And Meaningful Phrases) over **DRY** (Don't Repeat Yourself). Some duplication in tests is good — each test should read as a standalone narrative. A reader should understand a test without scrolling to shared helpers.\n\n- **DRY** is for production code — shared logic, one source of truth.\n- **DAMP** is for test code — readability first, some repetition acceptable.\n\nOver-abstracted test helpers (`setupGenericFixture(Options)`) are worse than 3 tests with copy-pasted setup — the abstraction hides what each test actually tests.\n\n### The Beyonce Rule\n\n> If you liked it, you should have written a test for it.\n\nAny behavior the system depends on should have a test. \"Obvious\" behavior that breaks in production was never obvious — it was untested. If a refactor could break it silently, it needs a test.\n\nSee `references\u002Ftest-driven-development.md` for full methodology.\n\n## Seams and mock discipline\n\nA **seam** is the public boundary where behavior is observed — the place a\ntest attaches to the running system: an API route, an MCP tool, a CLI\nsubcommand, a module's public function.\n\n- **Tests verify behavior through public interfaces.** A bad test is one that\n  breaks on a refactor without a behavior change. If deleting the test only\n  breaks when internal code is reshaped, the test is implementation-coupled.\n- **No test at an unconfirmed seam.** If you cannot name which public boundary\n  the test observes behavior through, do not write it — it is coupled to\n  internals that can be reshaped without the behavior changing.\n\nFor every seam, leave a **one-line note on what the test at that seam catches\nand what it misses** (e.g. \"the create-order API test catches payload-shape\nregressions, misses queue-timeout behavior\"). The **spec stage records** these\nseam notes next to the behavior; the **test stage consumes** them — every RED\ntest cites the seam note it pins.\n\n**Anti-pattern checks** — each is a test to rewrite, not a style nit:\n\n- **Implementation-coupled:** internal-collaborator mocks, or tests against\n  private methods. Rewrite against the public surface.\n- **Tautological expected values:** the test recomputes the truth the same\n  way the code does — it can never fail on a real bug.\n- **Side-channel verification:** asserting through `db.query` instead of the\n  API. Assert what the caller observes, not where the data happened to land.\n\n**Expected values must come from an independent source of truth:** a literal,\na worked example you did by hand, or the value stated in the spec. Never the\nsame computation the code performs.\n\n**One logical assertion per test.** \"and\" in the test name means two tests.\n\n**Mocks only at system boundaries**: external APIs, time\u002Frandomness,\nfilesystem (sometimes); prefer a test DB over a mocked DB. Never mock your\nown classes or internal collaborators.\n\n## Batched TDD + Opus loop\n\nFor multi-feature builds the user may structure TDD in batches: features are\ngrouped into batches, each batch gets N TDD loops (build → verify + fix),\nthen an actual Opus review before commit — spec → batch features → TDD loops\nper batch → Opus review → fix → commit → push → CI. The trigger phrase is\n\"TDD N loops each batch Opus loop\". The full process is kept verbatim in\n`references\u002Fbatched-tdd-opus-loop.md`, with the rule files below.\n\n## Pre-commit review\n\nBefore code lands, run the verification pipeline in\n`references\u002Fpre-commit-review.md`: five-axis review, severity labels, change\nsizing, structural remedies, and the independent-reviewer steps. The\nreview-commit stage OWNS the convergence loop over review findings\n(confirm-round protocol) — this stage runs the pre-commit pass that precedes\nit. \"If Local Coding CLIs Are Unauthenticated\" territory resolves through the\n`cli-auth-fallback` skill — never guess credentials.\n\n## Integration Between Patterns\n\n- **TDD → Code Review**: After TDD implementation, run pre-commit review before push.\n- **Spike → TDD**: Once a spike is VALIDATED, discard the spike code and implement properly with TDD.\n- **Simplify → Review**: Simplify-code is a cleanup pass AFTER implementation. Code review is a quality gate BEFORE commit.\n- **Debug → TDD**: Bug found? Write failing test reproducing it (TDD RED). Fix it (GREEN). Test prevents regression.\n\n## Red Flags\n\n- Writing production code without a failing test first\n- \"It works, that's good enough\" — working but unreadable\u002Finsecure\u002Farchitecturally wrong creates compounding debt\n- \"I wrote it, so I know it's correct\" — authors are blind to their own assumptions\n- \"We'll clean it up later\" — later never comes; the review is the quality gate\n- \"AI-generated code is probably fine\" — AI code needs MORE scrutiny, not less; it's confident and plausible even when wrong\n- \"The tests pass, so it's good\" — tests are necessary but not sufficient; they don't catch architecture, security, or readability issues\n- \"The refactor makes it cleaner\" — relocating complexity isn't reducing it; count the concepts a reader must hold\n- A refactor that moves code around without making branches disappear\n- A change that grows an already-large file instead of decomposing it\n- New conditionals scattered into unrelated code paths (a missing abstraction)\n- A near-duplicate of an existing canonical helper\n- Review comments without severity labels — makes it unclear what's required vs optional\n- Accepting \"I'll fix it later\" — it never happens\n- A bulk \"bump dependencies\" PR with no changelog review\n- Spiking without a verdict (spike code left in the codebase)\n- Trusting the builder's self-report without independent verification\n- Hand-coding fixes when the review loop is the active workflow — non-trivial code changes are delegated to the builder lane; hand-editing is only acceptable for trivial mechanical fixes, and say so explicitly when deviating (the `review-commit` stage's delegate rule)\n\n## Verification\n\nAfter completing any development workflow task, confirm:\n\n- [ ] Tests written before production code (TDD) — or explicit justification for skipping\n- [ ] Every test attaches at a named seam (the highest that reaches the behavior) and cites its seam note\n- [ ] Independent review completed (not self-verified) — another agent or model\n- [ ] Findings labeled with severity (Critical \u002F Required \u002F Optional \u002F Nit \u002F FYI)\n- [ ] Change size within target (~100 lines good, ~300 acceptable, ~1000 split)\n- [ ] No dead code left behind (or explicitly listed for future removal)\n- [ ] Refactoring separated from feature work (or explicitly combined at reviewer discretion)\n- [ ] Simplification reduced concepts, not relocated them\n- [ ] Spike code discarded or explicitly marked for reuse\n- [ ] External review findings verified independently before fixing\n\n## Stage-exit confirmation\nAfter this stage, the TDD verification checklist above must pass and\nevery rule file listed in References must be reachable from this file.\n\n## References\n\n- `references\u002Fbatched-tdd-opus-loop.md` — verbatim batched TDD + Opus review process (\"TDD N loops each batch Opus loop\"); §6 points at the review-commit stage's confirm-round-protocol\n- `references\u002Ftest-driven-development.md` — full TDD methodology: iron law, cycle detail, rationalization tables, red flags, bug-fix example, Hermes integration, testing anti-patterns\n- `references\u002Fpre-commit-review.md` — pre-commit verification pipeline: Five-Axis Review, Severity Labels, Change Sizing, Structural Remedies, Steps, Read-Only Codebase Audits, external-review verification\n- `references\u002Frequesting-code-review.md` — pre-commit code verification dimensions (also used by the build stage's final integration review)\n- `references\u002Fpitfalls-loop-convergence.md` — loop convergence: public-interface tests, RED delegation, pins, reachability, downstream review\n- `references\u002Fpitfalls-cli-and-env-mechanics.md` — CLI, env, dispatch timing, turn caps, gh, pre-existing CI\n- `references\u002Fpitfalls-review-findings.md` — review findings: warnings, payloads, provenance, injection, concurrency, timestamps\n- `references\u002Freview-report-shape.md` — report shape to demand in every review brief; per-batch review session records stay in the source archive\n- `references\u002Fkey-rules.md` — read before the first batch: RED before GREEN, review-before-commit, specific `git add`, CI after push, independent verification, BLE001\n\n## Where it fits\n\nTest-evals is stage 3 of the dev-pipeline pipeline: `grill` → `spec` →\n**`test-evals`** → `build` → `review-commit`. Tests are written in this\nstage; the build stage runs the implementation (ticket title restated before\nstarting, dependency injection for mockability). Each seam note written at\nthe spec stage is consumed here at test-writing time.\n",{"name":5,"metadata":23,"description":7},{"author":9,"hermes":24,"license":14,"version":44,"platforms":45},{"tags":25,"related_skills":36},[26,27,28,29,30,31,32,33,34,35,5],"tdd","testing","red-green-refactor","seams","test-sizes","mocks","batched-tdd","opus-review","pre-commit-review","severity-labels",[37,38,39,40,41,42,43],"build","spec","review-commit","skill-quality-review","model-routing","doubt-driven-development","hermes-agent-skill-authoring","2.0.0",[46,47,48],"linux","macos","windows","main","e943e3285cd03c44b2c762a9a52328e3d16444b1","plugins\u002Fdev-pipeline\u002Fskills\u002Ftest-evals",22,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills","https:\u002F\u002Fhermes-agent.nousresearch.com","https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin","Accounting\u002FFP&A\u002FM&A\u002FPERE guy by day, AI\u002Fself-host\u002Fprogramming hobbyist by night. \r\n\r\nPassionate in solving practical business issues.","2026-11-13 19:46:18",{"source":8,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add moonlight-lupin\u002Fagent-skills --skill test-evals",{"tool":64,"command":65},"bunx","bunx skills add moonlight-lupin\u002Fagent-skills --skill test-evals",{"tool":67,"command":68},"pnpm","pnpm dlx skills add moonlight-lupin\u002Fagent-skills --skill test-evals","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdev-pipeline\u002Fskills\u002Ftest-evals\u002FSKILL.md",true,[72,78,82,86,90,94,98,102,106],{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fbatched-tdd-opus-loop.md","REFERENCE","参考文档",19504,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdev-pipeline\u002Fskills\u002Ftest-evals\u002Freferences\u002Fbatched-tdd-opus-loop.md",{"path":79,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002Fkey-rules.md",3485,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdev-pipeline\u002Fskills\u002Ftest-evals\u002Freferences\u002Fkey-rules.md",{"path":83,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Fpitfalls-cli-and-env-mechanics.md",6468,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdev-pipeline\u002Fskills\u002Ftest-evals\u002Freferences\u002Fpitfalls-cli-and-env-mechanics.md",{"path":87,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fpitfalls-loop-convergence.md",11870,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdev-pipeline\u002Fskills\u002Ftest-evals\u002Freferences\u002Fpitfalls-loop-convergence.md",{"path":91,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Fpitfalls-review-findings.md",13324,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdev-pipeline\u002Fskills\u002Ftest-evals\u002Freferences\u002Fpitfalls-review-findings.md",{"path":95,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Fpre-commit-review.md",17454,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdev-pipeline\u002Fskills\u002Ftest-evals\u002Freferences\u002Fpre-commit-review.md",{"path":99,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002Frequesting-code-review.md",9436,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdev-pipeline\u002Fskills\u002Ftest-evals\u002Freferences\u002Frequesting-code-review.md",{"path":103,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":104,"sourceHtmlUrl":105},"references\u002Freview-report-shape.md",6777,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdev-pipeline\u002Fskills\u002Ftest-evals\u002Freferences\u002Freview-report-shape.md",{"path":107,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":108,"sourceHtmlUrl":109},"references\u002Ftest-driven-development.md",12477,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdev-pipeline\u002Fskills\u002Ftest-evals\u002Freferences\u002Ftest-driven-development.md",[111,118,125,131,138,145],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":18},"01M78ATNRV7RYQ8M314V0QZX18","website-scraping","Generic playbook for extracting structured data from any website — hotel prices, flight fares, e-commerce listings, real estate, jobs, competitor product catalogues, anything where the goal is to turn one or more URLs into clean records on disk. Use this skill whenever the user mentions scraping, harvesting, extracting, or pulling data from a website; names a specific site or competitor they want data from; asks how to handle JavaScript-rendered pages, Cloudflare blocks, bot detection, Turnstile challenges, or Playwright; wants to monitor prices over time; needs to automate a copy-paste research task; or says things like \"just get the data from X\" or \"I need a script that grabs N from site Y\". Covers recon, picking the lightest extraction tool that works, surviving anti-bot defences, and writing clean JSONL output with a run manifest. Scope is scraping only — landing data in a database, scheduling, and downstream pipeline work are explicitly out of scope and live in other tools.","https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fweb-scraping\u002Fwebsite-scraping\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":18},"01M78ATK9XGEKSH3QRN7P2MEER","greet","Greets a named person warmly.","https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fclaude_plugin_sample\u002Fskills\u002Fgreet\u002FSKILL.md",[],[],{"skillNo":126,"name":40,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":18},"01M78ATEAQB5CK2D4MKPCW4YHQ","Use when auditing or reviewing skill quality — batch checks across a library, deep per-skill grep methodology, usage stats, efficacy testing, or fix planning. Single consolidated home for the writing-for-agents review framework and the 3-surface review methodology.","https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fsoftware-development\u002Fskill-quality-review\u002FSKILL.md",[],[],{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":18},"01M78AT58EM57023QSC79S8R6D","people-enrichment","Use when the user has a list of names or companies and wants their job, employer, work history, LinkedIn URLs or company profiles looked up, or wants to find people or companies matching criteria — trigger on phrases like \"enrich these contacts\", \"find their LinkedIn\", \"look up these people\", \"who works at X\", \"find directors at Y\", \"enrich these companies\", or \"get firmographics for\". Enrich and search People Data Labs (PDL) Person and Company data, writing results to .xlsx. Five operations: enrich named PEOPLE into a profile, employment history and LinkedIn URL; IDENTIFY an ambiguous person as several scored candidates; SEARCH people by criteria (company, title, location); enrich COMPANIES into firmographics (industry, size, employees, HQ, founded, LinkedIn); and SEARCH companies by criteria. Do not scrape LinkedIn directly — this uses a licensed data aggregator (PDL) instead, for legal and reliability reasons.","https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fresearch\u002Fpeople-enrichment\u002FSKILL.md",[],[],{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":18},"01M78AT0AZJ7WFY73766NBA1EC","notebooklm-mode","Source-grounded research pipeline inspired by NotebookLM. Collect verbatim source extracts into a temporary workspace, then answer questions and create deliverables grounded in those sources. Two grounding modes: strict (vault-only) and augmented (vault + labeled [background] knowledge). Trigger when the user asks to research a topic from sources, wants NotebookLM-style grounded answers, asks to build a resource vault, or says \"notebooklm mode\".","https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fresearch\u002Fnotebooklm-mode\u002FSKILL.md",[],[],{"skillNo":146,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":18},"01M78ASTJVZ9G5JY6GM40SF909","news-monitoring","Use when a topic or news stream needs recurring monitoring — cover it with web search, multi-language sources, digest formatting, and automated delivery via Hermes cron jobs. Covers search strategy, source selection, Chinese-language platforms, and digest templates.","https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fresearch\u002Fnews-monitoring\u002FSKILL.md",[],[]]