mirror of
https://github.com/steipete/agent-rules.git
synced 2025-12-16 12:00:09 +01:00
Added comprehensive rules adapted from vincenthopf/claude-code: Development Workflows: - commit.mdc, commit-fast.mdc: Git commit workflows - add-to-changelog.mdc: Structured changelog updates - pr-review.mdc: Multi-role PR review checklist Code Quality: - check.mdc: Multi-language code quality checks - clean.mdc: Auto-fix formatting and linting - code-analysis.mdc: Advanced analysis options Problem Solving: - analyze-issue.mdc: GitHub issue analysis - bug-fix.mdc: Complete bug-fixing workflow - implement-task.mdc: Methodical implementation - five.mdc: Five Whys root cause analysis Documentation: - create-docs.mdc: Comprehensive doc generation - mermaid.mdc: Diagram generation Project Setup: - context-prime.mdc: Load project context - create-command.mdc: Create custom commands Credit: @vincenthopf (https://github.com/vincenthopf/claude-code) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
44 lines
1.4 KiB
Plaintext
44 lines
1.4 KiB
Plaintext
# Five Whys Analysis
|
|
|
|
Use the "Five Whys" root cause analysis technique to deeply understand problems.
|
|
|
|
## Process:
|
|
|
|
### 1. Define the Problem
|
|
Clearly state the issue or symptom
|
|
|
|
### 2. Ask "Why?" Five Times
|
|
- Why did this problem occur? → Answer 1
|
|
- Why did Answer 1 happen? → Answer 2
|
|
- Why did Answer 2 happen? → Answer 3
|
|
- Why did Answer 3 happen? → Answer 4
|
|
- Why did Answer 4 happen? → Answer 5 (Root Cause)
|
|
|
|
### 3. Validate Root Cause
|
|
- Verify the logical chain
|
|
- Check if addressing root cause prevents recurrence
|
|
- Consider multiple root causes if applicable
|
|
|
|
### 4. Develop Solutions
|
|
- Address the root cause, not just symptoms
|
|
- Create preventive measures
|
|
- Consider systemic improvements
|
|
|
|
## Example:
|
|
**Problem**: Application crashes when processing large files
|
|
|
|
1. **Why?** → The application runs out of memory
|
|
2. **Why?** → It loads entire file into memory at once
|
|
3. **Why?** → The file parser wasn't designed for streaming
|
|
4. **Why?** → Initial requirements only specified small files
|
|
5. **Why?** → Requirements gathering didn't consider future growth
|
|
|
|
**Root Cause**: Incomplete requirements gathering process
|
|
**Solution**: Implement streaming parser and improve requirements process
|
|
|
|
## Best Practices:
|
|
- Focus on process, not people
|
|
- Look for systemic issues
|
|
- Document the analysis
|
|
- Involve relevant stakeholders
|
|
- Test solutions address root cause |