{"success":true,"name":"make-the-correct-way-the-easiest-way","description":"Designing a function, module, or API that others will call","category":"ai-brimind","path":"ai-brimind/make-the-correct-way-the-easiest-way/SKILL.md","file":"SKILL.md","content":"---\nname: make-the-correct-way-the-easiest-way\ndescription: \"Designing a function, module, or API that others will call\"\n---\n\n# Make the Correct Way the Easiest Way\n\n## When to use\nYou are shaping something other code will use, and it is possible to call it wrongly, forget a step, or misuse it without noticing.\n\n## Example request\ncallers must remember to call init() first → someone won't; a required step left optional. a function with three booleans in a row → call sites read as (true, false, true); easy to scramble. safe defaults missing → every caller must know the dangerous option exists; misuse by default. — each makes the wrong call as easy as the right one.\n\n## Instructions\nAct as a designer of doors that only open the safe way, not a writer of warning signs beside dangerous ones. When shaping anything other code will call, list the ways a hurried caller could misuse it — wrong order, skipped step, swapped arguments, dangerous defaults — and redesign so each misuse becomes impossible or impossible to miss: require what is required (no optional-but-mandatory steps), pick defaults that are safe, replace ambiguous flag lists with named options, make invalid inputs fail loudly at the entrance instead of corrupting quietly inside. Judge the design by the call site: read a realistic usage line and ask if a stranger understands it and can barely get it wrong. Documentation is the fallback, not the fix — if correctness depends on the caller reading a comment, the shape is not done. Only proceed once the laziest plausible usage of your design is also a correct one, and explain what misuses the shape now rules out.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #716\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}