Debugging et maintenancesource GitHub
Five whys analysis
/fiveAppliquer la technique d'analyse des causes profondes (Five Whys) pour enquêter sur les problèmes.
// contenu du skill
Five Whys Analysis
Apply the Five Whys root cause analysis technique to investigate issues.
Description
This command implements the Five Whys problem-solving methodology, iteratively asking "why" to drill down from symptoms to root causes. It helps identify the fundamental reason behind a problem rather than just addressing surface-level symptoms.
Usage
five [issue_description]
Variables
- ISSUE: The problem or symptom to analyze (default: prompt for input)
- DEPTH: Number of "why" iterations (default: 5, can be adjusted)
Steps
- Start with the problem statement
- Ask "Why did this happen?" and document the answer
- For each answer, ask "Why?" again
- Continue for at least 5 iterations or until root cause is found
- Validate the root cause by working backwards
- Propose solutions that address the root cause
Examples
Example 1: Application crash analysis
Problem: Application crashes on startup
Why 1: Database connection fails
Why 2: Connection string is invalid
Why 3: Environment variable not set
Why 4: Deployment script missing env setup
Why 5: Documentation didn't specify env requirements
Root Cause: Missing deployment documentationExample 2: Performance issue investigation
Systematically trace why a feature is running slowly by examining each contributing factor.
Notes
- Don't stop at symptoms; keep digging for systemic issues
- Multiple root causes may exist - explore different branches
- Document each "why" for future reference
- Consider both technical and process-related causes
- The magic isn't in exactly 5 whys - stop when you reach the true root cause
// source originale publique
wesammustafa/Claude-Code-Everything-You-Need-to-Know/.claude/commands/five.md
Licence : MIT License
Projet indépendant, non affilié à Anthropic. Ce skill reste la propriété de son auteur original.