본문으로 건너뛰기
Skillpedia
일반 코딩33k · #8522

graph-query

하는 일

이 스킬은 코드베이스의 부분들이 서로 어떻게 의존하는지 찾습니다. 예를 들어 어떤 함수가 주어진 함수를 호출하는지 확인합니다. 변경하기 전에 무엇이 영향을 받을지 알아야 하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓개발자가 함수를 바꾸기 전에 누가 그 함수를 호출하는지 알고 싶을 때.
  • ✓변경이 다른 컴포넌트에 영향을 줄 수 있어 그 의존성을 확인해야 할 때.
  • ✓두 함수 사이의 호출 경로를 찾고 싶을 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

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.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“saveOrder 함수를 호출하는 모든 함수를 바꾸기 전에 찾아 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 그래프 조회를 실행해 호출자, 피호출자, 관련 컴포넌트, 호출 경로를 찾습니다. 로컬에서 AI Maestro가 실행 중이고 코드베이스가 인덱싱되어 있어야 합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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.

자주 묻는 질문

무엇을 찾을 수 있나요?

호출자, 피호출자, 관련 컴포넌트, 직렬화기, 모델 연관, 호출 경로를 찾을 수 있습니다.

먼저 인덱싱이 필요한가요?

네. 그래프를 조회하려면 코드베이스가 먼저 인덱싱되어야 합니다.

코드를 바꾸나요?

아닙니다. 무엇을 바꿀지 결정하도록 관계만 찾아 줍니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
33k
순위
#8522
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬