root-cause-analysis
Conducts systematic root cause analysis using proven methodologies including Toyota's 5 Whys, Ishikawa fishbone diagrams, Pareto analysis, and fault tree analysis. Use when investigating bugs, debugging code, troubleshooting systems, diagnosing equipment failures, analyzing life problems, or identifying underlying causes of any issue across software engineering, hardware maintenance, process failures, or personal challenges.
What this skill does
# Root Cause Analysis Orchestration Skill This skill helps you systematically identify the root cause of any problem using proven methodologies from the Toyota Production System and other industry-standard techniques. ## Quick Reference: When to Load Which Resource | Your Problem Type | Load Resource | Why | |---|---|---| | Need to understand 5 Whys, Fishbone, Pareto, Fault Tree methodology | `resources/rca-methodologies.md` | Learn each method step-by-step with examples | | Looking for common root causes in your domain | `resources/common-root-causes.md` | Pattern match against known causes: software, hardware, process, personal | | Want to see complete worked examples | `resources/example-analyses.md` | Study real cases: software bugs, vehicle maintenance, system failures, personal problems | | Advanced: need barrier analysis, complex cause mapping | `resources/advanced-techniques.md` | Formal methods: Fault Tree, Barrier Analysis, multi-methodology chains | ## Core Principle **Do not treat symptoms—find and fix the root cause.** As Taiichi Ohno, architect of the Toyota Production System, said: "By repeating why five times, the nature of the problem as well as its solution becomes clear." ## Orchestration Protocol ### Phase 1: Problem Classification Quickly identify your problem domain and complexity: **Problem Domain:** - **Software**: Code bugs, system failures, performance, deployment - **Hardware**: Equipment, mechanical, electrical, maintenance - **Process**: Workflow, procedures, organizational, communication - **Personal**: Life challenges, productivity, habits, wellbeing **Complexity Level:** - **Simple**: Clear failure chain, 1-2 likely causes → Use 5 Whys - **Complex**: Multiple possible causes, unknown scope → Start with Fishbone - **Critical/Safety**: High stakes, needs rigor → Use Fault Tree - **Multiple Issues**: Many competing problems → Use Pareto first **Action:** Load appropriate resource file(s) based on classification. ### Phase 2: Methodology Selection Based on problem type, select your approach: | Situation | Recommended | Load | |---|---|---| | **Single clear failure** | 5 Whys | methodologies.md | | **Complex/multiple possibilities** | Fishbone → 5 Whys | methodologies.md | | **Competing priorities** | Pareto → 5 Whys | methodologies.md | | **Safety/high-stakes** | Fault Tree | advanced-techniques.md | | **Process breakdown** | Barrier Analysis | advanced-techniques.md | | **Pattern matching** | Common causes + 5 Whys | common-root-causes.md | ### Phase 3: Execution & Verification **During Analysis:** 1. Define problem clearly (What/Where/When/Impact) 2. Gather evidence systematically 3. Apply selected methodology 4. Document reasoning at each step 5. Verify root cause with Forward/Backward tests **Before Finalizing:** - Validate conclusion against evidence - Check for red flags (see common-root-causes.md) - Confirm actionability (can you fix this?) - Develop solutions addressing root cause ## Problem Definition Framework Create a clear problem statement before analysis: **Essential Elements:** - **What:** Observable symptom (not assumed cause) - **Where:** Location/system/component affected - **When:** Timeline, frequency, pattern - **Impact:** Users/systems affected, severity **Example:** "Users in EU region experience 3-5 second dashboard load delays during 9-11 AM UTC peak hours, affecting ~2,000 daily active users. Started after v2.4 deployment on Nov 18th." ## Evidence Gathering (Go and See) Follow Toyota's principle—collect facts, not opinions: **Key Evidence Sources:** - Logs, metrics, monitoring data - Timeline of events and changes - System/code/configuration changes before problem - Environmental factors (load, traffic, season) - User reports and reproduction steps - System state before/during/after ## RCA Methodologies See `resources/rca-methodologies.md` for complete methodology guide. ## Resource Files Summary ### `resources/rca-methodologies.md` Comprehensive methodology guide covering: - **5 Whys**: Step-by-step process with software examples - **Fishbone Diagram**: Structure, 6 M's categories, process - **Pareto Analysis**: Prioritization using 80/20 rule - **Fault Tree Analysis**: Top-down formal analysis - **Barrier Analysis**: Control failure examination - Structured 6-phase RCA process, domain-specific guidance, templates ### `resources/common-root-causes.md` Pattern reference catalog by domain: - **Software Engineering**: Code defects, configuration, dependencies, deployment - **Hardware & Equipment**: Mechanical, electrical, operational, maintenance - **Process & Operations**: Workflow, design, resources - **Personal/Life**: Health, habits, environment, skills - Red flags, recurring themes, pattern recognition ### `resources/example-analyses.md` Four worked examples with full analysis: 1. **Software Bug**: JWT authentication (5 Whys) 2. **Vehicle Maintenance**: Overheating (5 Whys) 3. **System Failure**: E-commerce checkout (Fishbone + 5 Whys) 4. **Personal Productivity**: Missed deadlines (Fishbone + 5 Whys) ### `resources/advanced-techniques.md` Formal methods for complex problems: - **Fault Tree Analysis**: Boolean logic, safety systems - **Barrier Analysis**: Control failures - **Multi-Methodology Chains**: Complex orchestration - **Verification Frameworks**: Comprehensive testing ## How This Skill Works 1. **Clarify your situation**: Domain, observations, evidence, time 2. **Recommend approach**: Complexity analysis, methodology, resources 3. **Guide through analysis**: Problem statement, evidence, methodology, verification 4. **Deliver output**: Analysis, root cause, solutions, implementation ## Quick Start: 5-Minute RCA 1. State problem (What/Where/When/Impact) 2. First Why: fact-based answer 3. Second Why: dig deeper 4. Third Why: dig deeper again 5. Verify: would fixing this prevent it? ## Templates & Examples - **5 Whys Template** in `resources/rca-methodologies.md` - **Fishbone Template** in `resources/rca-methodologies.md` - **Worked Examples** in `resources/example-analyses.md` - **Solution Structures** in `resources/example-analyses.md` ## Next Steps 1. Identify problem domain (software/hardware/process/personal) 2. Load appropriate resource from table above 3. Select methodology based on complexity 4. Follow step-by-step process in resource 5. Verify root cause (Forward/Backward tests) 6. Develop actionable solutions --- **Remember**: Goal is systematic investigation—disciplined questioning until you reach a cause you can actually fix.
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.