Test Discipline

Mandatory pre-edit test gate for changes to existing code. Use before fixing a reported regression, crash (including an HTTP 500), invalid-input failure, error, or wrong output—even when the user only says 'fix it' and never requests a test. For a refactor or cleanup, use only when the named behavior lacks behavioral tests; any adequate behavioral coverage is already the pin. Also use proportionately when asked only to write a unit/regression test for named existing behavior, or explicitly asked to validate whether a freshly-green test detects its claimed regression. Reproduce fixes red-before-green, characterize untested behavior before refactoring, and mutation-check only when the workflow or user requests it. Never stage or commit artifacts. Do NOT use for diagnosis-only requests, typos/copy, config/version/dependency bumps, behavior-preserving renames or control-flow rewrites, formatting, generated/vendored/lockfile changes, or ordinary new-feature implementation.

luka-zivkovic Updated

File contents

luka-zivkovic/overclock/tree/main/plugins/discipline-gates/skills/test-discipline commit 9ec530b871

Frequently asked questions

npx skillmds@latest add luka-zivkovic/test-discipline