ワンクリックで
hotfix
Enter hotfix mode. Creates a worktree-based hotfix branch off main. Parks current feature work safely. Usage: /cal:hotfix [version]
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Enter hotfix mode. Creates a worktree-based hotfix branch off main. Parks current feature work safely. Usage: /cal:hotfix [version]
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
SwiftUI iOS/macOS 27 delta reference (WWDC 2026) — Apple-authored references vendored from Xcode 27's exported agent skills, plus Cal SDK-verified extras. Use for any SwiftUI work targeting SDK 27. Use when a SwiftUI view using @State fails to compile with "used before being initialized", "invalid redeclaration of synthesized property", or "extraneous argument label" errors after an SDK update (@State became a macro in SDK 27 — the obvious fix of reordering init assignments is WRONG; consult references/state-macro.md first); when @ViewBuilder/@ContentBuilder code hits ambiguous overloads in overlay/background or type-check regressions; when adding drag-to-reorder to any container via reorderable()/reorderContainer; when working with AsyncImage caching or AsyncImage(request:); when adding swipe actions to rows outside List via swipeActionsContainer(); when controlling toolbar overflow (visibilityPriority, ToolbarOverflowMenu, toolbarMinimizeBehavior); when presenting alert/confirmationDialog from an optional i
iOS/macOS/iPadOS 27 framework reference (WWDC 2026). Corrects stale model knowledge about App Intents, App Schemas, Foundation Models, and Siri AI. Invoke when building or reviewing iOS 27 / WWDC 2026 features, or when a model assumes iOS 26 / SiriKit is current.
Apple Liquid Glass (iOS 26, refined in 27) design system reference. Invoke when building UI, reviewing visual design, or implementing glass effects, background extension, tab bar minimize, typography, spacing, animations, or accessibility.
Advance the pipeline - find and execute next step
Project setup - scan codebase, create Cal structure, generate or improve CLAUDE.md
Scan codebase for small code hygiene wins — TODOs, dead code, naming issues. General-purpose tool for any project.
| name | hotfix |
| description | Enter hotfix mode. Creates a worktree-based hotfix branch off main. Parks current feature work safely. Usage: /cal:hotfix [version] |
| argument-hint | version (optional) - Hotfix version number, e.g. 2.1 |
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.