Ai maestro code graph query

From aiskillstore/marketplace · View interactive version

Ai maestro code graph query is an AI agent skill from the GitHub repository aiskillstore/marketplace. PROACTIVELY query the code graph database to understand relationships and impact of changes. Use this skill WHEN READING any file to understand context, when searching for files, when exploring the codebase, or when you need to understand what depends on a component. This is your primary tool for un

How to use this skill

Skill file

AI Maestro Code Graph Query

CRITICAL: AUTOMATIC BEHAVIOR - READ THIS FIRST

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:

The Rule: Read File → Query Graph → Then Proceed

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

Available Commands

All commands auto-detect your agent ID from the tmux session. Just run them:

Query Commands

| 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 |

Indexing Commands

| Command | Description |

|---------|-------------|

| graph-index-delta.sh [project-path] | Delta index - only re-index changed files |

Delta Indexing (New)

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:

Output shows:

Performance:

What to Query Based on What You Read

| 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 |

Why This Matters

Without querying the graph, you will:

The graph query takes 1 second. A broken deployment takes hours to fix.

Component Types

Use with graph-find-by-type.sh:

Error Handling

Script not found:

API connection fails:

Graph is unavailable:

Installation

If commands are not found:

./install-graph-tools.sh

This installs scripts to ~/.local/bin/.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.