/a-team:five-whysfrom a-team
Root cause analysis using the Five Whys technique. Use when a bug persists despite surface fixes, a failure recurs, or a process keeps breaking.
Ships in a-team. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
DO NOT FIX THE SYMPTOM. FIND THE CAUSE.
A fix that doesn't address the root cause is temporary. The cause returns.
One concrete sentence. Not vague.
| Wrong | Correct |
|---|---|
| "The system is slow" | "GET /orders exceeds 3s for 90% of requests in prod since Friday" |
| "Tests fail sometimes" | "test_payment_flow fails in CI roughly 1 in 20 runs with no clear error message" |
For each answer, ask: "Why does that happen?"
Don't stop until you reach something you control — a decision, a process, a line of code, a missing configuration.
Problem: Users see another user's data
Why 1: Cache returns the wrong entry
Why 2: Cache key does not include user_id
Why 3: Developer assumed the endpoint was public
Why 4: No isolation test existed for this endpoint
Why 5: Code review had no data isolation checklist
→ Root cause: review process missing a security checklist
Read the chain bottom-up: "No review checklist → cache key missing user_id → data leak." If the chain holds, the root cause is valid.
Fix at the deepest level that is practical to change.
| Fix level | Example | Durability |
|---|---|---|
| Symptom | Manually flush cache | Hours |
| Proximate cause | Add user_id to cache key | Days |
| Root cause | Add isolation checklist to review | Permanent |
If you can only fix an intermediate level, document the root cause as tracked technical debt with a concrete TODO.
A root cause can have multiple branches — explore all before choosing where to fix.
Problem: Deploy fails in prod but not in staging
Branch A: different configuration (env vars, secrets)
Branch B: prod data has different volume or format
Branch C: network dependencies only reachable in prod
Test each branch independently. Do not assume.
Stop before the 5th why if you reach a clear, actionable root cause. Stop after the 5th if the chain hasn't converged — there may be multiple independent root causes.
Document the analysis:
**Problem:** [concrete one-liner]
**Root cause:** [deepest level found]
**Fix:** [concrete action with file/component]
**Temporary fix (if needed):** [what you apply now while the real fix is in progress]
**Technical debt:** [what remains unresolved and why]
systematic-debugging agent — Five Whys defines the investigation scopetdd-guide agent to write the test that would have caught itDAILY.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
root-cause-analysis, debugging, problem-solving, investigation
20 skills in this plugin
/api-contract-firstHard gate before implementing any API endpoint or service interface. Requires a written, reviewed contract (OpenAPI 3.x, protobuf, or GraphQL schema) before any implementation code is written. Prevents breaking changes, misaligned clients, and undocumented behaviour./architecture-auditSystematic architecture review workflow. Use before major feature work on an unfamiliar or inherited codebase, before scaling milestones, or as a periodic health check. Maps the system as-built (not as-documented), dispatches parallel specialist reviews, and produces an evidence-backed findings report with severity verdicts./brainstormingUse BEFORE any creative work — creating features, building components, adding functionality. Explores user intent, requirements, and design before implementation. Hard-gated: no code until user approves the spec.npx claudepluginhub rbraga01/a-team --plugin a-teamOther plugins' skills for the same job