‹ 首页

graph-query

@davila7 · 收录于 5 天前 · 上游提交 5 天前

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.

适合你,如果需要在修改代码前了解依赖关系

/ 通过 npx 安装 校验哈希
npx oh-my-skill add davila7/claude-code-templates/graph-query
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- davila7/claude-code-templates/graph-query
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify davila7/claude-code-templates/graph-query
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
29874GitHub stars
~570上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 279b978 · 表述以原文为准
它做什么

读取代码文件后,自动查询代码图数据库,描述组件或函数、查找调用关系、关联等,帮助理解依赖和修改影响。

什么时候触发

当你说“查找调用者”“检查依赖”“什么用了这个”“显示关系”“找序列化器”,或阅读代码时需了解组件依赖时触发。

装好后可以这样说
技能原文 SKILL.md作者撰写 · MIT · 279b978

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.

按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。