本文へ移動
cccskills
無料GitHub で公開

ai-maestro-code-graph-query

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 understanding code structure and avoiding breaking changes.

インストール方法を見る

含まれるファイル(3)

  • SKILL.md5.3 KB
  • output.json7.0 KB
  • skill-report.json72.6 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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:

  • What is this component/function?
  • What depends on it? (callers, serializers, child classes)
  • What does it depend on? (callees, parent classes, associations)

DO NOT:

  • Wait for the user to ask you to query the graph
  • Skip the graph query because "it seems simple"
  • Assume you understand the impact without checking
  • Make changes before understanding dependencies

ALWAYS:

  • Query the graph IMMEDIATELY after reading any code file
  • Query BEFORE making any modifications
  • Query when you find files via search (grep/glob)
  • Include graph findings in your analysis to the user

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

CommandDescription
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

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

  • First time: Does a full index + initializes file tracking metadata
  • Subsequent runs: Only indexes new/modified/deleted files

Output shows:

  • New files added
  • Modified files re-indexed
  • Deleted files removed
  • Unchanged files skipped

Performance:

  • Full index: 30-120 seconds (1000+ files)
  • Delta index: 1-5 seconds (5-10 changed files)

What to Query Based on What You Read

File TypeIMMEDIATELY Query
Modelgraph-describe.sh, graph-find-serializers.sh, graph-find-associations.sh
Controllergraph-describe.sh, graph-find-callees.sh
Servicegraph-describe.sh, graph-find-callers.sh
Functiongraph-find-callers.sh, graph-find-callees.sh
Serializergraph-describe.sh
Any classgraph-find-related.sh

Why This Matters

Without querying the graph, you will:

  • Miss serializers that need updating when you change a model
  • Break callers when you change a function signature
  • Miss child classes that inherit your changes
  • Overlook associations that depend on this model

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

Component Types

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

  • model - Database models
  • serializer - JSON serializers
  • controller - API controllers
  • service - Service objects
  • job - Background jobs
  • concern - Shared modules
  • component - React/Vue components
  • hook - React hooks

Error Handling

Script not found:

  • Check PATH: which graph-describe.sh
  • Verify scripts installed: ls -la ~/.local/bin/graph-*.sh
  • Scripts are installed to ~/.local/bin/ which should be in your PATH
  • If not found, run: ./install-graph-tools.sh

API connection fails:

  • Ensure AI Maestro is running: curl http://localhost:23000/api/agents
  • Ensure your agent is registered (scripts auto-detect from tmux session)
  • Check exact component names (case-sensitive)

Graph is unavailable:

  • Inform the user: "Graph unavailable, proceeding with manual analysis - increased risk of missing dependencies."

Installation

If commands are not found:

./install-graph-tools.sh

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

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Trigger for: explaining current FAR, DFARS, or agency-supplement text; determining documented acquisition-policy status for an agency and FAR part; comparing codified text, RFO model text, and agency deviations; tracing acquisition rulemaking; finding procurement comment periods; analyzing public comments; refreshing prior policy analysis; or producing an Acquisition Policy Impact Brief. Use published federal sources and supplied policy documents without making legal or procurement-specific applicability determinations. Do not use for clause selection, market research execution, opportunities, pricing, grants, or cooperative agreements.

日本語の概要は準備中です。原文の説明を表示しています。

aiskillstore/marketplace4332026年10月11日 更新

Systematic framework for extracting actionable items from documents and organizing them into prioritized, trackable checklists. Use when converting reports, meeting notes, audits, or any document with embedded action items into structured TODO lists.

日本語の概要は準備中です。原文の説明を表示しています。

aiskillstore/marketplace4332026年10月11日 更新

Browser automation for AI agents via inference.sh. Navigate web pages, interact with elements using @e refs, take screenshots, record video. Capabilities: web scraping, form filling, clicking, typing, drag-drop, file upload, JavaScript execution. Use for: web automation, data extraction, testing, agent browsing, research. Triggers: browser, web automation, scrape, navigate, click, fill form, screenshot, browse web, playwright, headless browser, web agent, surf internet, record video

日本語の概要は準備中です。原文の説明を表示しています。

aiskillstore/marketplace4332026年10月11日 更新

This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.

日本語の概要は準備中です。原文の説明を表示しています。

aiskillstore/marketplace4332026年10月11日 更新

Run AI apps via inference.sh CLI - image generation, video creation, LLMs, search, 3D, Twitter automation. Models: FLUX, Veo, Gemini, Grok, Claude, Seedance, OmniHuman, Tavily, Exa, OpenRouter, and many more. Use when running AI apps, generating images/videos, calling LLMs, web search, or automating Twitter. Triggers: inference.sh, infsh, ai model, run ai, serverless ai, ai api, flux, veo, claude api, image generation, video generation, openrouter, tavily, exa search, twitter api, grok

日本語の概要は準備中です。原文の説明を表示しています。

aiskillstore/marketplace4332026年10月11日 更新

Agile ceremonies and sprint management specialist. Use when running standups, retrospectives, sprint planning, or tracking sprint progress.

日本語の概要は準備中です。原文の説明を表示しています。

aiskillstore/marketplace4332026年10月11日 更新

aiskillstore のスキルをすべて見る

このスキルの問題を報告する