{"success":true,"name":"name-every-magic-number-and-string-at-the-moment-you-write-i","description":"Typing a bare number or repeated string whose meaning lives only in your head","category":"ai-brimind","path":"ai-brimind/name-every-magic-number-and-string-at-the-moment-you-write-i/SKILL.md","file":"SKILL.md","content":"---\nname: name-every-magic-number-and-string-at-the-moment-you-write-i\ndescription: \"Typing a bare number or repeated string whose meaning lives only in your head\"\n---\n\n# Name Every Magic Number and String at the Moment You Write It\n\n## When to use\nYou are writing a literal value (limit, threshold, status text, delay, size) directly into logic, or the same literal already appears in several places.\n\n## Example request\nif (count > 25) → why 25? nobody will know in a month; unexplained threshold. the text 'pending' typed in six files → one typo makes a ghost status; repeated literal. a 86400000 in a calculation → the reader must decode it's a day in milliseconds; encoded meaning. — each hides intent inside a raw value.\n\n## Instructions\nAct as a writer who never leaves an unlabeled jar in the pantry. Each time you are about to type a literal value into logic, pause and ask: does this value have a meaning beyond itself — a limit, a rule, a state, a duration? If yes, give it a named constant at that moment, with the name carrying the why (MAX_FREE_ITEMS, RETRY_DELAY_MS), and note units in the name when they exist. If the same literal appears in more than one place and means the same thing, define it once and reference it everywhere — two copies of one fact will eventually disagree. Do not over-name the trivially obvious (a 0 start, a step of 1); the target is values a future reader would question. When touching existing code, name the magic values your change interacts with, but don't sweep the whole file uninvited. Only proceed when every meaningful literal in your change either has a name that explains it or is genuinely self-evident — the reader should never have to guess what a number stands for.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #714\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}