assets/skills/fix/hotfix/SKILL.md
Quick bug fix workflow with rollback plan. Use when fixing bugs, hotfixes, urgent issues, production bugs, or when user says "fix bug", "hotfix", "urgent fix", "production issue".
npx skillsauth add phuthuycoding/moicle fix-hotfixInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Fast-track bug fix with a rollback plan. Use when the cause is identifiable in under an hour of investigation.
/fix-incident first/fix-root-cause/feature-newRead ddd-architecture.md + stack-specific doc — the fix must land in the right layer (usecase / handler / infra) per architecture rules.
Use ~/.claude/architecture/_shared/severity-levels.md (incident table). Hotfix typically covers P2-P4. P1 → start with /fix-incident for triage / comms.
IDENTIFY → REPRODUCE → FIX → VERIFY → DEPLOY
↑ ↓
└── ROLLBACK (if needed)
Goal: capture exactly what's broken — no speculation.
Q1: Why does checkout fail? A1:
OrderService.calculatereturns NaN. Q2: Why NaN? A2:quantity * pricewhere price is undefined. Q3: Why undefined? A3: New SKUs from supplier feed have null price. Q4: Why null? A4: Feed schema added optionalpricefield, defaulted to null. Q5: Why didn't validation catch it? A5: Import worker skips schema validation for "perf".
→ Root cause: skipped validation in import worker. Fix at the import boundary, not in checkout.
/fix-root-cause if 5 Whys doesn't converge)Goal: reproduce locally before changing any code.
Goal: smallest correct change at the right layer.
/review-tdd.For data-shape bugs (null where not expected, type mismatch from external API): defend at the trust boundary (handler / adapter), not inside business logic.
Goal: confirm fix works without breaking other paths.
{test command})/review-branch self + /review-pr from teammate)Document before deploying:
revert PR / redeploy commit {sha} / feature flag off / DB migration down## Hotfix: {short description}
### Root cause
{From Phase 1, 5 Whys final answer}
### Fix
- File: `path/to/file:line`
- Layer: {handler / usecase / infra / etc.}
- Approach: {boundary defense / logic correction / data migration}
### Tests
- Regression test: {file:line}
- All tests passing
### Deploy
- Deployed: {timestamp}
- Verified: {timestamp + how}
- Rollback plan: {revert / redeploy / flag / migration}
### Severity: {P2 / P3 / P4}
### Status: SHIPPED ✅ (or ROLLED BACK + reason)
| When | Use |
|------|-----|
| Production is down right now | /fix-incident first, then hotfix |
| Bug keeps coming back after fixes | /fix-root-cause |
| Need to write regression test first | /review-tdd |
| Bug is on an open PR | /fix-pr-comment |
| Self-review before opening PR | /review-branch |
| Phase | Agent | Purpose |
|-------|-------|---------|
| IDENTIFY | Stack-specific dev agent | Read error context |
| FIX | Stack-specific dev agent | Apply the fix |
| FIX | @security-audit | Security-related bugs |
| VERIFY | @test-writer | Regression test |
| VERIFY | @code-reviewer | Quick code review |
| DEPLOY | @devops | CI/CD + monitoring |
development
Test-Driven Development workflow. Use when doing TDD, writing tests first, or when user says "tdd", "test first", "test driven", "red green refactor".
development
Thorough pull request review workflow with architecture compliance checks. Use when reviewing pull requests, checking code changes, or when user says "review pr", "check pr", "review code", "pr review", "review pull request".
development
Review local branch changes for architecture compliance, conventions, and code quality before pushing/PR. Stack-aware — detects the project stack and applies the matching rules. Use when user says "review changes", "review branch", "check branch", "check changes", "review my code", "review before pr".
testing
DDD architecture compliance review with automated checks and review loop. Use when user says "architect-review", "architecture review", "review architecture", "check architecture", "review ddd", "ddd review".