From tdd-core
複雑なバグの並列仮説調査。Subagent/Agent Teams両モード対応。「原因調査」「investigate」「diagnose」で起動。
npx claudepluginhub morodomi/tdd-skills --plugin tdd-coreThis skill uses the workspace's default tool permissions.
複雑なバグに対し、複数の仮説を並行調査し根本原因を特定する。
Enforces scientific-method debugging loop (Observe→Hypothesize→Experiment→Conclude) for non-trivial bugs like crashes, flaky tests, performance regressions, or CI failures.
Enforces four-phase root cause analysis for bugs, errors, test failures, unexpected behavior, and production incidents before proposing fixes.
Debugs complex bugs using competing hypotheses across 6 failure categories, parallel evidence collection with strength ratings, and root cause arbitration.
Share bugs, ideas, or general feedback.
複雑なバグに対し、複数の仮説を並行調査し根本原因を特定する。
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) を自動実行。