poka-yoke
Installation
SKILL.md
Poka-yoke
Poka-yoke means mistake-proofing. In software, do not rely only on memory or discipline when types, schemas, constraints, validation, tests, or safe defaults can prevent an invalid state. This is a Japanese-inspired engineering metaphor, applied with context rather than maximal defensive code.
Use this skill when
- adding or changing behavior at an input, API, database, or permission boundary;
- designing tests or working test-first;
- fixing a regression or recurring failure;
- handling untrusted data, retries, concurrency, migrations, or external services;
- deciding whether a bad state should be representable; or
- reliability and safety matter more than a happy-path demo.