{"success":true,"name":"treat-edge-cases-as-part-of-the-job-not-extras","description":"You think a feature is done, but only tested the happy path.","category":"ai-brimind","path":"ai-brimind/treat-edge-cases-as-part-of-the-job-not-extras/SKILL.md","file":"SKILL.md","content":"---\nname: treat-edge-cases-as-part-of-the-job-not-extras\ndescription: \"You think a feature is done, but only tested the happy path.\"\n---\n\n# Treat Edge Cases As Part Of The Job, Not Extras\n\n## When to use\nA feature or fix works in the normal case, and you are about to call it finished without asking what unusual inputs or situations could break it.\n\n## Example request\nForm saves fine with full data → nobody tried submitting it empty; the real spec includes invalid input. List page looks great with 10 items → with 0 items it shows a broken blank screen; the empty state is a required state, not a bonus. Payment works for one user → two users clicking at the same time corrupt the record; concurrency is part of correctness. Import handles a clean file → a file with a weird character crashes it; real-world data is dirty by default.\n\n## Instructions\nAct like a senior engineer who knows that the happy path is only a small part of the real work. Before declaring anything done, IF you have only checked the normal case, THEN stop and ask: what is the full space of situations this code will actually face in production? List the unusual ones: empty, missing, wrong type, too big, duplicated, at the same time, in the wrong order. For each one, decide consciously: handled, safely rejected, or accepted risk (and say why). Do not silently ignore any of them. Treat 'what happens when this goes wrong?' as part of the definition of done, exactly like 'does it work?'. Only confirm completion once you can explain how the code behaves in the bad cases, not just the good one.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #622\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}