Skip to content
Development
Command

/flow-release

Complete a feature/bugfix/hotfix flow by merging back to the target branch.

From plugin
rohitg00-claude-code-toolkit
2.5k199 skills138 agents199 commands
Install
$ npx -y skills add rohitg00/awesome-claude-code-toolkit --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/flow-release

Context preview

What this command does when you run it.

Complete a feature/bugfix/hotfix flow by merging back to the target branch.

Command definition

flow-release.md

Complete a feature/bugfix/hotfix flow by merging back to the target branch.

Steps

1. Detect the current branch type from the prefix (feature/, bugfix/, hotfix/). 2. Run pre-merge checks:

  • All tests pass.
  • No merge conflicts with the target branch.
  • Branch is up to date with the target.

3. Determine the merge target:

  • feature/bugfix: merge to `develop` or `main`.
  • hotfix: merge to both `main` and `develop`.

4. Create a pull request if one does not exist:

  • `gh pr create --base <target> --title "<type>: <description>"`.

5. If auto-merge is requested:

  • Rebase on target: `git rebase origin/<target>`.
  • Merge with no-ff: `git merge --no-ff <branch>`.
  • Tag if hotfix: `git tag -a v<version> -m "Hotfix: <description>"`.

6. Clean up: delete the feature branch locally and remotely. 7. For hotfix, cherry-pick to develop if not merged there.

Format

Flow completed:
  Branch: <branch-name>
  Merged to: <target-branch>
  PR: <url>
  Tag: <tag if hotfix>
  Cleanup: branch deleted

Changes:
  - <N> commits, <N> files changed

Rules

  • Never merge without passing tests and CI checks.
  • Use `--no-ff` merges to preserve branch history in the merge graph.
  • Tag hotfix releases immediately after merging to main.
  • Ensure hotfix changes also reach the develop branch.
  • Confirm before deleting branches with unmerged commits.
Ships withrohitg00-claude-code-toolkit

The most comprehensive toolkit for Claude Code -- 135 agents, 35 curated skills (+400,000 via SkillKit), 42 commands, 176+ plugins, 20 hooks, 15 rules, 7 templates, 15 MCP configs, 26 companion apps, 53 ecosystem entries, and more.

Get the whole plugin