nw-root-why

nw-root-why is a skill for Claude Code from nWave-ai/nWave. It costs 10 tokens per session (849 once invoked), scanned A, original, MIT.

A structured debugging method based on asking “why” repeatedly to find the underlying causes of a problem. It examines multiple possible causes and requires evidence before accepting an explanation.

In plain words
What is it for?
Use it to investigate failures, review what went well or badly, identify root causes, and check that proposed fixes cover them.
Why use it?
It prevents teams from stopping at the first visible symptom and applying a fix that does not address the real problem.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to investigate failures, review what went well or badly, identify root causes, and check that proposed fixes cover them.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nwave-ai/nwave/nw-root-why
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add nWave-ai/nWave --skill nw-root-why
Clone the repo
git clone --depth 1 https://github.com/nWave-ai/nWave

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nw-root-why

README.md
[![agentmods](https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-root-why/github.svg)](https://agentmods.dev/skills/nwave-ai/nwave/nw-root-why)
Your own site
<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-root-why"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-root-why/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nw-root-why

Your own site · 80×15
<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-root-why"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-root-why.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 849 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00010 $0.00849
Opus 5.5 $0.00004 $0.00340
Sonnet 5.5 $0.00002 $0.00170
Haiku 4.5 $0.00001 $0.00085

Measured 8d ago against content hash dbc831268c1c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nw-root-why scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

nWave/skills/nw-root-why/SKILL.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Code facts — resolve structural facts about code through code-fact CLI (vendor-neutral, bundled adapters: AST then TextSearch). Degrade LOUD. Never ad-hoc grep. Example: code-fact query.callers-of SYMBOL --root ROOT.

NW-ROOT-WHY: Toyota 5 Whys Root Cause Analysis

Wave: CROSS_WAVE Agent: Rex (nw-troubleshooter)

Overview

Systematic root cause analysis using Toyota's 5 Whys with multi-causal investigation and evidence-based validation. Investigates multiple cause branches at each level|validates solutions against all identified root causes.

Design-time counterexamples

RCA applies to design-time evidence at par with runtime failures: a model-checker violation, a refuted invariant, a failing property, or a theorem that only passes in conditional form. For these, the first RCA question is representational — which type or schema made the failing state expressible? A conditional theorem's hypothesis names the constraint the design should enforce by construction. Route the cure through nw-design's Counterexample discipline; a law added over an unchanged representation without recorded justification is a symptom patch, not a root-cause fix. This applies whether the counterexample came from a proof assistant, a model checker, or a property test in the project's own language — no prover is a prerequisite for this RCA question.

Agent Invocation

@nw-troubleshooter

Execute *investigate-root-cause for {problem-statement}.

Configuration:

  • investigation_depth: 5
  • multi_causal: true
  • evidence_required: true

Usage: DELIVER Wave Retrospective (Phase 3.5)

When invoked as part of /nw-deliver Phase 3.5, execute in order:

  1. Analyze What Worked Well — Identify practices that succeeded and document why — preserve these. Gate: at least one practice documented with rationale.
  2. Analyze What Improved — Identify what worked better than before and why — record as reinforcements. Gate: delta from prior execution captured.
  3. Analyze What Worked Badly — Apply 5 Whys; the root cause names the producer/type that admitted the failing state (GDP-0) — a fix that adds a check instead is a symptom patch unless that producer cannot change, with the reason recorded. Gate: each failure has a representational root cause and fix.
  4. Analyze What Regressed — Apply 5 Whys to anything worse than before; produce prevention action. Gate: each regression has a root cause and prevention action.
  5. Tag Meta-Improvements — Mark any items requiring nWave framework changes as meta-improvements. Gate: all framework-level issues flagged.
  6. Append Retrospective — Write retrospective section to evolution document. If clean execution (no skips, no failures, no tooling issues), generate brief summary only. Gate: evolution document updated.

Read the full file on GitHub · 81 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago Changed · +15 lines dbc831268c1c
  2. 2mo ago First seen · 66 lines · 10 tokens per session scan A f2f41f4ecfe7

Subscribe to this mod's changes

nw-root-why is a skill published in the GitHub repository nWave-ai/nWave (634 stars, last pushed 4d ago), licensed MIT. It adds 10 tokens to every session and 849 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.

Related

nw-root-why compared with skills from other repositories

nw-root-why next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nw-root-whynWave-ai/nWaveSkill6344d agoMITA10Claude Code
behavior-contracta5c-ai/babysitterSkill1.9k10d agoMITA25Claude Code
hk-rcadeepklarity/harness-kitSkill105yesterdayMITA115Claude Code
debuggingInsajin/autopus-adkSkill1112mo agoMITA16Claude Code, Codex
team-fixbostonaholic/teamSkill11yesterdayMITA30Claude Code, Codex
debug-flowDVNghiem/FlowDeckSkill422mo agoMITA34Claude Code, Codex
investigatevictusfate/scaffoldSkill7yesterdayMITA85Claude Code, Codex