rca
Skill3 starsChanged 5 months agoMITView on GitHub
Perform root cause analysis for a bug
15 other projects use a version of this.
Adopted by
Most recently taken up by
- korya/swd-skillstheir own version, first seen Nov 1, 2026
- ashe-li/agent-skillstheir own version, first seen Oct 29, 2026
- matthull/my-skillstheir own version, first seen Oct 20, 2026
- kaynetik/skillstheir own version, first seen Oct 20, 2026
- rubixkube-io/rubixkube-for-aitheir own version, first seen Oct 20, 2026
- udecode/dotaitheir own version, first seen Oct 13, 2026
Used with
Projects with it also use handoff.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 4 projects that use this
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- google/adk-recipes★ 11ksame name
- google/adk-samples★ 11ksame name
- udecode/dotai★ 1.2ksame name
- kagenti/kagenti★ 303same name
- rsml/tutor★ 4same name
- allanbian1017/skills★ 2same name
- ashe-li/agent-skills★ 2same name
- korya/swd-skills★ 2same name
- ssv445/claude-skills★ 2same name
- tommy-ngn/skills★ 2same name
5 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository67 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- optimize-contextSkill
- a11y-checkSkill
- api-contractSkill
- backend-patternsSkill
- build-fixSkill
- checkpointSkill
- clickhouse-ioSkill
- code-review-eccSkill
- code-reviewSkill
- coding-standardsSkill
- config-auditSkill
- continuous-learning-v2Skill
- create-prdSkill
- deps-auditSkill
- e2eSkill
- eval-harnessSkill
- evalSkill
- evolveSkill
- executeSkill
- execution-reportSkill
- extract-sharedSkill
- firecrawlSkill
- frontend-designSkill
- frontend-patternsSkill
- golang-patternsSkill
- golang-testingSkill
- implement-fixSkill
- init-projectSkill
- instinct-exportSkill
- instinct-importSkill
- instinct-statusSkill
- iterative-retrievalSkill
- lazySkill
- learnSkill
- orchestrateSkill
- perf-profileSkill
- plan-eccSkill
- plan-featureSkill
- postgres-patternsSkill
- primeSkill
- project-guidelines-exampleSkill
- projectSkill
- prompt-auditSkill
- python-patternsSkill
- python-reviewSkill
- python-testingSkill
- refactor-cleanSkill
- releaseSkill
- security-reviewSkill
- seo-kitSkill
- set-working-dirSkill
- skill-createSkill
- strategic-compactSkill
- supadataSkill
- system-reviewSkill
- tddSkill
- tdd-workflowSkill
- test-coverageSkill
- testSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 12 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 14 edited versions we read keep these.
12
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 30
When does it occur?
- Distinctive: line 55
Follow the code path step by step
- Distinctive: line 57
Read relevant code sections completely
- Distinctive: line 87
Not just the symptom
- Distinctive: line 88
Not just the trigger
- Distinctive: line 110
Validation Fix: Add missing validation/error handling
- Distinctive: line 112
Configuration: Update settings/environment
- Distinctive: line 113
Dependency: Update or replace problematic dependency
- Very specific: line 123
Create RCA document: .claude/plans/rca-[issue-number or brief-description].md
- Distinctive: line 253
Don't rush to implement without full analysis
- Distinctive: line 254
Consider systemic issues, not just point fixes
- Distinctive: line 255
Document thoroughly for future reference
- Distinctive: line 256
If root cause is unclear, gather more information before proceeding
“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
RCA: Root Cause Analysis
Overview
Perform systematic root cause analysis for a bug to understand the underlying issue before implementing a fix.
Input
Bug description or GitHub issue number: $ARGUMENTS
Process
1. Gather Information
If GitHub issue provided:
gh issue view [issue-number]If bug description provided: Document the symptoms:
- What is the expected behavior?
- What is the actual behavior?
- When does it occur?
- Steps to reproduce
- Error messages or logs
2. Reproduce the Bug
Attempt to reproduce the issue locally:
# Follow reproduction steps
# Capture error output
# Note exact conditionsDocument:
- Can reproduce: Yes/No
- Frequency: Always/Sometimes/Rare
- Environment: Dev/Staging/Production
- Conditions required
3. Investigate the Code
Trace the execution path:
- Find the entry point (API endpoint, function call, etc.)
- Follow the code path step by step
- Identify where actual behavior diverges from expected
- Read relevant code sections completely
Questions to answer:
- What code is involved?
- What data flows through this code?
- What assumptions does the code make?
- Are there edge cases not handled?
4. Check Related Systems
Review:
- Recent commits:
git log --since="2 weeks ago" --oneline - Recent changes to affected files:
git log -p -- [file-path] - Dependencies: Check for recent updates
- Configuration: Environment variables, settings
- External services: API changes, database schema
5. Analyze Root Cause
Common root causes:
- Logic Error: Incorrect conditional, off-by-one, wrong algorithm
- State Management: Race condition, incorrect state updates
- Data Validation: Missing validation, incorrect constraints
- Error Handling: Unhandled exception, incorrect error recovery
- Integration: API changes, breaking dependency updates
- Configuration: Wrong environment settings, missing config
- Assumptions: Invalid assumptions about input/state
Identify THE root cause:
- Not just the symptom
- Not just the trigger
- The underlying reason the bug exists
6. Assess Impact
Scope of impact:
- How many users affected?
- What functionality is broken?
- Data integrity concerns?
- Security implications?
Severity classification:
- Critical: Data loss, security breach, complete system failure
- High: Major functionality broken, affects many users
- Medium: Minor functionality broken, workaround exists
- Low: Cosmetic issue, edge case, minimal impact
7. Identify Fix Strategy
Potential approaches:
- Direct Fix: Correct the logic/code directly
- Validation Fix: Add missing validation/error handling
- Refactor: Restructure code to prevent issue class
- Configuration: Update settings/environment
- Dependency: Update or replace problematic dependency
Choose best approach based on:
- Complexity of implementation
- Risk of introducing new bugs
- Time to implement
- Long-term maintainability
Output Format
Create RCA document: .claude/plans/rca-[issue-number or brief-description].md
# Root Cause Analysis: [Bug Title]
**Issue:** [GitHub issue number or brief description]
**Date:** YYYY-MM-DD
**Severity:** Critical | High | Medium | Low
## Symptoms
**Expected Behavior:**
[What should happen]
**Actual Behavior:**
[What actually happens]
**Steps to Reproduce:**
1. [Step 1]
2. [Step 2]
3. [Step 3]
**Error Messages:**
\`\`\`
[Error output or logs]
\`\`\`
## Reproduction
- **Can Reproduce:** Yes | No
- **Frequency:** Always | Sometimes | Rare
- **Environment:** Development | Staging | Production
- **Conditions Required:** [List conditions]
## Code Analysis
**Affected Files:**
- `[file-path]` (lines X-Y)
- `[file-path]` (lines X-Y)
**Execution Path:**
1. [Entry point]
2. [Function/method call]
3. [Where it breaks]
**Code Snippet:**
\`\`\`language
[Relevant code showing the issue]
\`\`\`
## Root Cause
**Category:** Logic Error | State Management | Data Validation | Error Handling | Integration | Configuration | Assumptions
**Explanation:**
[Detailed explanation of the underlying cause]
**Why it occurred:**
[Why this bug exists - missing test? Unclear requirement? Edge case?]
## Impact Assessment
**Severity:** Critical | High | Medium | Low
**Scope:**
- Users affected: [number or percentage]
- Features broken: [list]
- Data integrity: [concerns if any]
- Security: [implications if any]
**Urgency:** Immediate | High | Medium | Low
## Fix Strategy
**Recommended Approach:** [Chosen strategy]
**Rationale:**
[Why this approach over alternatives]
**Implementation Complexity:** Low | Medium | High
**Risk Level:** Low | Medium | High
**Estimated Time:** [time estimate]
## Alternatives Considered
1. **[Alternative 1]**
- Pros: [benefits]
- Cons: [drawbacks]
- Why not chosen: [reason]
2. **[Alternative 2]**
- Pros: [benefits]
- Cons: [drawbacks]
- Why not chosen: [reason]
## Prevention
**How to prevent similar bugs:**
- [ ] Add validation for [X]
- [ ] Add test case for [scenario]
- [ ] Update documentation for [Y]
- [ ] Add linting rule for [pattern]
- [ ] Update code review checklist
## Next Steps
1. Create implementation plan
2. Write failing test that reproduces bug
3. Implement fix
4. Verify fix resolves issue
5. Update tests and documentation
6. Deploy and monitor
**Ready for:** `/implement-fix .claude/plans/rca-[name].md`Output Confirmation
After creating RCA:
- Confirm file path
- Summarize root cause in 1-2 sentences
- Confirm severity and urgency
- Recommend next action (usually: create implementation plan)
Notes
- Take time to truly understand the root cause
- Don't rush to implement without full analysis
- Consider systemic issues, not just point fixes
- Document thoroughly for future reference
- If root cause is unclear, gather more information before proceeding
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

