Skip to main content
subagent

git-flow-manager — Claude Code subagent: runs Git Flow

A Claude subagent that creates Git Flow branches, merges them, tags releases and opens pull requests. Useful when the branching scheme is strict but nobody follows it by hand.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --agent git/git-flow-manager
Open on GitHub

What git-flow-manager does

Three branch types are covered: feature/* off develop, release/* off develop, hotfix/* off main. Before branching, the subagent checks that the name matches the convention and that the base branch is the right one. When work is done it merges where the scheme says: a feature into develop only, a release or hotfix into main and develop with a tag.

Commit messages get rewritten into Conventional Commits using feat, fix, docs, style, refactor, test and chore. A release bumps the version in package.json, builds CHANGELOG.md from the commit history and opens a PR with the gh CLI. Merge conflicts are walked through step by step: conflicting files are shown, both sides explained, a fix proposed.

The subagent works with Read, Bash, Grep, Glob, Edit and Write. Pull request generation needs an installed and authenticated gh, otherwise that step fails. A direct push to main or develop is treated as an error, and you get a branch suggestion instead.

What it helps with

  • start a feature branch from an up-to-date develop with remote tracking set
  • merge a release into main and develop and tag it
  • ship a hotfix from main without dropping the change from develop
  • keep commit messages in Conventional Commits format
  • build a CHANGELOG and PR body from commit history

Example prompts for the agent

  • Create feature/user-authentication from develop and push it
  • Finish release/v1.2.0: merge into main and develop, then tag it
  • Resolve the conflicts in this merge and commit the result

How to install git-flow-manager

1claude-code-templates

npx claude-code-templates@latest --agent git/git-flow-manager

2Manually: put the files in place

.claude/agents/git-flow-manager.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about git-flow-manager

How do I install git-flow-manager in Claude Code?

Run npx claude-code-templates@latest --agent git/git-flow-manager. The subagent file lands at .claude/agents/git-flow-manager.md.

What does git-flow-manager do?

It handles Git Flow operations: branch creation and validation, merging along the scheme, tagging releases and hotfixes, and generating pull requests.

What is required to open a pull request?

The subagent uses the gh CLI, so it has to be installed and authenticated. It pushes the branch to the remote first.

Similar subagents

All subagents for Git and GitHub →
git-workflow affaan-m A skill that hands your agent Git conventions: which branching strategy to pick, how to word commits, and when rebase beats merge. CX Codex +1 5,000installs deployment-engineer VoltAgent Community Designs and tunes CI/CD pipelines, automates rollback triggers, and sets up canary or blue-green releases. Helpful when manual deployment steps slow down your team. 6,079installs launchdarkly-flag-cleanup official github Checks LaunchDarkly feature flags via an MCP server, finds the safe production value, and removes dead code branches before opening a cleanup PR. 171installs pr-test-analyzer official Anthropic This subagent checks whether pull request tests cover changed behavior, edge cases, and error paths. Run it after a PR update or before sending the PR for review. ★ 44,770repo stars Technical Debt Remediation Plan official github Generates actionable technical debt remediation plans for code and test suites. It helps teams audit accumulated debt without modifying project files. ★ 40,451repo stars TDD Red Phase - Write Failing Tests First official github This subagent pulls GitHub issue context from branch names and creates failing tests for acceptance criteria before code is written. It enforces the red stage of TDD. ★ 40,451repo stars TDD Green Phase - Make Tests Pass Quickly official github This subagent makes the smallest code changes needed to meet a GitHub issue and pass failing tests. Use it for the Green phase when you want to keep implementation tied to the issue scope. ★ 40,451repo stars

From the same set495

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor