From cal
Enter hotfix mode. Creates a worktree-based hotfix branch off main. Parks current feature work safely. Usage: /cal:hotfix [version]
How this skill is triggered — by the user, by Claude, or both
Slash command
/cal:hotfix version (optional) - Hotfix version number, e.g. 2.1version (optional) - Hotfix version number, e.g. 2.1The summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Purpose:** Structured entry into hotfix mode using git worktrees. Parks current feature work and creates an isolated hotfix environment.
Purpose: Structured entry into hotfix mode using git worktrees. Parks current feature work and creates an isolated hotfix environment.
Before anything, check:
# Current branch
git branch --show-current
# Uncommitted changes
git status --short
# Existing worktrees
git worktree list
If uncommitted changes exist: Warn the user. Ask them to commit or stash first. Do NOT proceed with dirty working directory.
If already in hotfix mode: Check for cal/active-hotfix.json. If it exists, warn: "Already in hotfix mode on {branch}. Run /cal:hotfix-done first or delete cal/active-hotfix.json to override."
If $ARGUMENTS contains a version number, use it. Otherwise:
v2.0)2.1)# Create the hotfix branch off main
git branch hotfix/$VERSION main
# Create worktree in .worktrees/ directory
git worktree add .worktrees/hotfix-$VERSION hotfix/$VERSION
Write cal/active-hotfix.json:
{
"hotfixBranch": "hotfix/$VERSION",
"basedOn": "main",
"basedOnCommit": "<main HEAD short hash>",
"parkedBranch": "<current branch before hotfix>",
"worktreePath": ".worktrees/hotfix-$VERSION",
"mergeChain": ["hotfix/$VERSION", "main", "<parked branch if not main>"],
"started": "<ISO date>"
}
Update the ## Current Work section in CLAUDE.md to reflect hotfix mode:
## Current Work
**Branch:** `hotfix/$VERSION`
**Mode:** hotfix
**Hotfix:** `hotfix/$VERSION` (parked: `<previous branch>`)
**Merge chain:** hotfix/$VERSION -> main -> <feature branches>
**Active:** Hotfix in progress
Ensure .worktrees/ is in .gitignore:
grep -q '.worktrees/' .gitignore 2>/dev/null || echo '.worktrees/' >> .gitignore
Tell the user:
Hotfix worktree created.
Branch: hotfix/$VERSION
Worktree: .worktrees/hotfix-$VERSION/
Based on: main ($COMMIT)
Parked: $PREVIOUS_BRANCH (untouched)
Work in the worktree directory or switch to the hotfix branch.
When done, run `/cal:hotfix-done`.
cal/active-hotfix.json is the source of truth for hotfix state./cal:hotfix-done which handles merges and cleanup.npx claudepluginhub pixley-growth/cal-plugin --plugin calCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.