From git-workflow-toolkit
Recommends Git branching strategies like GitHub Flow, Gitflow, Trunk-Based Development based on team size, deployment frequency, and project constraints.
How this skill is triggered — by the user, by Claude, or both
Slash command
/git-workflow-toolkit:branch-strategy-advisorThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Recommend optimal branching strategies for your project.
Recommend optimal branching strategies for your project.
Choose strategy based on team and deployment:
Team Size:
Deployment Frequency:
Release Model:
Technical Constraints:
GitHub Flow - Best for:
Structure:
main (production)
├── feature/user-auth
├── feature/payment-integration
└── bugfix/login-error
Workflow:
Pros: Simple, fast, continuous deployment Cons: Requires good CI/CD, no release staging
Gitflow - Best for:
Structure:
main (production)
develop (integration)
├── feature/new-dashboard
├── feature/api-v2
├── release/v2.0
└── hotfix/critical-bug
Workflow:
Pros: Structured, supports multiple versions, clear release process Cons: Complex, slower, more overhead
Trunk-Based Development - Best for:
Structure:
main (trunk)
├── short-lived-feature-1
└── short-lived-feature-2
Workflow:
Pros: Fast integration, simple, encourages small changes Cons: Requires discipline, needs feature flags, high test coverage
GitLab Flow - Best for:
Structure:
main (development)
├── feature/new-feature
├── staging (staging environment)
└── production (production environment)
Workflow:
Pros: Environment-based, flexible, clear promotion path Cons: More branches to manage, can be slower
Recommended conventions:
feature/short-description
feature/TICKET-123-description
feature/user-auth-jwt
bugfix/short-description
bugfix/ISSUE-456-null-pointer
bugfix/login-validation
hotfix/critical-issue
hotfix/security-patch
hotfix/payment-failure
release/version
release/v2.0.0
release/2024-Q1
chore/maintenance-task
chore/update-dependencies
chore/cleanup-logs
Naming rules:
Main/Master Branch:
Develop Branch (if using Gitflow):
Feature Branches:
Release Branches:
Merge Commit - When to use:
Squash and Merge - When to use:
Rebase and Merge - When to use:
Fast-Forward Only - When to use:
| Strategy | Team Size | Deployment | Complexity | Best For |
|---|---|---|---|---|
| GitHub Flow | Small-Medium | Continuous | Low | Web apps, SaaS |
| Gitflow | Medium-Large | Scheduled | High | Enterprise, versioned products |
| Trunk-Based | Any | Continuous | Medium | High-performing teams |
| GitLab Flow | Medium | Regular | Medium | Multi-environment deployments |
Scenario: Startup with 3 developers
Scenario: Enterprise with 50 developers
Scenario: SaaS with daily deployments
Scenario: Mobile app with app store releases
Scenario: Open source project
From no strategy to GitHub Flow:
From GitHub Flow to Gitflow:
From Gitflow to Trunk-Based:
Branch Hygiene:
Code Review:
CI/CD Integration:
Documentation:
For complex scenarios:
npx claudepluginhub p/armanzeroeight-git-workflow-toolkit-plugins-git-workflow-toolkitSelects and configures a Git branching model (trunk-based, GitHub Flow, GitFlow) aligned with team size, release cadence, and deployment frequency.
Design branching strategies (git flow, trunk-based development, etc.) that support parallel work while maintaining stability. Use when establishing version control discipline or managing deployment complexity.
Guides teams in choosing a branching strategy (trunk-based, GitHub Flow, Git Flow, GitLab Flow), defining commit conventions (Conventional Commits), setting up PR workflows, managing releases, and establishing git standards.