Usage Examples
Real-world scenarios demonstrating effective use of the Kaizen plugin for root cause analysis, problem solving, and continuous improvement.
Examples
Production Bug Investigation
Scenario: Users report 500 errors on the checkout page during peak hours.
# Start with Five Whys to find root cause
> /kaizen:why "Users see 500 error on checkout during peak hours"Expected Flow:
Kaizen asks "why" iteratively
Documents each level of causation
Branches if multiple causes emerge
Stops at systemic root cause
Proposes solutions addressing the root
Example Five Whys Output:
Problem: Users see 500 error on checkout during peak hours
Why 1: Payment service throws exception
Why 2: Request timeout after 30 seconds
Why 3: Database query takes 45 seconds during peak load
Why 4: Missing index on transactions table for user_id lookup
Why 5: Database migrations don't have performance validation in CI
Root Cause: No automated performance testing for database changes
Contributing Factor: Transactions table grew 10x, exposing the issue
Solutions:
1. IMMEDIATE: Add index on transactions.user_id
2. SHORT-TERM: Add query performance tests to CI for migrations
3. LONG-TERM: Set up database query monitoring and alertingNext Steps:
Investigating Flaky Tests
Scenario: E2E tests fail 15% of the time, passing on retry.
Expected Fishbone Output:
Follow-up with PDCA:
Comprehensive Incident Documentation
Scenario: Production database went down, need formal documentation for post-mortem.
Expected A3 Output:
Performance Optimization with PDCA
Scenario: Docker builds take 45 minutes, slowing down the team.
Expected PDCA Cycle:
Code Quality Audit with Smart Analysis
Scenario: Technical debt review of the authentication module.
Kaizen auto-selects Muda (Waste) Analysis:
Bug Tracing Through Call Stack
Scenario: Files being created in wrong directory during tests.
Expected Trace:
Exploring Unfamiliar Code with Gemba Walk
Scenario: Need to understand authentication flow before making changes.
Kaizen selects Gemba Walk:
Integration with Other Plugins
With Reflexion (Bug Investigation Workflow)
With Code Review
With Git (Full Bug Fix Workflow)
With SDD (Quality Improvement After Implementation)
Last updated