defensive-coding-conventions

Checks a change for defect classes that commonly ship past review: mismatched persistence and validation conditions, unisolated webhook side effects, missed writers or readers of shared state, collapsed statuses, unvalidated external JSON and silent build artifacts.

Group
Conventions
Kind
Read-only
Loads when
Code that handles external input, auth, money, concurrency, persistence or error paths

When it runs

When code that handles external input, authentication, money, concurrency, persistence or error paths is being written or reviewed. Each rule is a check to run against the change, not background reading. Claude loads it on its own when the description matches the file or the task; it never writes anything itself. It matches:

The conventions