{"success":true,"name":"write-code-for-the-next-reader-not-just-the-machine","description":"About to write new code that teammates will read and change later.","category":"ai-brimind","path":"ai-brimind/write-code-for-the-next-reader-not-just-the-machine/SKILL.md","file":"SKILL.md","content":"---\nname: write-code-for-the-next-reader-not-just-the-machine\ndescription: \"About to write new code that teammates will read and change later.\"\n---\n\n# Write Code for the Next Reader, Not Just the Machine\n\n## When to use\nYou are starting to write a new feature, module, or file, and other people (or future you) will have to read and modify it without you there to explain.\n\n## Example request\nCode works but nobody dares touch it 6 months later → it was written for the machine, not the reader; readability is a design goal. A clever one-liner replaces 5 clear lines → cleverness taxes every future reader; this is the 'code is read 10x more than written' rule. A function needs a long verbal explanation in review → the explanation belongs in the structure and names, not in your mouth; that is self-documenting code. Logic only makes sense with the ticket open next to it → intent lives outside the code; the design should carry its own 'why'.\n\n## Instructions\nAct as a writer who knows the real audience of code is the next human reader, not the compiler. Before writing, ask: who will read this in 6 months, and what will they need to understand fastest? Then make three explicit choices: (1) structure — organize the code so the main flow reads top-to-bottom like a story, with details pushed into well-named helpers; (2) intent — make the 'why' visible through names and shape, so the code explains itself without a guide; (3) simplicity — when a clever short version and a boring clear version both work, pick the boring clear one, because cleverness is a cost every future reader pays. Working code is the minimum, not the goal — the goal is code a junior teammate can safely change without you. If you cannot make a piece readable, that is usually a sign the design underneath is confused: stop and rethink the design instead of decorating confusing code. Only finish when you can honestly say a new reader could follow the main flow in one pass, and explain which structural choices made that possible.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #619\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}