systematic-debugging
Skill1 starsChanged 57 days agoMITView on GitHub
バグ・不具合の原因究明に着手するとき。「直したはずなのに直らない」「再発する」 「原因が分からない」症状のとき。修正を試みる前に必ず参照する。 「バグ調査して」「原因を調べて」「なぜ直らないのか」のような自然言語でも起動。 言語・フレームワーク非依存の調査規律(スタック固有のデータ調査 skill があれば併用)。
190 other projects use a version of this.
Adopted by
Most recently taken up by
- DemonDamon/AgenticXtheir own version, first seen Nov 9, 2026
- chrysogonus/power-agentstheir own version, first seen Nov 8, 2026
- willy92wins/DayZ-Modding-Knowledge-Packtheir own version, first seen Nov 8, 2026
- roundpilot/superpowers-antigravitytheir own version, first seen Nov 8, 2026
- REPOZY/superpowers-optimizedtheir own version, first seen Nov 8, 2026
- lingyired/status-triotheir own version, first seen Nov 8, 2026
Used with
Projects with it also use chinese-code-review, chinese-commit-conventions and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Leodorareluctant259Skillchinese-code-review
中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈
Also in 8 projects that use this
Leodorareluctant259Skillchinese-commit-conventions
中文 Git 提交规范 — 适配国内团队的 commit message 规范和 changelog 自动化
Also in 8 projects that use this
obraSkilldiagnosing-superpowers
Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.
Also in 20 projects that use this
mjunaidcaSkillbuilding-chatgpt-apps
Guides creation of ChatGPT Apps with interactive widgets using OpenAI Apps SDK and MCP servers. Use when building ChatGPT custom apps with visual UI components, embedded widgets, or rich interactive experiences. Covers widget architecture, MCP server setup with FastMCP, response metadata, and Developer Mode configuration. NOT when building standard MCP servers without widgets (use building-mcp-servers skill instead).
Also in 4 projects that use this
mjunaidcaSkillbuilding-chat-interfaces
Build AI chat interfaces with custom backends, authentication, and context injection. Use when integrating chat UI with AI agents, adding auth to chat, injecting user/page context, or implementing httpOnly cookie proxies. Covers ChatKitServer, useChatKit, and MCP auth patterns. NOT when building simple chatbots without persistence or custom agent integration.
Also in 4 projects that use this
- +2 more from Leodorareluctant259
- +5 more from mjunaidca
Other versions190 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 190
- obra/superpowers★ 314ksame name
- NousResearch/hermes-agent★ 262ksame name
- open-metadata/OpenMetadata★ 16ksame name
- jnMetaCode/superpowers-zh★ 8.4ksame name
- vudovn/ag-kit★ 8.2ksame name
- vudovn/antigravity-kit★ 8.2ksame name
- openai/plugins★ 7.8ksame name
- ChrisWiles/claude-code-showcase★ 6.1ksame name
- farm-fe/farm★ 5.6ksame name
- microsoft/FluidFramework★ 4.9ksame name
180 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository27 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- add-hookSkill
- affected-area-testingSkill
- commit-workflowSkill
- create-issueSkill
- create-manualSkill
- create-prSkill
- debug-bar-investigationSkill
- documentation-standardsSkill
- edit-issueSkill
- handoffSkill
- large-feature-executionSkill
- livewire-v3-syntaxSkill
- parallel-setupSkill
- pdf-readSkill
- pdfSkill
- playwright-error-detectionSkill
- pre-implementation-researchSkill
- questionnaireSkill
- resolve-issueSkill
- review-permissionsSkill
- review-prSkill
- route-managementSkill
- tailwind-enforcementSkill
- tddSkill
- ui-approvalSkill
- writing-skillsSkill
The file
Files
系統的デバッグ(原因究明の規律)
大原則: 根本原因を掴む前に修正を書かない
症状を見て即座にコードを直し始めない。「たぶんここだろう」で 1 行変えて様子を見るのは、 当てずっぽうを修正と呼んでいるだけで、運良く直っても何が起きていたか分からないまま残る。 これは CLAUDE.md の「課題を後回しにしない」「一時的な修正をしない」「字面でなく意図で動く」の 実行手順版である。
時間が無いときほど、当てずっぽうのループ(変える→ダメ→また変える)が最も時間を食う。 焦ったら、むしろ系統的に進めた方が速い(「焦ったら止まれ」と接続)。
4 フェーズ
順に進める。前のフェーズを飛ばして次に行かない。
フェーズ 1: 根本原因の調査
修正案を考える前に、まず何が起きているかをデータで掴む。
- データフローの境界(入力・分岐・外部呼び出し・出力)に計測(ログ / dump / ブレークポイント)を 仕込み、症状の出る地点から原因方向へ遡る。
- 「どこで期待と実際がズレるか」を 1 点に絞り込む。憶測でなく観測した値で語る。
- コードの呼び出し元・依存関係の遡及は serena MCP を使う
(
mcp__serena__find_referencing_symbolsで参照元、mcp__serena__find_symbolで定義)。 grep の無計画な全文検索でなく、シンボル単位で追う(CLAUDE.md の discovery ポリシー)。 serena MCP 未導入なら、計画的な検索で代替する(無計画な grep は避ける)。
フェーズ 2: working / broken の差分比較
「動く状態」と「壊れた状態」が両方あるなら、その差分に原因がある。
- 動く入力 / 動くコミット / 動く環境と、壊れるそれを並べ、違いを 1 つずつ列挙する。
git bisect、動く入力との比較、直前に変わった箇所(diff・最近のコミット)を確認する。- 「差分はこれだけ」と言い切れるところまで絞る。
フェーズ 3: 単一仮説の検証
絞り込んだ原因について、仮説を文章で 1 つ書く。
- 「X だから症状 Y が出る。X を Z にすれば Y は消えるはず」と言語化する。
- 検証は 1 回に 1 変数だけ変える。複数同時に変えると、何が効いたか分からなくなる。
- 仮説が外れたら、当て直すのではなくフェーズ 1 のデータに戻る。仮説を捨てる勇気を持つ。
フェーズ 4: 失敗するテスト / 再現を先に固定してから 1 点修正
直す前に、今は失敗するテストか再現手順を用意する。
- 失敗を先に観測する(RED を見る)。失敗を見ていない修正は、正しい所を直した確証が無い。
(ブラウザ検証や既存のテスト手段(
affected-area-testing等)と接続。コードベースに応じて 自動テスト・再現スクリプト・手順のいずれでもよいが、「修正前に失敗が再現すること」を 必ず先に確認する。) - 修正は仮説に対応する最小の 1 点に留める。ついでの整理を混ぜない。
- 修正後、用意した失敗が**通る(GREEN)**ことと、周辺が壊れていないことを確認する。
追加ルール
- 修正が 3 回失敗したら、戦術でなくアーキテクチャを疑う。 同じ箇所を 3 回直して直らないなら、原因はその行ではなく設計・前提・データモデルの側にある。 4 回目の当てずっぽうに進まず、フェーズ 1 に戻って前提ごと疑い直す。
- 原因が説明できないまま「直った」で終えない。 なぜ直ったか説明できないなら、再発する。
スタック固有の調査 skill との棲み分け
- 本 skill は言語・フレームワーク非依存の調査規律(上位)。
- スタック固有のデータ調査 skill(例: Laravel なら
debug-bar-investigationの Debug Bar 3 段階調査)があれば、本 skill のフェーズ 1(計測してデータフローを遡る)の 具体手段として併用する。本 skill は手順の骨格、固有 skill はその実装にあたる。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

