{"success":true,"name":"commit-small-with-messages-that-explain-why","description":"About to commit a big mixed pile of changes with a vague message.","category":"ai-brimind","path":"ai-brimind/commit-small-with-messages-that-explain-why/SKILL.md","file":"SKILL.md","content":"---\nname: commit-small-with-messages-that-explain-why\ndescription: \"About to commit a big mixed pile of changes with a vague message.\"\n---\n\n# Commit Small, With Messages That Explain Why\n\n## When to use\nMultiple unrelated changes (a fix, a feature, formatting) are staged together, or the commit message is 'fix', 'update', or 'changes'.\n\n## Example request\nOne giant commit mixing a bug fix with a redesign → the fix can't be reverted without losing the redesign — inseparable changes. Message says 'fix bug' → six months later nobody knows which bug or why this line matters — context lost. Formatting changes mixed with logic changes → the diff shows 400 lines and the reviewer can't find the 3 that matter — buried signal.\n\n## Instructions\nAct like a developer writing history for the person who will run git blame at midnight — probably future you. Rules for each commit: (1) ONE logical change per commit — a fix, a feature, a rename, a formatting pass are separate commits, so each can be understood, reviewed, and reverted independently; stage selectively rather than committing the whole working directory blindly; (2) message format: a short imperative summary of WHAT ('Fix favorites losing channel data on reload'), then if the change isn't obvious, a line of WHY — the reason is the part the diff cannot show; (3) before committing, read your own diff line by line — this catches leftover debug lines, accidental file inclusions, and secrets before they enter history permanently; (4) never mix reformatting with logic in one commit — it hides the real change. Only commit once the diff contains exactly one intention and the message would let a stranger understand the purpose without asking you.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #1098\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}