ワンクリックで
hotfix
Quick patch workflow for production issues with minimal risk.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Quick patch workflow for production issues with minimal risk.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | hotfix |
| description | Quick patch workflow for production issues with minimal risk. |
Quick patch workflow for production issues with minimal risk.
/hotfix <issue> [--from <branch>] [--cherry-pick <commit>]
issue: Issue number, description, or "rollback"--from <branch>: Base branch (default: production/main)--cherry-pick <commit>: Apply specific commit as hotfixWhen this skill is invoked:
Autonomy:
Safety:
Urgency:
Understand the issue:
Determine approach:
Create hotfix branch:
git checkout main
git pull origin main
git checkout -b hotfix/{issue_number}-{description}
Implement minimal fix:
Add targeted test:
Verify locally:
{test_command} tests/ -v
{lint_command}
Run full test suite:
{test_command} tests/ --tb=short
Security check:
{security_scan_command}
Review changes:
git diff main...HEAD
Create commit:
git commit -m "$(cat <<'EOF'
hotfix(scope): brief description
Issue: #123
Severity: Critical
Impact: All users experiencing login failures
Root cause: [brief explanation]
Fix: [what was changed]
Co-Authored-By: Claude <noreply@anthropic.com>
EOF
)"
Push and create PR:
git push -u origin hotfix/{branch_name}
gh pr create \
--title "HOTFIX: brief description" \
--body "[hotfix PR template]" \
--label "hotfix,urgent"
Request expedited review:
After merge:
When /hotfix rollback is invoked:
Identify last good commit:
git log --oneline -20
Create revert commit:
git revert <bad_commit> --no-edit
Or deploy previous version:
git checkout <last_good_commit>
Verify rollback:
When --cherry-pick is specified:
Fetch the commit:
git fetch origin
git cherry-pick <commit_hash>
Resolve conflicts if any
Verify cherry-pick:
{test_command}
## HOTFIX: [Brief Description]
**Severity:** Critical / High / Medium
**Issue:** #123
**Incident:** [Link to incident if applicable]
### Problem
[1-2 sentences describing what's broken]
### Impact
- Affected users: [All / Subset / Specific]
- Started: [Timestamp]
- Current workaround: [If any]
### Root Cause
[Brief technical explanation]
### Fix
[What this PR changes]
### Testing
- [ ] Unit test added for failure case
- [ ] Full test suite passes
- [ ] Manually verified fix
### Rollback Plan
[How to rollback if this fix causes issues]
### Follow-up
- [ ] Post-mortem scheduled
- [ ] Long-term fix ticket created: #XXX
---
**HOTFIX - Expedited review requested**
$ /hotfix 789 --from main
HOTFIX Mode Activated
Issue: #789 - Users unable to login
Severity: Critical
Branch: hotfix/789-login-failure
Creating hotfix branch from main...
✅ Branch created: hotfix/789-login-failure
Analyzing issue...
Reading: src/services/auth.py
Reading: src/api/login.py
Reading: recent commits
Root cause identified:
Commit abc123 introduced a typo in token validation
`token.exipres` instead of `token.expires`
Implementing fix...
✅ Fixed typo in src/services/auth.py:45
Adding regression test...
✅ Created tests/unit/test_auth_token_expiry.py
Running verification...
✅ Tests pass (145/145)
✅ Linting passes
✅ Security scan clean
Ready to commit:
hotfix(auth): fix token expiration check typo
Issue: #789
Severity: Critical
Impact: All users unable to login due to token validation failure
Root cause: Typo in token.expires property access (exipres → expires)
Fix: Corrected property name in validation check
Co-Authored-By: Claude <noreply@anthropic.com>
Creating PR...
✅ PR created: https://github.com/org/repo/pull/456
✅ Labels added: hotfix, urgent
✅ Reviewers notified
Next steps:
1. Get expedited review
2. Merge when approved
3. Monitor deployment
4. Update incident channel
Write a structured handoff at session end. Preserves context so the next agent can resume without human briefing. Invoke before ending any feature session longer than 30 minutes.
Multi-perspective code review against project standards with P1/P2/P3 severity classification. Works in Claude Code (Agent + optional GitHub MCP) and Cursor (Task subagents + gh/git). Use when the user invokes /review, asks for a PR or diff review, or wants a standards-aligned review with severity tags.
Multi-perspective code review (P1/P2/P3) for Cursor: inline checklists plus three parallel Task subagents (perf-auditor, security-reviewer, simplicity-reviewer with combined data-integrity prompt). Use when the user invokes /review, asks for a PR review, or wants repo-standard findings with severity.
Create well-formatted git commits following conventional commit standards.
Red→green→refactor discipline for new behavior — forces a failing test before implementation and a passing test before any claim of done.
Create or manage a git worktree for isolated parallel development — lets multiple agents work in the repo simultaneously without branch collisions.