# graph-query

This skill queries a project’s code graph to trace component links and assess the reach of a change. Use it before editing a function or model.

- skill · `type=skill` · Claude Code · 202 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/ai-maestro/graph-query
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/graph-query

## What it does

After reading a file, the skill prompts the agent to consult the code graph before continuing. Its commands locate callers and callees, connected components, model serializers and associations. Use `graph-find-path.sh <from> <to>` to trace calls between functions, or `graph-index-delta.sh [path]` to refresh the graph.

A local AI Maestro instance must be running, and the codebase must be indexed. Install the graph tools by cloning `https://github.com/23blocks-OS/ai-maestro-plugins.git`, then running `cd ai-maestro-plugins && ./install-graph-tools.sh`. Without the running service and an index, graph queries cannot show the project’s dependencies.

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill ai-maestro/graph-query
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill graph-query -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/graph-query/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/graph-query/

### Codex

**Manually: put the files in place**
- File: `.agents/skills/graph-query/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

**Manually: put the files in place**
- File: `.cursor/skills/graph-query/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates graph-query
```

2. **Manually: put the files in place**
- File: `.github/skills/graph-query/SKILL.md`

### Gemini CLI

**Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/ai-maestro/graph-query
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/graph-query/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/ai-maestro/graph-query

## When to use it
- trace which functions call a target function
- inspect functions called by a given function
- locate serializers for a model
- trace calls between two functions
- refresh the code graph after code changes

## Example prompts
- Before changing `process_payment`, find every function that calls it.
- Show the serializers and associations for the `User` model.
- Trace the call path from `handleRequest` to `sendResponse`.

## Similar
- [improve-codebase-architecture](https://affpapa.org/en/nevibecode/skills/improve-codebase-architecture.md) — skill · 1163035 installs
- [tdd](https://affpapa.org/en/nevibecode/skills/tdd.md) — skill · 1141062 installs
- [triage](https://affpapa.org/en/nevibecode/skills/triage.md) — skill · 990453 installs
- [codebase-design](https://affpapa.org/en/nevibecode/skills/codebase-design.md) — skill · 850344 installs
- [code-review](https://affpapa.org/en/nevibecode/skills/code-review.md) — skill · 789521 installs
- [implement](https://affpapa.org/en/nevibecode/skills/implement.md) — skill · 774700 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 495 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
