Agent skill
finish-hotfix
Complete and merge hotfix branch
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/finish-hotfix-fradser-dotclaude
SKILL.md
Your Task
- Load the
gitflow:gitflow-workflowskill using theSkilltool to access GitFlow workflow capabilities. - Gather context: current branch, git status, recent commits, version files.
- Validate branch follows
hotfix/*convention and working tree is clean. - Run tests if available. If tests fail, report the failures and exit without merging; the user must fix issues first.
- Normalize the provided version from
$ARGUMENTSto$HOTFIX_VERSION:- Accept
v1.2.3or1.2.3 - Normalize to
1.2.3(and tag asv$HOTFIX_VERSIONwhen tagging)
- Accept
- Update CHANGELOG:
- Identify previous version tag.
- Collect commits since previous tag following the user-facing principle defined in the
gitflow-workflowskill (include feat, fix, refactor, docs, perf, deprecate, remove, security; exclude chore, build, ci, test, merge commits). - Update
CHANGELOG.md(or create if missing) with the new version and date, following the format in${CLAUDE_PLUGIN_ROOT}/examples/changelog.md. - Commit the updated
CHANGELOG.mdto the current hotfix branch using conventional commit format (e.g.,chore: update changelog for v$HOTFIX_VERSION) and MUST include theCo-Authored-Byfooter.
- Merge into the production branch (often
main/production), create the version tag, then propagate the changes to the integration branch (oftendevelop/main), and push all changes. - Delete the hotfix branch locally and remotely. Skip deletion if the branch is shared or the user requests to keep it.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?