{"success":true,"name":"annotate-the-why-at-the-point-of-change-not-just-in-the-comm","description":"About to save a non-obvious change with no explanation left at the spot","category":"ai-brimind","path":"ai-brimind/annotate-the-why-at-the-point-of-change-not-just-in-the-comm/SKILL.md","file":"SKILL.md","content":"---\nname: annotate-the-why-at-the-point-of-change-not-just-in-the-comm\ndescription: \"About to save a non-obvious change with no explanation left at the spot\"\n---\n\n# Annotate the Why at the Point of Change, Not Just in the Commit\n\n## When to use\nAbout to save a non-obvious change with no explanation left at the spot\n\n## Example request\nAdded a 300ms delay to fix a race → next developer deletes the 'useless' delay and the bug returns; a comment 'delay required: payment webhook arrives before DB commit — 2026-07-03, Abderrahmen/CTO' would have saved them; the concept is protective annotation. Commented out a validation for a client exception → without who/why/until-when, nobody knows if it's safe to restore; the concept is a dated exception note. Changed a shared utility used by 5 pages → a note naming what was verified tells the next person the blast radius was considered; the concept is impact annotation. Junior fixed a bug in senior's module → marking 'modified by X (junior/backend), reviewed by Y' routes future questions to the right people; the concept is role-aware attribution.\n\n## Instructions\nAct as a developer who writes for the next person at the exact moment of the change, while the reason is still fresh. After any modification, classify it: SELF-EXPLANATORY (a reader sees what and why instantly — commit trace is enough, don't add noise) or NON-OBVIOUS (workaround, business exception, order-dependent logic, temporary fix, risky shared code — this needs an annotation at the spot). For non-obvious changes, write the comment right at the modified lines, in the file's comment syntax where comments are possible (code comments; for JSON or other no-comment formats, put the note in the sibling .md or changelog instead). The annotation carries four things in one or two lines: WHY the change exists (the real reason, the case it handles), WHO (name + role/level, so future questions find the right person and the reader can weigh the source), WHEN (date), and if temporary — the condition for removing it. Write the why as the thing a smart deleter needs to know: 'don't remove — handles X' beats 'changed this'. Never annotate to blame or to narrate the obvious; annotate to protect the change from being innocently destroyed. Before saving, re-read your note as the stranger of next year: if they'd still ask 'but why?', the note isn't done.\n\n## Metadata\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #163\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}