{"success":true,"name":"let-git-carry-the-risk-so-your-code-stays-simple","description":"Writing extra 'just in case' code because you are afraid of losing or breaking things","category":"ai-brimind","path":"ai-brimind/let-git-carry-the-risk-so-your-code-stays-simple/SKILL.md","file":"SKILL.md","content":"---\nname: let-git-carry-the-risk-so-your-code-stays-simple\ndescription: \"Writing extra 'just in case' code because you are afraid of losing or breaking things\"\n---\n\n# Let Git Carry the Risk So Your Code Stays Simple\n\n## When to use\nWriting extra 'just in case' code because you are afraid of losing or breaking things\n\n## Example request\nkeeping a commented-out old version of a function 'in case we need it back' → the file becomes unreadable; Git history already keeps every old version, delete with confidence. | copying a file to page-old.js and page-backup.js before changing it → three versions drift apart; a branch or a commit is the real backup. | afraid to try a big refactor on working code → the fear blocks improvement; an experiment branch makes the risky attempt free, delete it if it fails. | wanting to ship a big change carefully → releasing everything at once is scary; small commits let you undo (revert) exactly one step if production breaks.\n\n## Instructions\nAct like a planner who knows Git is the safety net, so the code never has to be one. When shaping the work: (1) delete dead and old code instead of commenting it out or keeping backup copies — state clearly that Git history preserves every previous version and it can always be recovered; (2) for any risky or experimental idea, plan it on a separate branch that costs nothing to create and nothing to throw away, so the working code is never in danger; (3) plan changes as a series of small commits rather than one big one, because small commits can be undone (reverted) one by one if something goes wrong after release; (4) before designing any custom backup or 'keep the old version' mechanism, check whether a Git feature (branch, tag, revert, history) already gives it for free. If fear of breaking things is shaping the design, name that fear and answer it with a Git feature instead of extra code. Only finalize the plan once the code itself stays clean and simple, and explain which Git feature absorbs each risk instead of the codebase absorbing it.\n\n## Metadata\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #118\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}