| name | git-flow |
| description | Enforces Git Flow branch naming and commit message conventions. Use for branch creation, commit messages, PR descriptions, release planning, and hotfix workflows. Validates conventional commits format and git hygiene. Keywords: branch, feature, commit, PR, pull request, merge, release, ticket, hotfix, gitflow, rama, commit, parche, versión, flujo de trabajo. |
| allowed-tools | ["run_in_terminal","read_file"] |
Git Flow Skill
Branch Naming Convention
feature/{ticket-id}-short-description
fix/{ticket-id}-short-description
refactor/{ticket-id}-short-description
chore/{ticket-id}-short-description
hotfix/{ticket-id}-short-description
release/v{major}.{minor}.{patch}
Examples:
feature/FEAT-042-user-onboarding
fix/FIX-017-handle-expired-token
chore/CHORE-003-update-dependencies
hotfix/FIX-099-critical-auth-bypass
Rules:
- Never push directly to
main, master, develop, or release/*
- All feature work: PR from
feature/* → develop
- Hotfixes: PR from
hotfix/* → main AND develop
- Releases:
release/* → main, then tag, then merge back to develop
Commit Message Format (Conventional Commits)
{type}({scope}): {short description}
[optional body]
[optional footer: closes #issue, BREAKING CHANGE: description]
Types
| Type | Use When |
|---|
feat | New feature or capability |
fix | Bug fix |
refactor | Code restructuring — no behavior change |
test | Adding or modifying tests |
chore | Dependency updates, config, tooling |
docs | Documentation only changes |
style | Formatting, spacing — no logic change |
perf | Performance improvement |
ci | CI/CD pipeline changes |
Examples
feat(auth): add OAuth callback handler
fix(payments): handle expired session token
refactor(domain): extract UserPreferences value object
test(user): add CreateUserCommandHandler unit tests
chore(deps): bump eslint to 9.x
docs(api): update OpenAPI spec for payment endpoint
ci(github): add security audit step to workflow
Pre-Commit Checklist
Before every commit:
PR Checklist
Before opening a PR:
Branch Lifecycle
git checkout develop
git pull origin develop
git checkout -b feature/FEAT-042-user-onboarding
git add -p
git commit -m "feat(user): add onboarding command handler"
git fetch origin
git rebase origin/develop
git push origin feature/FEAT-042-user-onboarding
Release Process
git checkout develop && git pull
git checkout -b release/v1.2.0
npm version 1.2.0
git checkout main && git pull
git tag v1.2.0
git push origin v1.2.0
git checkout develop
git merge main
git push origin develop
Hotfix Process
git checkout main && git pull
git checkout -b hotfix/FIX-099-critical-auth-bypass
git commit -m "fix(auth): prevent bypass via malformed JWT"
git tag v1.1.1
git push origin v1.1.1
Git Hygiene Commands
git diff --cached | grep -iE "api_key|password|secret|token|private_key"
git branch --merged develop | grep -v "develop\|main\|master" | xargs git branch -d
git rebase -i origin/develop