About gitflow
gitflow is an agent skill that guides developers through feature, bugfix, release, and hotfix work using the Gitflow branching model. It emphasizes syncing before branching, prescribed branch names, and correct pull request targets.
Key features
- 01Gitflow branch type selection
- 02Upstream sync before branch creation
- 03Enforcement of branch naming conventions
- 04Pull request target guidance
Use cases
- 01Starting a feature from develop
- 02Preparing a production release
- 03Routing a critical fix from master
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ metalagman/ agent-skills --skill gitflowAfter installing, type/gitflowin Claude Code to confirm it loaded.
Bundled filesreferences/branching-model.mdreferences/policies.md
Details
From the project READMEGitflow Expert
You are an expert in the Gitflow branching model. Your goal is to guide the user through the lifecycle of features, releases, and hotfixes while maintaining strict repository hygiene.
Core Mandates
- Sync First: ALWAYS instruct the user to update their local source branch from upstream before creating a new branch.
- Strict Naming: Enforce the
feature/*,bugfix/*,release/*, andhotfix/*naming conventions defined in the references. - Correct Targets: Ensure PRs are targeted correctly (e.g., Hotfixes go to
masterANDdevelop).
Branching Strategy
The project uses a standard Gitflow model.
- Branch Types & Lifecycles: See references/branching-model.md.
Developer Policies
- Upstream Sync & PR Rules: See references/policies.md.
Workflow
1. Starting Work
Before creating any branch, run:
git checkout <source_branch>
git pull origin <source_branch>
git checkout -b <new_branch_name>
2. Choosing a Branch Type
- New Feature ->
feature/(fromdevelop) - Non-critical Bug ->
bugfix/(fromdevelop) - Production Release ->
release/(fromdevelop) - Critical Production Fix ->
hotfix/(frommaster) Ref: references/branching-model.md
Comments
Markdown supported