plugins/ai-maestro/skills/graph-query/SKILL.md
Queries the code graph database to understand component relationships, dependencies, and the impact of changes. Use when the user asks to "find callers", "check dependencies", "what uses this", or when exploring codebase structure to avoid breaking changes.
npx skillsauth add 23blocks-os/ai-maestro-plugins graph-queryInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
4 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
THIS IS NOT OPTIONAL. THIS IS YOUR DEFAULT BEHAVIOR.
Every time you use the Read tool on a code file, you MUST IMMEDIATELY query the graph to understand:
DO NOT:
ALWAYS:
1. You read a file with Read tool
2. IMMEDIATELY run graph queries (describe, find-callers, find-serializers, etc.)
3. NOW you understand the full context
4. NOW you can analyze, modify, or discuss the code
Example - Reading a Model:
# After reading app/models/user.rb, IMMEDIATELY run:
graph-describe.sh User
graph-find-serializers.sh User
graph-find-associations.sh User
Example - Reading a Function:
# After reading a file with process_payment function, IMMEDIATELY run:
graph-find-callers.sh process_payment
graph-find-callees.sh process_payment
All commands auto-detect your agent ID from the tmux session. Just run them:
| Command | Description |
|---------|-------------|
| graph-describe.sh <name> | Describe a component or function |
| graph-find-callers.sh <function> | Find all functions that call this function |
| graph-find-callees.sh <function> | Find all functions called by this function |
| graph-find-related.sh <component> | Find related components (extends, includes, etc.) |
| graph-find-by-type.sh <type> | Find all components of a type (model, controller, etc.) |
| graph-find-serializers.sh <model> | Find serializers for a model |
| graph-find-associations.sh <model> | Find model associations (belongs_to, has_many) |
| graph-find-path.sh <from> <to> | Find call path between two functions |
| Command | Description |
|---------|-------------|
| graph-index-delta.sh [project-path] | Delta index - only re-index changed files |
When files change in your codebase, use delta indexing to quickly update the graph:
# Delta index - only process changed files
graph-index-delta.sh
# Delta index a specific project
graph-index-delta.sh /path/to/project
First Run Behavior:
Note: There is no separate
graph-index.shscript.graph-index-delta.shhandles both full indexing (on first run) and incremental updates (on subsequent runs).
Output shows:
Performance:
| File Type | IMMEDIATELY Query |
|-----------|-------------------|
| Model | graph-describe.sh, graph-find-serializers.sh, graph-find-associations.sh |
| Controller | graph-describe.sh, graph-find-callees.sh |
| Service | graph-describe.sh, graph-find-callers.sh |
| Function | graph-find-callers.sh, graph-find-callees.sh |
| Serializer | graph-describe.sh |
| Any class | graph-find-related.sh |
Without querying the graph, you will:
The graph query takes 1 second. A broken deployment takes hours to fix.
Use with graph-find-by-type.sh:
model - Database modelsserializer - JSON serializerscontroller - API controllersservice - Service objectsjob - Background jobsconcern - Shared modulescomponent - React/Vue componentshook - React hooksThis skill relies on an internal helper script that provides shared utility functions:
graph-helper.sh - Sourced by the graph-*.sh tool scripts. Provides graph-specific API functions (graph_query, init_graph) and initialization logic. Located alongside the tool scripts in ~/.local/bin/ (installed) or plugin/src/scripts/ (source). If tool scripts fail with "common.sh not found", re-run the installer (~/ai-maestro/install-graph-tools.sh).Script not found:
which graph-describe.shls -la ~/.local/bin/graph-*.sh~/.local/bin/ which should be in your PATH~/ai-maestro/install-graph-tools.shAPI connection fails:
curl http://127.0.0.1:23000/api/hosts/identityGraph is unavailable:
If commands are not found, run the installer from the AI Maestro project root:
~/ai-maestro/install-graph-tools.sh
This installs scripts to ~/.local/bin/.
tools
Create, manage, and interact with canvas HTML pages. Write visual UIs that users see in the AI Maestro dashboard, receive structured interactions when users click/submit/select, and update pages in response. Full lifecycle management for agent-rendered canvases.
tools
Creates, manages, and orchestrates AI agents using the AI Maestro CLI. Use when the user asks to "create agent", "list agents", "delete agent", "rename agent", "hibernate agent", "wake agent", "install plugin", "show agent", "export agent", "restart agent", "install marketplace", or any agent lifecycle management task.
tools
Creates, manages, and orchestrates AI agents using the AI Maestro CLI. Use when the user asks to "create agent", "list agents", "delete agent", "rename agent", "hibernate agent", "wake agent", "install plugin", "show agent", "export agent", "restart agent", "install marketplace", or any agent lifecycle management task.
documentation
Authenticate AI agents with auth servers using the Agent Identity (AID) protocol. Supports Ed25519 identity documents, proof of possession, OAuth 2.0 token exchange, and scoped JWT tokens. Self-contained — works independently without other protocols.