Skills for Real Engineers. Straight from my .agents directory.
root-cause-analysis
Agent skill fromrohitg00/skillkit
Performs systematic root cause analysis to identify the true source of bugs, errors, and unexpected behavior through structured investigation phases — not just treating symptoms. Use when a user reports a bug, crash, error, or broken behavior and needs to debug, troubleshoot, or investigate why something is not working; especially for complex or intermittent issues across multiple components. Applies the Five Whys method, hypothesis-driven testing, stack trace analysis, git blame/log evidence gathering, and causal chain documentation to isolate and confirm root causes before applying any fix.
How to install root-cause-analysis
npx skills add rohitg00/skillkit# or add only this skill to Claude Code: copy the folder
packages/core/src/methodology/packs/debugging/root-cause-analysis/
# into
~/.claude/skills/root-cause-analysis/ (all projects)
.claude/skills/root-cause-analysis/ (one project)
1# Root Cause Analysis23You are performing systematic root cause analysis to find the true source of a bug. Do not apply fixes until you understand WHY the bug exists.45## Core Principle67**Never fix a symptom. Always find and fix the root cause.**89## The Five Whys Method1011Ask "Why?" repeatedly to drill down to the root cause:12131. **Why** did the API return an error? → The database query failed142. **Why** did the database query fail? → The connection pool was exhausted153. **Why** was the pool exhausted? → **ROOT CAUSE:** Missing `finally` block to close connections1617## Investigation Phases1819### Phase 1: Reproduce the Bug2021Before investigating:22231. **Reproduce consistently** - If you can't reproduce it, you can't verify a fix242. **Document reproduction steps** - Exact sequence of actions253. **Note environment details** - OS, versions, configuration264. **Identify minimal reproduction** - Smallest case that shows the bug2728Questions to answer:29- Does it happen every time or intermittently?30- Does it happen in all environments?31- When did it start happening? (recent changes)3233### Phase 2: Gather Evidence3435Collect information before forming theories:3637- Error messages and stack traces38- Log files (application, system, database)39- Recent code changes (git log, blame)40- User reports and reproduction steps41- Monitoring data (metrics, APM)42- Related issues (search issue tracker)4344Do NOT:45- Make changes while gathering evidence46- Assume you know the cause without evidence47…
Excerpt shown under the repository's Apache-2.0 license.
More skills in skillkit
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
