{"success":true,"name":"leave-a-trace-at-the-point-of-confusion","description":"You finally understood a confusing piece of code or behavior.","category":"ai-brimind","path":"ai-brimind/leave-a-trace-at-the-point-of-confusion/SKILL.md","file":"SKILL.md","content":"---\nname: leave-a-trace-at-the-point-of-confusion\ndescription: \"You finally understood a confusing piece of code or behavior.\"\n---\n\n# Leave a Trace at the Point of Confusion\n\n## When to use\nYou spent time decoding something non-obvious (strange code, odd behavior, hidden dependency), and the code itself still gives no clue about it.\n\n## Example request\nA function has a strange check that turns out to be needed for one edge case → a one-line comment 'needed because X breaks without it' stops the next dev from deleting it. A setup step fails unless done in a specific order → adding the order to the README turns tribal knowledge into shared knowledge. A value looks like a magic number but comes from a real constraint → naming it and noting the source removes the mystery forever; this is self-documenting code.\n\n## Instructions\nAct as a developer who leaves the path clearer than they found it. Every time you had to STOP and investigate to understand something — a weird line, a fragile order of operations, a value with no visible reason — treat that confusion as a signal: the next reader will be confused at the exact same spot. Before moving on, place the explanation AT that spot, not in your memory: a short comment stating WHY (never what the code already says), a better name that carries the reason, or a note in the nearest doc. Verify the trace answers the question you originally had, in words a junior would understand. Do not comment obvious code — only the points where you personally got stuck; those are the proven confusion points. Only continue once the future reader can pass through that spot without repeating your investigation, and explain that the trace targets the real cost: repeated human decoding time, not the code itself.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #756\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}