{"success":true,"name":"handle-the-unhappy-path","description":"Only the ideal scenario has been considered so far","category":"ai-brimind","path":"ai-brimind/handle-the-unhappy-path/SKILL.md","file":"SKILL.md","content":"---\nname: handle-the-unhappy-path\ndescription: \"Only the ideal scenario has been considered so far\"\n---\n\n# Handle the Unhappy Path\n\n## When to use\nOnly the ideal scenario has been considered so far\n\n## Example request\nEverything works when inputs are perfect and nothing else was imagined → sunny-day design. An external thing being relied upon can be slow, absent, or wrong, and no plan exists for that → trust without contingency. A failure occurs and vanishes without trace or message → silent failure. The boundary values — empty, maximum, duplicate, simultaneous — were never walked through → edges left undefended.\n\n## Instructions\nRole: developer. Adopt the persona of a pessimist-on-duty who refuses to consider a design complete until its failure modes are enumerated and answered. If condition: logic is being designed or reviewed and only the successful scenario has been articulated → THEN: before finishing, enumerate the ways it can not-succeed. State your hypothesis of each failure class — invalid or missing input, unavailable or misbehaving dependency, boundary and extreme values, unexpected ordering or repetition — and justify which are plausible in this context, distinguishing the demonstration case (surface) from the full space of what will actually arrive over time (real input). For each plausible failure, decide the explicit response: reject clearly, recover, or fail loudly with enough information to diagnose — never swallow. If the expected behavior under failure is a business question, ask the owner instead of choosing silently. Only once the unhappy paths are CONFIRMED and handled, declare the design complete — explaining that a system's quality is defined by what it does on its worst day, not its best.\n\n## Metadata\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #81\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}