jpskill.com
📦 その他 コミュニティ

gitnexus-debugging

知識グラフを活用し、プログラムの呼び出し関係を辿ることで、バグの原因を効率的に特定し、問題解決を支援するSkill。

📜 元の英語説明(参考)

Trace bugs through call chains using knowledge graph

🇯🇵 日本人クリエイター向け解説

一言でいうと

知識グラフを活用し、プログラムの呼び出し関係を辿ることで、バグの原因を効率的に特定し、問題解決を支援するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o gitnexus-debugging.zip https://jpskill.com/download/8837.zip && unzip -o gitnexus-debugging.zip && rm gitnexus-debugging.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/8837.zip -OutFile "$d\gitnexus-debugging.zip"; Expand-Archive "$d\gitnexus-debugging.zip" -DestinationPath $d -Force; ri "$d\gitnexus-debugging.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して gitnexus-debugging.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → gitnexus-debugging フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

GitNexus を使用したデバッグ

どのような時に使うか

  • 「なぜこの関数は失敗するのか?」
  • 「このエラーがどこから発生したのかを追跡する」
  • 「誰がこのメソッドを呼び出しているのか?」
  • 「このエンドポイントは 500 を返す」
  • バグ、エラー、または予期しない動作の調査

ワークフロー

1. gitnexus_query({query: "<エラーまたは症状>"})            → 関連する実行フローを見つける
2. gitnexus_context({name: "<疑わしいもの>"})                    → 呼び出し元/呼び出し先/プロセスを確認する
3. READ gitnexus://repo/{name}/process/{name}                → 実行フローを追跡する
4. gitnexus_cypher({query: "MATCH path..."})                 → 必要に応じてカスタムトレースを行う

「Index is stale」と表示された場合 → ターミナルで npx gitnexus analyze を実行してください。

チェックリスト

- [ ] 症状を理解する (エラーメッセージ、予期しない動作)
- [ ] エラーテキストまたは関連コードに対して gitnexus_query を実行する
- [ ] 返されたプロセスから疑わしい関数を特定する
- [ ] 呼び出し元と呼び出し先を確認するために gitnexus_context を実行する
- [ ] 該当する場合は、プロセスリソースを介して実行フローを追跡する
- [ ] 必要に応じて、カスタムコールチェーントレースのために gitnexus_cypher を実行する
- [ ] ソースファイルを読んで根本原因を確認する

デバッグパターン

症状 GitNexus のアプローチ
エラーメッセージ エラーテキストに対して gitnexus_query → throw サイトで context
間違った戻り値 関数に対して context → データフローのために呼び出し先をトレース
断続的な失敗 context → 外部呼び出し、非同期依存関係を探す
パフォーマンスの問題 context → 多数の呼び出し元を持つシンボル (ホットパス) を見つける
最近のリグレッション 変更が何に影響するかを確認するために detect_changes を実行する

ツール

gitnexus_query — エラーに関連するコードを見つける:

gitnexus_query({query: "payment validation error"})
→ Processes: CheckoutFlow, ErrorHandling
→ Symbols: validatePayment, handlePaymentError, PaymentException

gitnexus_context — 疑わしいものの完全なコンテキスト:

gitnexus_context({name: "validatePayment"})
→ Incoming calls: processCheckout, webhookHandler
→ Outgoing calls: verifyCard, fetchRates (external API!)
→ Processes: CheckoutFlow (step 3/7)

gitnexus_cypher — カスタムコールチェーントレース:

MATCH path = (a)-[:CodeRelation {type: 'CALLS'}*1..2]->(b:Function {name: "validatePayment"})
RETURN [n IN nodes(path) | n.name] AS chain

例: 「決済エンドポイントが断続的に 500 を返す」

1. gitnexus_query({query: "payment error handling"})
   → Processes: CheckoutFlow, ErrorHandling
   → Symbols: validatePayment, handlePaymentError

2. gitnexus_context({name: "validatePayment"})
   → Outgoing calls: verifyCard, fetchRates (external API!)

3. READ gitnexus://repo/my-app/process/CheckoutFlow
   → Step 3: validatePayment → fetchRates (external) を呼び出す

4. 根本原因: fetchRates は適切なタイムアウトなしで外部 API を呼び出す
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Debugging with GitNexus

When to Use

  • "Why is this function failing?"
  • "Trace where this error comes from"
  • "Who calls this method?"
  • "This endpoint returns 500"
  • Investigating bugs, errors, or unexpected behavior

Workflow

1. gitnexus_query({query: "<error or symptom>"})            → Find related execution flows
2. gitnexus_context({name: "<suspect>"})                    → See callers/callees/processes
3. READ gitnexus://repo/{name}/process/{name}                → Trace execution flow
4. gitnexus_cypher({query: "MATCH path..."})                 → Custom traces if needed

If "Index is stale" → run npx gitnexus analyze in terminal.

Checklist

- [ ] Understand the symptom (error message, unexpected behavior)
- [ ] gitnexus_query for error text or related code
- [ ] Identify the suspect function from returned processes
- [ ] gitnexus_context to see callers and callees
- [ ] Trace execution flow via process resource if applicable
- [ ] gitnexus_cypher for custom call chain traces if needed
- [ ] Read source files to confirm root cause

Debugging Patterns

Symptom GitNexus Approach
Error message gitnexus_query for error text → context on throw sites
Wrong return value context on the function → trace callees for data flow
Intermittent failure context → look for external calls, async deps
Performance issue context → find symbols with many callers (hot paths)
Recent regression detect_changes to see what your changes affect

Tools

gitnexus_query — find code related to error:

gitnexus_query({query: "payment validation error"})
→ Processes: CheckoutFlow, ErrorHandling
→ Symbols: validatePayment, handlePaymentError, PaymentException

gitnexus_context — full context for a suspect:

gitnexus_context({name: "validatePayment"})
→ Incoming calls: processCheckout, webhookHandler
→ Outgoing calls: verifyCard, fetchRates (external API!)
→ Processes: CheckoutFlow (step 3/7)

gitnexus_cypher — custom call chain traces:

MATCH path = (a)-[:CodeRelation {type: 'CALLS'}*1..2]->(b:Function {name: "validatePayment"})
RETURN [n IN nodes(path) | n.name] AS chain

Example: "Payment endpoint returns 500 intermittently"

1. gitnexus_query({query: "payment error handling"})
   → Processes: CheckoutFlow, ErrorHandling
   → Symbols: validatePayment, handlePaymentError

2. gitnexus_context({name: "validatePayment"})
   → Outgoing calls: verifyCard, fetchRates (external API!)

3. READ gitnexus://repo/my-app/process/CheckoutFlow
   → Step 3: validatePayment → calls fetchRates (external)

4. Root cause: fetchRates calls external API without proper timeout