incident
Production incident response workflow — triage, root cause analysis, and resolution.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Production incident response workflow — triage, root cause analysis, and resolution.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Generate customized .claude/ harness framework with Fusion Architecture (GAN-inspired + Domain Specialists). TRIGGER when user wants to set up AI-assisted development structure, create a new project harness, add structure to existing projects, or mentions 'harness', 'scaffold', 'framework setup'. Supports all domains through template + dynamic generation.
Negotiates 'done' criteria between Generator, Evaluator, and architect-lead before implementation begins. Converts subjective goals into testable, gradable criteria with clear domain responsibilities.
Guided database migration workflow — from schema design to rollback documentation.
Track, categorize, and prioritize technical debt across the codebase.
Save current progress with structured handoff artifact. Enables context reset for long-running tasks and session recovery.
Analyze existing web development codebase and generate documentation for AI-assisted development. Use when adding harness to existing projects (1→N).
| name | incident |
| description | Production incident response workflow — triage, root cause analysis, and resolution. |
| argument-hint | [incident description] |
| user-invocable | true |
| allowed-tools | Read, Glob, Grep, Write, Edit, Bash, Agent, AskUserQuestion |
Structured workflow for handling production incidents with full audit trail.
Gather information
Assess severity
| Severity | Criteria | Response Time |
|---|---|---|
| P1 - Critical | Service down, data loss risk | Immediate |
| P2 - High | Major feature broken | <1 hour |
| P3 - Medium | Degraded performance | <4 hours |
| P4 - Low | Minor issue, workaround exists | Next business day |
Create incident record
# Incident: [Date-Time] - [Brief Description]
## Status: INVESTIGATING / IDENTIFIED / FIXING / RESOLVED
## Severity: P1/P2/P3/P4
## Timeline
- [Time] Incident detected
- [Time] [Action taken]
## Impact
- Users affected: [count or description]
- Duration: [time]
- Features affected: [list]
## Root Cause
[To be filled during investigation]
## Resolution
[To be filled after fix]
## Follow-up
[ ] Postmortem scheduled
[ ] Monitoring improved
[ ] Tests added
Gather evidence
docker logs [container] or equivalentgit log --oneline -10Form hypotheses
Test hypotheses
Immediate fix (if available)
Root cause fix (if time allows)
Verify resolution
Create postmortem document:
# Postmortem: [Incident Title]
**Date**: [Date]
**Severity**: P1/P2/P3/P4
**Duration**: [Time from detection to resolution]
**Author**: [Name]
## Summary
[2-3 sentence summary of what happened]
## Impact
- **Users affected**: [Count or description]
- **Duration**: [Total time]
- **Revenue impact**: [If applicable]
## Timeline
| Time | Event |
|------|-------|
| [HH:MM] | Incident detected via [monitoring/user report] |
| [HH:MM] | [Team member] acknowledged |
| [HH:MM] | Root cause identified |
| [HH:MM] | Fix deployed |
| [HH:MM] | Incident resolved |
## Root Cause
[Detailed explanation of what caused the incident]
## Contributing Factors
1. [Factor that contributed to the issue]
2. [Another factor]
## Resolution
[What was done to fix the issue]
## Lessons Learned
### What went well
- [Positive aspects of the response]
### What could be improved
- [Areas for improvement]
## Action Items
| Action | Owner | Due Date | Status |
|--------|-------|----------|--------|
| [ ] [Action 1] | [Name] | [Date] | TODO |
| [ ] [Action 2] | [Name] | [Date] | TODO |
## Appendix
- [Links to logs, graphs, PRs, etc.]