diagnostic-reasoning
できること
このスキルは、バグを修正しようとする前に、報告された問題を理解するための段階的な方法です。推測ではなく、信頼できるバグ修正を望む人向けです。
使う場面
- ✓バグが報告されたが、何が引き金になるのか誰も正確に言えないとき。
- ✓診断レポートが原因を示唆しており、動く前に確認したいとき。
- ✓バグが時々しか起きず、その理由を知りたいとき。
スキルのリンク
https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/diagnostic-reasoning/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“利用者が、チェックアウトのページが時々壊れると言っています。何かを変える前に、何が本当に引き金になるかを突き止めるのを手伝ってください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントはまず、実際の利用者と同じように問題を再現します。そのうえで、引き金になるもの、問題を隠したり表に出したりするもの、そして利用者に実際に見えるものの三つを区別します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
diagnostic-reasoning
Use this procedure before scoping a reported bug and before acting on a diagnostic report. This skill is the single owner of Firstmate's bug-diagnosis reasoning procedure. Firstmate applies it when briefing delegated investigation and evaluating the resulting evidence, without taking over project-specific investigation itself.
Establish the observed behavior
Start from the end user's experience rather than an internal error string or an implementation hypothesis. Require an end-to-end reproduction aligned with the real user path whenever it is feasible and safe. If a faithful reproduction is not feasible, record the exact limitation and use the closest representative path without presenting it as equivalent evidence. Capture the expected behavior, observed behavior, setup, inputs, and repeatability before assigning a cause.
Separate these three facts explicitly:
- The initiating trigger is the event, input, or transition that starts the faulty behavior.
- The masking condition is the independent state, environment, timing, cache, configuration, or path difference that hides or exposes the fault.
- The visible symptom is what the end user or operator can actually observe.
Do not collapse those facts into one label. A masking condition may explain why a fault appears only sometimes without being the initiating cause, and the visible symptom may be several layers downstream from both.
Test the causal explanation
Inspect the failing path and a proven path where the intended behavior is known to work. Compare their inputs, state transitions, dependencies, timing, and control flow to find the earliest meaningful divergence. Inspect relevant history, including blame, commits, migrations, and prior implementations, when it can explain why the paths diverged or which invariant was intended. Do not treat the most recent nearby change as causal without evidence.
Identify the smallest counterfactual that should change the outcome if the leading explanation is true. Change one condition at a time where practical, and record whether the symptom appears, disappears, or remains unchanged. Seek disconfirming evidence deliberately: name what observation would falsify the leading explanation, run that check when feasible, and retain contradictory results instead of explaining them away. Compare the final explanation against the proven path and show why the proposed causal boundary accounts for both the failure and the success.
Scope and act on the result
A diagnosis brief should ask for the reproduction, trigger/mask/symptom separation, divergent and proven path comparison, relevant history, smallest counterfactual, and disconfirming evidence in the report. A diagnostic report should distinguish observed facts from hypotheses and state any unresolved uncertainty that could change the recommended scope. Before acting on the report, verify that its claimed cause explains the end-user reproduction and the proven path without relying on an untested masking condition. If a load-bearing element is missing, route a focused follow-up investigation instead of treating confidence or implementation detail as proof. A diagnosis or implementation-ready recommendation is evidence, not authorization to change code. Implementation still requires the captain's request or another existing lifecycle authority, and the reproduction should become the regression test when a fix is authorized.
よくある質問
最初のエラーメッセージを直してはいけませんか?
エラーメッセージが本当の原因ではないかもしれないため、スキルは利用者が体験することから始めます。
バグを再現できない場合はどうしますか?
エージェントは、その限界を記録し、本物の場合と同じだと主張しない、最も近い安全なテストを使います。
どんな種類のバグにも使えますか?
一般的な方法として書かれているため、報告されたさまざまな問題に使えます。
詳細
作者による元の説明
Load before scoping a reported bug and before acting on a diagnostic report.
repo: kunchenguid/firstmate
人気
- GitHubのスター
- 8.5k
- ランキング
- #12433
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
afk
8.5kエージェントが、あなたが離れている間も作業を見守り、あなたの判断が必要なものを保留し、戻ったときに明確な報告を送れるよう支援します。
ahoy
8.5kエージェントが、セッションで何が起きたかの短い振り返りを示し、まだあなたの答えを待っている判断を一緒に確認できるよう支援します。
ask-user-authority
8.5kエージェントが、検証の中で出た質問を、合意された計画に明らかに合う場合は自分で判断し、不明確または危険な場合にだけあなたに尋ねるよう支援します。
away-quiet-supervision
8.5kエージェントが、不在またはおとなしいモードで作業を監督するときの安全ルールに従い、メッセージを明確に保ち、あなたが必要な判断を保留できるよう支援します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。