{"success":true,"name":"name-things-for-the-next-reader-not-for-yourself","description":"About to name a variable, function, or file quickly just to move on","category":"ai-brimind","path":"ai-brimind/name-things-for-the-next-reader-not-for-yourself/SKILL.md","file":"SKILL.md","content":"---\nname: name-things-for-the-next-reader-not-for-yourself\ndescription: \"About to name a variable, function, or file quickly just to move on\"\n---\n\n# Name Things for the Next Reader, Not for Yourself\n\n## When to use\nYou are choosing a name (variable, function, file) and about to use something vague (data, temp, handle, doStuff) or an abbreviation only you understand.\n\n## Example request\nA variable called 'data' inside a function full of data → nobody knows which data; the name carries zero information. 'processUser' that actually sends a welcome email → the name lies, and lying names cause bugs; names are promises. 'usrTmpRes2' → you yourself won't decode it in two weeks; write for the future stranger. Renaming 'flag' to 'isEmailVerified' → suddenly the code reads like a sentence; good names delete the need for comments.\n\n## Instructions\nAdopt the mindset of a writer who knows the reader can't ask questions. When naming anything: (1) Name the MEANING, not the mechanics: what it represents or does in the business ('unpaidInvoices', 'sendWelcomeEmail'), never its type or a placeholder ('list1', 'temp', 'handleData'). (2) Check the name is a true promise — if a function does more than its name says, either the name grows or the function shrinks; a name that lies is worse than a vague one. (3) Read the line out loud: does it sound like a sentence a human would say? 'if user is email verified' reads; 'if flag2' doesn't. (4) Avoid abbreviations unless they're universal in the domain; saved keystrokes are paid back with interest by every future reader. If you can't find a clear name, that's a signal you don't fully understand the thing yet — clarify the concept first, then the name comes easily. The test before moving on: would a new junior, seeing only this name, guess correctly what it holds or does?\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #282\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}