# Query Code Graph Dependencies

Large codebases make change impact hard to see before editing. This skill uses AI Maestro graph commands to inspect dependencies, callers, callees, serializers, and associations.

## Install

```bash
npx skillstore add 23blocks-os/ai-maestro-code-graph-query
```

## Metadata

- - Slug: 23blocks-os-ai-maestro-code-graph-query
- - Version: 1.0.0
- - Author: 23blocks-OS
- - GitHub username: 23blocks-OS
- - License: MIT
- - Repository: https://github.com/23blocks-OS/ai-maestro/tree/main/skills/graph-query
- - Ref: main
- - Supported tools: Claude, Codex, Claude Code
- - Risk level: high
- - Risk factors: filesystem, external\_commands, network
- - Quality score: 38
- - Quality tier: warning
- - Public page: https://skillstore.pages.dev/skills/23blocks-os-ai-maestro-code-graph-query
- - Manifest: https://skillstore.pages.dev/api/skills/23blocks-os-ai-maestro-code-graph-query/manifest

## Capabilities

- Runs documented graph commands to describe components and functions.
- Finds callers and callees for named functions.
- Looks up serializers and associations for model changes.
- Finds related components and component types in an indexed project.
- Uses delta indexing commands to update graph data after code changes.
- Checks a localhost AI Maestro API endpoint when troubleshooting connection issues.

## Use Cases

- Review model change impact: Find serializers, associations, and related components before changing a model.
- Check function dependencies: Find callers and callees before changing a function signature or behavior.
- Explore unfamiliar architecture: Use graph relationships to understand services, controllers, jobs, and components.

## Prompt Templates

### Inspect One Component

```
Describe this component with the code graph, then summarize what depends on it and what it depends on.
```

### Prepare a Safe Edit

```
Before editing this function, find its callers and callees. List the files that may need follow-up changes.
```

### Review Model Relationships

```
For this model, find serializers, associations, and related components. Explain the highest-risk downstream changes.
```

### Trace Cross-Layer Flow

```
Trace the graph path from this controller action to the target service function. Identify indirect dependencies and test areas.
```

## Limitations

- Requires AI Maestro graph tools to be installed and available in PATH.
- Requires a local graph database that has already indexed the project.
- The reviewed skill does not include the shell script implementations.
- Commands may return incomplete results if component names are ambiguous or stale.

## Best Practices

- Verify the graph tools are trusted before adding them to PATH.
- Run delta indexing after meaningful code changes so graph results stay current.
- Treat graph results as context and confirm critical paths by reading source files.

## Anti Patterns

- Running unreviewed graph scripts from a user-writable PATH directory.
- Changing function signatures without checking callers and tests.
- Relying on graph data when the index is stale or the local service is unavailable.

## Security Audit

- - Safe to publish: false
- - Audited at: 2026-06-27T16:05:36.937\+00:00
- - Summary: The static analyzer found many repeated patterns, and most weak cryptography matches are false positives from documentation text and generated output. However, the skill contains coercive prompt-control language, requires broad Bash execution, references home-directory executable installation, and makes localhost API calls, so it should not be published without review.

## Stats

- - Views: 188
- - Downloads: 23
- - Favorites: 1
- - Popularity score: 0
