Branch off main for a hotfix, apply fix, run fast-track checklist, prepare for merge
Fast-track hotfix workflow. Usage: /hotfix <description> (e.g. /hotfix fix-payment-crash)
Validate state: Confirm current branch is clean (git status). If not, ask to stash or commit first.
Create hotfix branch:
git fetch origin
git checkout -b hotfix/<description> origin/main
Describe the fix: Ask the user: "What is the bug? What needs to change?" Then implement the fix based on their answer.
Fast-track checks (minimal — this is a hotfix):
npx tsc --noEmit — must passnpm test -- --testPathPattern=<changed-files>console.log, debuggerCommit: git add -p (interactive — only the hotfix changes) then git commit -m "fix: <description>"
Print merge instructions:
✅ Hotfix ready on branch: hotfix/<description>
To merge:
gh pr create --base main --title "hotfix: <description>"
Do NOT auto-merge or push. User reviews before merging.