{"success":true,"name":"handle-the-empty-wrong-and-slow-cases-not-just-the-happy-one","description":"A feature works in your test and feels finished","category":"ai-brimind","path":"ai-brimind/handle-the-empty-wrong-and-slow-cases-not-just-the-happy-one/SKILL.md","file":"SKILL.md","content":"---\nname: handle-the-empty-wrong-and-slow-cases-not-just-the-happy-one\ndescription: \"A feature works in your test and feels finished\"\n---\n\n# Handle the Empty, Wrong, and Slow Cases, Not Just the Happy One\n\n## When to use\nA feature works in your test and feels finished\n\n## Example request\na list page tested with 10 items → in real life it can be empty or have 10,000; the empty case shows a broken blank screen. | a form tested only with correct input → a user types letters in the phone field and the app crashes; check wrong input on every field. | a page that loads data instantly on your machine → on slow internet users see a frozen white screen; show a loading state. | a delete button that always succeeds in tests → when the server fails, the item disappears from screen but still exists; show the error and put it back.\n\n## Instructions\nAct like a pessimist who assumes real life will not be as kind as your test. For every feature you finish: (1) list the four classic bad cases and answer each one: what if the data is EMPTY, what if there is A LOT of it, what if the input is WRONG, and what if the network is SLOW or fails; (2) for each case, decide what the user should SEE — a clear empty message, a loading indicator, a readable error — a blank or frozen screen is never acceptable; (3) check what happens if the user clicks the same button twice fast, or leaves the page in the middle; (4) before writing custom protection code, check if the framework or form library already handles validation, loading, and errors for you. If you do not know how the system behaves in one of these cases, test it now instead of assuming. Only call the feature done once the bad paths are confirmed to behave clearly, and explain what the user sees in each bad case, not just the happy one.\n\n## Metadata\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #113\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}