Git branch strategy
Skill causebefore/git-workflow-skills/skills/git-branch-strategy
Use when the user asks to choose, define, review, or document a Git branching model for a software project, including main/dev/feature/release/hotfix rules, single-developer vs team workflows, trunk-based development, protected branches, or branch naming policies. Do not use for committing code, opening PRs, tagging releases, or hotfix execution.From its SKILL.md
npx -y skills add causebefore/git-workflow-skills --skill git-branch-strategyAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.2 KB, as published. Nobody here has run it
Git Branch Strategy
Mission
Choose, explain, and document a Git branching strategy for a generic software project.
Startup
- Read
.git-workflow.ymlif present. - Resolve shared resources from
${CLAUDE_PLUGIN_ROOT}/shared; if running outside Claude Code, use the nearest ancestor containinggit-workflow-skills.yml. - Inspect Git state with
git status --short --branch,git branch -vv, andgit remote -v. - Do not mutate files or branches until the user confirms the strategy.
Inputs
- Team size and release frequency.
- Default branch and integration branch.
- Whether old versions must be maintained.
- Whether CI and protected branches are available.
Workflow
- Infer the current repository state.
- Compare the project against
simple-dev-main,release-branch, andtrunk-based. - Recommend one model with branch rules and merge paths.
- Produce a
.git-workflow.ymlsnippet. - Optionally produce a branch policy document from
shared/templates/branch-policy.md.
Safety Gates
Creating branches, modifying .git-workflow.yml, or changing branch protection requires explicit user confirmation.
Template Override
See shared/references/template-override.md for the standard override mechanism.
Shared Resources
shared/references/branch-models.mdshared/references/safety-rules.mdshared/references/template-override.mdshared/templates/branch-policy.md(useresolve_template("branch-policy.md")to respect overrides)shared/scripts/check_branch_name.py
Handoff
- Start normal development: use
git-feature-workflow. - Define commit rules: use
git-commit-discipline. - Publish a version: use
git-release-workflow.
Output
Return the recommended model, branch rules, protection suggestions, config snippet, and next step.