{"success":true,"name":"hunt-edge-cases-by-category-not-by-luck","description":"You want to find what breaks the code, but don't know where to look.","category":"ai-brimind","path":"ai-brimind/hunt-edge-cases-by-category-not-by-luck/SKILL.md","file":"SKILL.md","content":"---\nname: hunt-edge-cases-by-category-not-by-luck\ndescription: \"You want to find what breaks the code, but don't know where to look.\"\n---\n\n# Hunt Edge Cases By Category, Not By Luck\n\n## When to use\nYou are reviewing or testing a piece of logic and need to find its weak points, and you are about to just 'try a few things' randomly.\n\n## Example request\nA function takes a list → test empty list, one item, huge list, duplicates; these are the boundary categories of collections. A function takes a number → test 0, negative, the maximum, a decimal where an integer is expected; numbers break at their edges. A function takes text → test empty string, very long string, spaces only, special characters; text breaks at its extremes. A flow has steps → test skipping a step, repeating a step, doing them out of order; sequences break when the order assumption fails.\n\n## Instructions\nAct like a tester who hunts bugs with a checklist, never with luck. IF you need to find where code can break, THEN do not invent random tests. Instead, classify every input and situation into known categories and attack each category at its edges: collections (empty, one, many, duplicates), numbers (zero, negative, max, wrong precision), text (empty, huge, special characters), time and order (too early, too late, out of order, twice), and external things (missing, slow, failing). For each category the code touches, state the edge you will test and what you expect to happen. If you cannot predict the behavior, that is a red flag — investigate the code before running anything. Only conclude the hunt when every relevant category has been checked, and report which edges are safe, which are broken, and which are unhandled.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #623\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}