en un clic
hotfix
Emergency hotfix workflow for production issues
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Menu
Emergency hotfix workflow for production issues
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Basé sur la classification professionnelle SOC
| name | hotfix |
| description | Emergency hotfix workflow for production issues |
| argument-hint | <issue-description> |
Rapid response workflow for critical production issues.
PRIORITY: Fix the issue with minimal changes. Speed matters. Use parallel agents aggressively.
$ARGUMENTS - Description of the production issueAsk if not clear:
Launch three agents in parallel to gather all context simultaneously:
Agent A: Fetch and inspect git state
git fetch origin
git log origin/main --oneline -10
git diff origin/main..HEAD --stat
Agent B: Check recent deploys
gh run list --limit 5
Report which workflows ran, their status, and when they completed.
Agent C: Check recent CI failures
gh run list --status failure --limit 5
Report any recent failures and whether they relate to the reported issue.
Wait for all three agents to complete. Synthesize their findings before proceeding.
git checkout main
git pull origin main
git checkout -b hotfix/$(date +%Y%m%d)-brief-description
Launch two agents in parallel to reproduce and search for root cause simultaneously:
Agent A: Reproduce locally
$ARGUMENTSAgent B: Search for root cause
git log --oneline -20 -- path/to/affected/code
git log --all --oneline --since="3 days ago"git diff on suspect commits to find the breaking changeWait for both agents. Combine their findings to confirm the root cause and identify the minimal fix.
RULES:
Write ONE test that:
After the fix and regression test are written, launch two agents in parallel:
Agent A: Run full test suite
Agent B: Code-griller review
Wait for both agents. If either agent found issues:
Delegate to the skills:commit command:
Skill(skill="skills:commit", args="(hotfix): [brief description]")
Delegate to the skills:pr command with a hotfix title:
Skill(skill="skills:pr", args="(hotfix): [description]")
The skills:pr command will push the branch and open the PR. After it returns, update the PR body with hotfix-specific context (issue / root cause / fix / rollback) using gh pr edit:
gh pr edit <pr-number> --body "$(cat <<'EOF'
## Emergency Hotfix
### Issue
[What was broken in production]
### Root Cause
[Why it broke]
### Fix
[What this PR changes]
### Testing
- [x] Regression test added
- [x] All tests pass
- [x] Minimal change verified
### Rollback Plan
[How to rollback if needed]
EOF
)"
Provide deployment instructions:
## Deployment Steps
1. [ ] PR approved
2. [ ] Merge to main
3. [ ] Monitor CI/CD pipeline
4. [ ] Verify deployment successful
5. [ ] Monitor for 15 minutes post-deploy
6. [ ] Confirm issue resolved in production
## Rollback Command
[Specific rollback instructions]
## Post-Mortem
Schedule follow-up to:
- [ ] Investigate root cause fully
- [ ] Add more comprehensive fix if needed
- [ ] Update monitoring/alerting
IMPORTANT: There is no such thing as a "pre-existing" test failure. If any test fails - whether it appears related to the hotfix or not - you must fix it. The task always completes with completely passing tests.
Build the project (auto-detects build system)
Find and remove dead code, unused imports, and technical debt
Create git commits in logical groups for all current changes
Create a git commit with conventional commit message
Pick up unfinished work from where the last session left off
Debug and fix failing tests or errors