git-branch-strategy
Define branch topology, lifecycle rules, and merge policy that match team delivery and release risk. Use when branch protection, release/hotfix flow, and merge discipline must be explicit to prevent unsafe history changes; do not use for CI workflow design or application behavior implementation.
Works with
--- name: git-branch-strategy description: Define branch topology, lifecycle rules, and merge policy that match team delivery and release risk. Use when branch protection, release/hotfix flow, and merge discipline must be explicit to prevent unsafe history changes; do not use for CI workflow design or application behavior implementation. license: Apache-2.0 --- # Git Branch Strategy ## Overview Use this skill to design a branch model that teams can operate consistently under normal delivery and incident pressure. ## Scope Boundaries - Use this skill when the task matches the trigger condition described in `description`. - Do not use this skill when the primary task falls outside this skill's domain. ## Shared References - Existing governance baseline: - `references/git-governance-contract.md` - Topology decision guidance: - `references/branch-topology-decision-rules.md` ## Templates And Assets - Branch policy template: - `assets/branch-policy-template.md` - Branch protection checklist: - `assets/branch-protection-checklist.md` ## Inputs To Gather - Team size, collaboration style, and review ownership model. - Release cadence, hotfix urgency expectations, and support windows. - Branch protection capabilities on the hosting platform. - Current pain points (long-lived drift, merge conflicts, unclear ownership). ## Deliverables - Branch class policy with creation/deletion/merge rules. - Protection rules mapped to branch criticality. - PR synchronization policy by branch class. - Operational guidance for hotfix and release scenarios. ## Workflow 1. Define branch classes and responsibilities in `assets/branch-policy-template.md`. 2. Choose topology using `references/branch-topology-decision-rules.md`. 3. Set merge direction and sync policy per branch class. 4. Configure protection and verify with `assets/branch-protection-checklist.md`. 5. Publish policy with concrete examples for common workflows. ## Quality Standard - Branch classes are minimal, non-overlapping, and enforceable. - Protection rigor matches branch risk (stable > release > feature). - Merge/sync strategy is clear enough to avoid per-PR ambiguity. - Hotfix path is explicit and does not bypass traceability. ## Failure Conditions - Stop when branch classes overlap without clear operational purpose. - Stop when policy requires controls that the hosting platform cannot enforce. - Escalate when hotfix process conflicts with protection and compliance requirements.
More Git Workflows skills
git-commit
github/awesome-copilot
Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping
git-workflow-and-versioning
addyosmani/agent-skills
Structures git workflow practices. Use when making any code change. Use when committing, branching, resolving conflicts, or when you need to organize work across multiple parallel streams. Use when cutting a release, choosing a semantic version bump, tagging, or writing a changelog.
resolve-merge-conflicts
warpdotdev/common-skills
Resolve Git merge conflicts by extracting only unresolved paths, conflict hunks, and compact diffs instead of loading whole files into context. Use when a merge, rebase, cherry-pick, or stash pop stops on conflicts, when `git status` shows unmerged paths, or when files contain conflict markers.

