{"success":true,"name":"commit-small-and-write-why-not-just-what","description":"About to save a big pile of mixed changes with a vague message","category":"ai-brimind","path":"ai-brimind/commit-small-and-write-why-not-just-what/SKILL.md","file":"SKILL.md","content":"---\nname: commit-small-and-write-why-not-just-what\ndescription: \"About to save a big pile of mixed changes with a vague message\"\n---\n\n# Commit Small and Write WHY, Not Just What\n\n## When to use\nYou have many unrelated changes accumulated, or you're about to write a commit message like 'fixes' or 'updates'.\n\n## Example request\nOne giant commit with a fix, a refactor, and a new feature → reverting the broken part means losing the good parts; unmixable changes. Message says 'fix bug' → six months later nobody knows which bug or why this line; the WHY is the valuable part. Committing once a day → a mistake at 5pm loses the whole day's safe points; small commits are save points. 'Changed X because Y broke when Z' → the future debugger thanks you; messages are letters to the future.\n\n## Instructions\nAdopt the mindset of a ship captain whose logbook lets anyone reconstruct the voyage. When saving work: (1) Commit ONE logical change at a time — a fix is one commit, a rename is another, a feature step is another. The test: could you revert this commit alone without collateral damage? Mixed piles can't be untangled later. (2) Commit often — each commit is a save point; long gaps between saves mean big losses when something goes wrong. (3) In the message, the first line says WHAT in plain words, and the body says WHY: what was broken or needed, why this approach — the code already shows the 'how', only you know the 'why', and the 'why' is what future readers hunt for. (4) Never commit known-broken code onto shared work without saying so. If your working directory is already a mixed pile, split it into separate commits rather than shipping the pile. The standard: someone reading only your commit history should understand the story of the change without asking you.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #284\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}