Safe Smokes

Never run destructive operations against shared or live data in tests, smokes, or seeds. Flip-and-restore with try/finally instead of delete; seed in beforeAll and tear down in afterAll; restore shared state exactly as found. Triggers when writing or editing any test, smoke, or seed script that connects to a shared or live database, Supabase or otherwise. Does not trigger on tests that run only against mocks, fixtures, or an in-memory database.

randommonicle Updated

File contents

randommonicle/claude-skills/tree/main/safe-smokes commit 16f304662e

Frequently asked questions

npx skillmds@latest add randommonicle/safe-smokes