postmortem
Conducts blameless postmortems that transform failures into learning opportunities by documenting timelines, quantifying impact, performing root cause analysis (5 Whys, fishbone diagrams), and defining corrective actions with owners and deadlines. Use when analyzing failures, outages, incidents, or negative outcomes, conducting blameless postmortems, identifying corrective actions, learning from near-misses, establishing prevention strategies, or when user mentions postmortem, incident review, failure analysis, RCA, lessons learned, or after-action review.
What this skill does
# Postmortem **When NOT to use:** Incident still ongoing (focus on resolution first), looking to assign blame (antithesis of blameless culture), or issue is trivial with no learning value. ## Workflow Copy this checklist and track your progress: ``` Postmortem Progress: - [ ] Step 1: Assemble timeline and quantify impact - [ ] Step 2: Conduct root cause analysis - [ ] Step 3: Define corrective and preventive actions - [ ] Step 4: Document and share postmortem - [ ] Step 5: Track action items to completion ``` **Step 1: Assemble timeline and quantify impact** Gather facts: when detected, when started, key events, when resolved. Quantify impact: users affected, duration, revenue/SLA impact, customer complaints. For straightforward incidents use [resources/template.md](resources/template.md). For complex incidents with multiple causes or cascading failures, study [resources/methodology.md](resources/methodology.md) for advanced timeline reconstruction techniques. **Step 2: Conduct root cause analysis** Ask "Why?" 5 times to get from symptom to root cause, or use fishbone diagram for complex incidents with multiple contributing factors. See [Root Cause Analysis Techniques](#root-cause-analysis-techniques) for guidance. Focus on system failures (process gaps, missing safeguards) not human errors. **Step 3: Define corrective and preventive actions** For each root cause, identify actions to prevent recurrence. Must be specific (not "improve testing"), owned (named person), and time-bound (deadline). Categorize as immediate fixes vs. long-term improvements. See [Corrective Actions](#corrective-actions-framework) for framework. **Step 4: Document and share postmortem** Create postmortem document using template. Include timeline, impact, root cause, actions, what went well. Share widely (engineering, product, leadership) to enable learning. Present in team meeting for discussion. Archive in knowledge base. **Step 5: Track action items to completion** Assign owners, set deadlines, add to project tracker. Review progress in standups or weekly meetings. Close postmortem only when all actions complete. Self-assess quality using [resources/evaluators/rubric_postmortem.json](resources/evaluators/rubric_postmortem.json). Minimum standard: ≥3.5 average score. ## Common Patterns ### By Incident Type **Production Outages** (system failures, downtime): - Timeline: Detection → Investigation → Mitigation → Resolution - Impact: Users affected, duration, SLA breach, revenue loss - Root cause: Often config errors, deployment issues, infrastructure limits - Actions: Improve monitoring, runbooks, rollback procedures, capacity planning **Security Incidents** (breaches, vulnerabilities): - Timeline: Breach occurrence → Detection (often delayed) → Containment → Remediation - Impact: Data exposed, compliance risk, reputation damage - Root cause: Missing security controls, access management gaps, unpatched vulnerabilities - Actions: Security audits, access reviews, patch management, training **Product/Project Failures** (launches, deadlines): - Timeline: Planning → Execution → Launch/Deadline → Outcome vs. Expectations - Impact: Revenue miss, user churn, wasted effort, opportunity cost - Root cause: Poor requirements, unrealistic estimates, misalignment, inadequate testing - Actions: Improve discovery, estimation, stakeholder alignment, validation processes **Process Failures** (operational, procedural): - Timeline: Process initiation → Breakdown point → Impact realization - Impact: Delays, quality issues, rework, team frustration - Root cause: Unclear process, missing steps, handoff failures, tooling gaps - Actions: Document processes, automate workflows, improve communication, training ### By Root Cause Category **Human Error** (surface cause, dig deeper): - Don't stop at "person made mistake" - Ask: Why was mistake possible? Why not caught? Why no safeguard? - Actions: Reduce error likelihood (checklists, automation), increase error detection (testing, reviews), mitigate error impact (rollback, redundancy) **Process Gap** (missing or unclear procedures): - Symptoms: "Didn't know to do X", "Not in runbook", "First time" - Actions: Document process, create checklist, formalize approval gates, onboarding **Technical Debt** (deferred maintenance): - Symptoms: "Known issue", "Fragile system", "Workaround failed" - Actions: Prioritize tech debt, allocate 20% capacity, refactor, replace legacy systems **External Dependencies** (third-party failures): - Symptoms: "Vendor down", "API failed", "Partner issue" - Actions: Add redundancy, circuit breakers, graceful degradation, SLA monitoring, vendor diversification **Systemic Issues** (organizational, cultural): - Symptoms: "Always rushed", "No time to test", "Pressure to ship" - Actions: Address root organizational issues (unrealistic deadlines, resource constraints, incentive misalignment) ## Root Cause Analysis Techniques **5 Whys**: 1. Start with problem statement 2. Ask "Why did this happen?" → Answer 3. Ask "Why did that happen?" → Answer 4. Repeat 5 times (or until root cause found) 5. Root cause: Fixable at organizational/system level **Example**: Database outage → Why? Bad config → Why? Wrong value → Why? Template error → Why? New team member unfamiliar → Why? No config review in onboarding **Fishbone Diagram** (Ishikawa): - Categories: People, Process, Technology, Environment - Brainstorm causes in each category - Identify most likely root causes for investigation - Useful for complex incidents with multiple contributing factors **Fault Tree Analysis**: - Top: Failure event (e.g., "System down") - Gates: AND (all required) vs OR (any sufficient) - Leaves: Base causes (e.g., "Config error" OR "Network failure") - Trace path from failure to root causes ## Corrective Actions Framework **Types of Actions**: - **Immediate Fixes**: Deployed within days (hotfix, manual process, workaround) - **Short-term Improvements**: Completed within weeks (better monitoring, updated runbook, process change) - **Long-term Investments**: Completed within months (architecture changes, new systems, cultural shifts) **SMART Actions**: - **Specific**: "Add config validation" not "Improve deploys" - **Measurable**: "Reduce MTTR from 2hr to 30min" not "Faster response" - **Assignable**: Named owner, not "team" - **Realistic**: Given capacity and constraints - **Time-bound**: Explicit deadline **Prioritization**: 1. **High impact, low effort**: Do immediately 2. **High impact, high effort**: Schedule as strategic project 3. **Low impact, low effort**: Do if spare capacity 4. **Low impact, high effort**: Consider skipping (cost > benefit) **Prevention Hierarchy** (from most to least effective): 1. **Eliminate**: Remove hazard entirely (e.g., deprecate risky feature) 2. **Substitute**: Replace with safer alternative (e.g., use managed service vs self-host) 3. **Engineering controls**: Add safeguards (e.g., rate limits, circuit breakers, automated testing) 4. **Administrative controls**: Improve processes (e.g., runbooks, checklists, reviews) 5. **Training**: Educate people (least effective alone, combine with others) ## Guardrails **Blameless Culture**: - ❌ "Engineer caused outage by deploying bad config" → ✓ "Deployment pipeline allowed bad config to reach production" - ❌ "PM didn't validate requirements" → ✓ "Requirements validation process missing" - ❌ "Designer made mistake" → ✓ "Design review process didn't catch issue" - Focus: What system/process failed? Not who made error. **Root Cause Depth**: - ❌ Stopping at surface: "Bug caused outage" → ✓ Deep analysis: "Bug deployed because testing gap, no staging env, rushed release pressure" - ❌ Single cause: "Database failure" → ✓ Multiple causes: "Database + no failover + alerting delay + unclear runbook" - Rule: Keep asking "Why?" until you reach actionable systemic improvements **Actionability**: - ❌ Vague: "Improve testing", "Better communication", "More careful" → ✓
Related in Code Review
gstack
IncludedFast headless browser for QA testing and site dogfooding. Navigate pages, interact with elements, verify state, diff before/after, take annotated screenshots, test responsive layouts, forms, uploads, dialogs, and capture bug evidence. Use when asked to open or test a site, verify a deployment, dogfood a user flow, or file a bug with screenshots. (gstack)
startup-due-diligence
IncludedLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities include: (1) Interactive document review and issue spotting; (2) Document request list generation; (3) Cap table and SAFE/convertible note analysis; (4) Red flag identification with severity ratings; (5) Diligence report generation. TRIGGERS: due diligence, DD, startup investment, cap table review, Series A, seed round, investor diligence, legal review startup, SAFE analysis, convertible note, 409A, founder vesting.
interview-master
IncludedThis skill should be used when the user asks to "generate interview questions", "prepare for interview", "optimize resume", "conduct mock interview", "analyze git commits for resume", "generate resume from code", "review my resume", or mentions interview preparation, career assistance, or extracting project experience from git history. Provides comprehensive interview and career development guidance for both job seekers and interviewers.
fix-issue
IncludedFixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to avoid recurrence. Use when debugging errors, resolving regressions, fixing bugs, or triaging issues.
sf-apex
IncludedGenerates and reviews Salesforce Apex code with 150-point scoring. TRIGGER when: user writes, reviews, or fixes Apex classes, triggers, test classes, batch/queueable/schedulable jobs, or touches .cls/.trigger files. DO NOT TRIGGER when: LWC JavaScript (use sf-lwc), Flow XML (use sf-flow), SOQL-only queries (use sf-soql), or non-Salesforce code.
swift-development
IncludedComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.