From gitflow
Finalizes a hotfix and merges it into main and develop using git-flow. This skill should be used when the user asks to "finish a hotfix", "merge hotfix branch", "complete hotfix", "git flow hotfix finish", or wants to finalize a hotfix.
How this command is triggered — by the user, by Claude, or both
Slash command
/gitflow:SKILL versionhaikufinish-hotfix/This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
## Pre-operation Checks
Verify working tree is clean and current branch matches `hotfix/*` per `${CLAUDE_PLUGIN_ROOT}/references/invariants.md`.
## Phase 1: Identify Version
**Goal**: Determine hotfix version from current branch or argument.
**Actions**:
1. If `$ARGUMENTS` provided, use it as version (strip 'v' prefix if present)
2. Otherwise, extract from current branch: `git branch --show-current` (strip `hotfix/` prefix)
3. Store clean version without 'v' prefix (e.g., "1.0.1")
## Phase 2: Pre-finish Checks
**Goal**: Run tests before finishing.
**Actions**:
1. Identify test comman...Verify working tree is clean and current branch matches hotfix/* per ${CLAUDE_PLUGIN_ROOT}/references/invariants.md.
Goal: Determine hotfix version from current branch or argument.
Actions:
$ARGUMENTS provided, use it as version (strip 'v' prefix if present)git branch --show-current (strip hotfix/ prefix)Goal: Run tests before finishing.
Actions:
Goal: Generate changelog from commits.
Actions:
git tag --sort=-v:refname | head -1${CLAUDE_PLUGIN_ROOT}/references/changelog-generation.md${CLAUDE_PLUGIN_ROOT}/examples/changelog.mdchore: update changelog for v$VERSION with Co-Authored-By footerGoal: Complete hotfix using git-flow-next CLI.
Actions:
git flow hotfix finish $VERSION --tagname "v$VERSION" -m "Release v$VERSION"git branch --show-current (should be on develop)git push origin main develop --tagsnpx claudepluginhub rootial/dotclaude --plugin gitflow/SKILLEnables work verification for a task. Claude completes the work, verifies it, and appends a verified tag before session exit.
/SKILLResolves a GitHub issue by creating an isolated worktree, implementing a TDD fix, and opening a PR with auto-closing keywords.
/SKILLSurfaces the current session task from a state file and evaluates its clarity and completeness. Reports completion status or identifies remaining steps.