From tdd-core
複雑なバグの並列仮説調査。Subagent/Agent Teams両モード対応。「原因調査」「investigate」「diagnose」で起動。
How this skill is triggered — by the user, by Claude, or both
Slash command
/tdd-core:skills/tdd-diagnoseThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
複雑なバグに対し、複数の仮説を並行調査し根本原因を特定する。
複雑なバグに対し、複数の仮説を並行調査し根本原因を特定する。
DIAGNOSE Progress:
- [ ] バグ情報収集(カテゴリ・重要度・症状)
- [ ] 仮説生成(3つ以上)
- [ ] 調査実行(モード自動選択)
- [ ] 結果統合・分岐判定
- [ ] Cycle doc更新 → tdd-plan自動実行
1a. AskUserQuestion で構造化入力:
1b. 続けて自然言語で質問:
詳細: reference.md
収集した情報から原因候補を 3つ以上 リスト:
| # | 仮説 | 調査方針 |
|---|---|---|
| H1 | [原因候補1] | [検証方法] |
| H2 | [原因候補2] | [検証方法] |
| H3 | [原因候補3] | [検証方法] |
仮説テンプレート: reference.md
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS 環境変数でモードを選択:
| 環境変数 | モード | 手順 |
|---|---|---|
有効 (1) | 討論型 (Agent Teams) | steps-teams.md |
| 無効 / 未設定 | 並行型 (Subagent) | steps-subagent.md |
各仮説の検証結果を集約し、分岐判定:
→ Cycle doc に根本原因を記録、Step 5 へ
→ AskUserQuestion で候補からユーザーが選択、Step 5 へ
調査結果が不明確です。
1. 仮説を追加して再調査(最大2回まで)
2. 手動調査へエスカレート(現時点の発見事項を記録)
再調査2回で未解決の場合、選択肢2へ強制遷移。
調査結果を Cycle doc に記録し、Skill(tdd-core:tdd-plan) を自動実行。
npx claudepluginhub morodomi/tdd-skills --plugin tdd-coreForces a scientific-method loop (Observe → Hypothesize → Experiment → Conclude) to debug non-trivial bugs. Prevents guessing by ensuring evidence before fixes.
Enforces four-phase root cause analysis for bugs, errors, test failures, unexpected behavior, and production incidents before proposing fixes.
Debug complex issues using competing hypotheses with parallel investigation, evidence collection, and root cause arbitration. Use when bugs have multiple potential causes.