gitnexus-exploring について
gitnexus-exploring は、見慣れないコードベースを把握する開発者向けの GitNexus スキルです。リポジトリリソース、実行フロー検索、シンボルのコンテキストを組み合わせ、構成や実装経路の理解を支援します。
主な機能
- 01インデックス済みリポジトリの検出
- 02コードベースの概要と古さの確認
- 03関連する実行フローの検索
- 04シンボルの呼び出し関係の確認
- 05段階的なプロセストレースの参照
活用シーン
- 01認証の仕組みを把握
- 02データベース関連コードの特定
- 03プロジェクトの主要コンポーネントの把握
- 04決済処理フローの追跡
MCP 対応
このスキルは context、clusters、process trace などの GitNexus リポジトリリソースを読み取り、query と context ツールを使用します。
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ mindfold-ai/ trellis --skill gitnexus-exploringインストール後、Claude Code で/gitnexus-exploringを入力して読み込まれたか確認します。
詳細
GitNexus を使ったコードベースの調査
使用する場面
- 「認証はどのように機能しますか?」
- 「プロジェクトの構成はどうなっていますか?」
- 「主要なコンポーネントを見せてください」
- 「データベースのロジックはどこにありますか?」
- 初めて見るコードを理解するとき
ワークフロー
1. READ gitnexus://repos → Discover indexed repos
2. READ gitnexus://repo/{name}/context → Codebase overview, check staleness
3. query({query: "<what you want to understand>"}) → Find related execution flows
4. context({name: "<symbol>"}) → Deep dive on specific symbol
5. READ gitnexus://repo/{name}/process/{name} → Trace full execution flow
手順 2 で「インデックスが古くなっています」と表示された場合は、ターミナルで
node .gitnexus/run.cjs analyzeを実行してください。
チェックリスト
- [ ] READ gitnexus://repo/{name}/context
- [ ] query for the concept you want to understand
- [ ] Review returned processes (execution flows)
- [ ] context on key symbols for callers/callees
- [ ] READ process resource for full execution traces
- [ ] Read source files for implementation details
リソース
| リソース | 内容 |
|---|---|
gitnexus://repo/{name}/context | 統計情報、古さに関する警告(約 150 トークン) |
gitnexus://repo/{name}/clusters | まとまり度スコア付きのすべての機能領域(約 300 トークン) |
gitnexus://repo/{name}/cluster/{name} | ファイルパス付きの領域メンバー(約 500 トークン) |
gitnexus://repo/{name}/process/{name} | 実行トレースの手順(約 200 トークン) |
ツール
query — 概念に関連する実行フローを検索します。
query({query: "payment processing"})
→ Processes: CheckoutFlow, RefundFlow, WebhookHandler
→ Symbols grouped by flow with file locations
context — シンボルを 360 度の視点で確認します。
context({name: "validateUser"})
→ Incoming calls: loginHandler, apiMiddleware
→ Outgoing calls: checkToken, getUserById
→ Processes: LoginFlow (step 2/5), TokenRefresh (step 1/3)
例:「決済処理はどのように機能しますか?」
1. READ gitnexus://repo/my-app/context → 918 symbols, 45 processes
2. query({query: "payment processing"})
→ CheckoutFlow: processPayment → validateCard → chargeStripe
→ RefundFlow: initiateRefund → calculateRefund → processRefund
3. context({name: "processPayment"})
→ Incoming: checkoutHandler, webhookHandler
→ Outgoing: validateCard, chargeStripe, saveTransaction
4. Read src/payments/processor.ts for implementation details
コメント
Markdown 対応