用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/nWave-ai/nWave-experimental --skill nw-root-why命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | nw-root-why |
| description | Root cause analysis and debugging |
| user-invocable | true |
| argument-hint | [problem-description] - Optional: --depth=[3|5|7-whys] --output=[text|diagram|report] |
Code facts — resolve structural facts about code through
des code-factCLI (vendor-neutral, bundled adapters: AST then TextSearch). Degrade LOUD. Never ad-hoc grep. Example:des code-fact query.callers-of SYMBOL --root ROOT.
Wave: CROSS_WAVE Agent: Rex (nw-troubleshooter)
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.
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.
@nw-troubleshooter
Execute *investigate-root-cause for {problem-statement}.
Configuration:
When invoked as part of /nw-deliver Phase 3.5, execute in order:
Handoff To: {invoking-agent-returns-to-workflow} Deliverables: Root cause analysis report with solutions
/nw-root-why "Integration tests fail intermittently on CI but pass locally"
Rex investigates 5 WHY levels with multi-causal branches, discovers race condition in database cleanup, proposes transaction-isolated test fixtures.
docs/analysis/root-cause-analysis-{problem}.md