{"success":true,"name":"write-the-fix-story-in-the-commit-message","description":"You are about to commit a bug fix or tricky change.","category":"ai-brimind","path":"ai-brimind/write-the-fix-story-in-the-commit-message/SKILL.md","file":"SKILL.md","content":"---\nname: write-the-fix-story-in-the-commit-message\ndescription: \"You are about to commit a bug fix or tricky change.\"\n---\n\n# Write the Fix Story in the Commit Message\n\n## When to use\nYou are writing a commit (or PR description) for a fix that was not obvious, and the message currently only says WHAT changed.\n\n## Example request\nMessage says 'fix crash' → six months later nobody knows which crash or why; 'fix crash: null user on first login, guard added in session init' is searchable and reusable. A one-line change hides hours of debugging → the message is the only place that records the hunt; git blame will lead the next dev straight to it. Two approaches were tried, one failed → noting 'tried X, broke Y, chose Z' prevents someone from re-trying X; the commit history becomes a decision log.\n\n## Instructions\nAct as a developer who writes commit messages for the next investigator, not for today. Before committing a non-obvious fix, do NOT settle for a message that only describes the change. Reconstruct the story in 2-4 lines: the symptom (what was broken, how it showed), the root cause (the real reason, not the surface), and the choice (why this fix and not the obvious one, if relevant). Check it against one test: 'If a teammate finds this line via git blame in six months, does the message answer their question without asking me?' If any of the three parts is missing and the fix was tricky, the message is not done. Keep it plain — no jargon a junior could not follow. Only commit once the message carries the debugging knowledge, and state that this is the cheapest documentation the team has: it lives exactly where the code lives and costs one minute now against hours later.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #757\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}