Query the code graph database to understand component relationships, dependencies, and change impact. Use when the user asks to "find callers", "check dependenc
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-graph-query-c9fc517738fd ,按照其中的说明把「graph-query」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
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.
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
After reading any code file, query the graph to understand dependencies:
Read file -> Query graph -> Then proceed
| 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 |
| Command | Description |
|---|---|
graph-index-delta.sh [path] | Index or update the code graph |
Use with graph-find-by-type.sh: model, serializer, controller, service, job, concern, component, hook
# 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
Without checking the graph, you risk:
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.