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

graph-query

できること

このスキルは、コードベースのある部分が互いにどう依存しているかを調べます。たとえば、どの関数がある関数を呼び出しているかです。変更の前に、何に影響しうるかを知る必要がある開発者向けです。

使う場面

  • ✓開発者が、関数を変更する前に、その関数を呼び出しているものを知りたいとき。
  • ✓変更が他のコンポーネントに影響しうるため、その依存関係を確認する必要があるとき。
  • ✓2つの関数の間の呼び出し経路を見つけたい場合。

スキルのリンク

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/ai-maestro/graph-query/SKILL.md

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“saveOrder 関数を呼び出しているすべての関数を、変更する前に見つけてください。”

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

仕組み

このスキルは、呼び出し元、呼び出し先、関連コンポーネント、呼び出し経路を調べるグラフクエリを実行します。ローカルで AI Maestro が動いていて、コードベースがインデックス化されている必要があります。

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

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

AI Maestro Code Graph Query

Query your codebase's dependency graph to understand component relationships, call chains, and the impact of changes before making modifications. Part of the AI Maestro suite.

Prerequisites

Requires AI Maestro running locally with codebase indexed.

# Install graph tools
git clone https://github.com/23blocks-OS/ai-maestro-plugins.git
cd ai-maestro-plugins && ./install-graph-tools.sh

Core Behavior

After reading any code file, query the graph to understand dependencies:

Read file -> Query graph -> Then proceed

Commands

Query

Command Description
graph-describe.sh <name> Describe a component or function
graph-find-callers.sh <fn> Find all callers of a function
graph-find-callees.sh <fn> Find all functions called by this function
graph-find-related.sh <component> Find related components
graph-find-by-type.sh <type> Find all components of a type
graph-find-serializers.sh <model> Find serializers for a model
graph-find-associations.sh <model> Find model associations
graph-find-path.sh <from> <to> Find call path between functions

Index

Command Description
graph-index-delta.sh [path] Index or update the code graph

Component Types

Use with graph-find-by-type.sh: model, serializer, controller, service, job, concern, component, hook

Usage Examples

# After reading a model file
graph-describe.sh User
graph-find-serializers.sh User
graph-find-associations.sh User

# Before modifying a function
graph-find-callers.sh process_payment
graph-find-callees.sh process_payment

# Find call chain between components
graph-find-path.sh handleRequest sendResponse

# Index your codebase
graph-index-delta.sh /path/to/project

Why Query Before Modifying

Without checking the graph, you risk:

  • Breaking callers when changing a function signature
  • Missing serializers that need updating with a model change
  • Overlooking child classes that inherit your modifications

Full AI Maestro Experience

This skill is part of the AI Maestro platform, which provides 6 skills for AI agent orchestration: messaging, memory, docs, graph, planning, and agent management.

よくある質問

何を見つけられますか?

呼び出し元、呼び出し先、関連コンポーネント、シリアライザ、モデルの関連、呼び出し経路を見つけられます。

先にインデックス化が必要ですか?

はい。グラフに問い合わせるには、コードベースをインデックス化しておく必要があります。

コードを変更しますか?

いいえ。変更すべきかを決める助けとして、関係を調べるだけです。

詳細

作者による元の説明

Query the code graph database to understand component relationships, dependencies, and change impact. Use when the user asks to "find callers", "check dependencies", "what uses this", "show relationships", "find serializers", or when reading code and needing to understand what depends on a component before modifications.

repo: davila7/claude-code-templates

人気

GitHubのスター
33k
ランキング
#8522
ライセンス
MIT
更新日
2026/11/2

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

0

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

コメント

  • …

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

似ているスキル