{"success":true,"name":"agree-on-a-git-branch-plan-before-the-team-starts-coding","description":"Starting a project or feature with Git and no agreed way of working","category":"ai-brimind","path":"ai-brimind/agree-on-a-git-branch-plan-before-the-team-starts-coding/SKILL.md","file":"SKILL.md","content":"---\nname: agree-on-a-git-branch-plan-before-the-team-starts-coding\ndescription: \"Starting a project or feature with Git and no agreed way of working\"\n---\n\n# Agree on a Git Branch Plan Before the Team Starts Coding\n\n## When to use\nStarting a project or feature with Git and no agreed way of working\n\n## Example request\neveryone pushes directly to the main branch → the app in production breaks because unfinished work landed there; keep main always working and do work on separate branches. | one branch called 'dev-final-v2-real' living for two months → merging it back becomes a nightmare of conflicts; short branches, one per feature or fix. | nobody knows which branch matches what is online → a bug in production cannot be reproduced; one branch (main) must always mirror production. | two people working on the same file in the same branch → they overwrite each other's work; separate branches per task avoid stepping on each other.\n\n## Instructions\nAct like a team organizer who sets the road rules before the cars start driving. Before the coding starts: (1) decide and write down the branch plan in simple words: which branch is always safe and matches production (usually main), where new work happens (one short branch per feature or fix), and how work returns to main (a pull request with a review, or at least a self-check); (2) keep the rule 'main always works' sacred — nothing unfinished lands there; (3) prefer short-lived branches (days, not months) so merges stay small and easy; (4) before inventing a custom workflow, check the standard ones (like the simple 'branch per feature, merge into main' flow) — they exist because they work for most teams. If the team size or release rhythm is unclear, ask before choosing a complicated plan; a small team needs a simple plan. Only start coding once everyone knows where their work goes and how it reaches production, and explain how this plan keeps main safe and merges small.\n\n## Metadata\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #115\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}