Skip to content
Skillpedia
General coding33k · #8522

graph-query

What it does

This skill looks up how parts of a codebase depend on each other, such as which functions call a given one. It is for developers who need to know what a change could affect before making it.

When to use it

  • ✓When a developer wants to know who calls a function before changing it.
  • ✓When a change may affect other components and their dependencies need checking.
  • ✓When someone wants to find the call path between two functions.

Skill link

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

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/ai-maestro/graph-query/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Find every function that calls the saveOrder function before I change it.”

5 new skills a week. 1 minute to read.

How it works

The skill runs graph queries that look up callers, callees, related components or a call path. It needs AI Maestro running locally with the codebase indexed.

Technical content (original SKILL.md)

Original text by the author, straight from 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.

FAQ

What can it find?

It can find callers, callees, related components, serializers, model associations and call paths.

Does it need indexing first?

Yes. The codebase must be indexed before the graph can be queried.

Does it change the code?

No. It only looks up relationships to help you decide what to change.

Details

Original description by the author

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

Popularity

GitHub stars
33k
Ranking position
#8522
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills