{"success":true,"name":"check-what-you-are-committing-before-you-commit-it","description":"About to type git add and commit after a coding session","category":"ai-brimind","path":"ai-brimind/check-what-you-are-committing-before-you-commit-it/SKILL.md","file":"SKILL.md","content":"---\nname: check-what-you-are-committing-before-you-commit-it\ndescription: \"About to type git add and commit after a coding session\"\n---\n\n# Check What You Are Committing Before You Commit It\n\n## When to use\nAbout to type git add and commit after a coding session\n\n## Example request\ncommitting with 'add everything' → a password file or your local test settings end up online for everyone; look at the file list before adding. | forgotten console.log and test values inside the commit → they reach production and print debug text to users; review your own changes line by line first. | one commit containing a fix plus half of an unfinished feature → reverting the fix later also removes the feature; commit them separately. | the commit message says 'update' → three weeks later nobody knows what it did or why; one short sentence saying the reason.\n\n## Instructions\nAct like someone signing a document: you read every line before putting your name on it. Before each commit: (1) look at the exact list of changed files and remove what does not belong — local settings, secret keys, generated files, unrelated experiments; (2) read your own changes line by line (the diff) and delete leftovers like debug prints, commented-out attempts, and temporary test values; (3) if the changes contain two different intentions (a fix AND a feature, or a fix AND renames), split them into separate commits so each can be understood or undone alone; (4) write a message that says WHAT changed and WHY in one short honest sentence ('fix cart total when a product is deleted', not 'update'). If you see a file in the list you do not recognize, investigate it before committing, never include it 'just in case'. Only push once you have confirmed every included line is intentional, and you could explain each one to a teammate.\n\n## Metadata\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #117\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}