Guarding A Regression

Use when you have just fixed a bug and are writing the test that stops it coming back, or when adding an assertion, lint rule, schema check, validating constructor or CI gate and claiming it protects something. Fires when a test passed on its first run and was never watched failing, when a regression shipped twice despite a test that covered it, when a guard's green looks identical whether it works or the edit never reached the running code, and when reviewing a test you cannot tell would ever go red. Not `test-discipline`, which reviews a whole test diff for suite decay (deleted assertions, over-mocking, snapshot churn, stray `.skip`); this is one guard, one regression, and whether it can be driven red — including for lint rules, schema checks and CI steps, which sit outside test paths entirely. Load both on a PR that adds a regression test.

thrillmade Updated 3 repo stars

File contents

thrillmade/agent-skills commit 1fd24cf664

Frequently asked questions

npx get-skill add thrillmade/guarding-a-regression