本文へスキップ
Skillpedia
一般的なプログラミング33k · #9139

debug-issue

できること

このスキルは、code-review-graphツールを使った、構造化されたデバッグの作業をAIに導きます。コードベースのバグを追っている開発者向けです。

使う場面

  • ✓エラーメッセージやスタックトレースがあり、どこから始まっているかを探す必要があるとき。
  • ✓最近の変更がバグの原因かもしれず、確認したいとき。
  • ✓コードを変える前に、修正が何に影響するかを確認したいとき。

スキルのリンク

https://github.com/tirth8205/code-review-graph/blob/staging/skills/debug-issue/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/tirth8205/code-review-graph/blob/staging/skills/debug-issue/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“ユーザーが下書きを保存するとクラッシュします。どのコードの経路が原因かを追ってもらえますか?”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントはグラフで関連するコードを検索し、呼び出し元と呼び出し先をたどり、最近の変更を確認してから、実装とテストを読みます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Debug Issue

Trace a bug through the knowledge graph before reading source.

Steps

  1. Call semantic_search_nodes_tool to find code related to the issue.
  2. Call query_graph_tool with callers_of and callees_of to trace the call chain in both directions.
  3. Call get_flow_tool for the execution path that reaches the suspect code. Its entry point is where the bug is triggered.
  4. Call detect_changes_tool to check whether a recent change caused the issue.
  5. Call get_impact_radius_tool on the suspect files to see what a fix would affect.

Token Efficiency Rules

  • Call get_minimal_context_tool(task="<your task>") before any other graph tool.
  • Pass detail_level="minimal" wherever a tool accepts it. Use "standard" only when minimal is not enough.
  • Prefer a targeted query_graph_tool call over a broad listing call.
  • Budget: about five tool calls and 800 tokens of graph output per task.
  • Read the implementation and its tests before changing code. The graph narrows scope; it does not replace the source.
よくある質問

コードを読むことの代わりになりますか?

いいえ。グラフは探す範囲を絞るためのもので、変更する前には必ずソースとテストを読むとこのスキルは説明しています。

最近の変更は何を確認しますか?

最近の編集が原因かどうかを、変更検出のツールで確認します。

ツールの呼び出しは何回使いますか?

このスキルは、効率を保つため、1つの作業あたりグラフの呼び出しを約5回までとする上限を設けています。

詳細

作者による元の説明

Systematically debug issues using graph-powered code navigation

repo: tirth8205/code-review-graph

人気

GitHubのスター
33k
ランキング
#9139
ライセンス
MIT
更新日
2026/10/29

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル