Skillpedia
برمجة عامة33k · #8522

graph-query

ما الذي تفعله

تبحث هذه المهارة في كيفية اعتماد أجزاء قاعدة الشيفرة على بعضها، مثل معرفة الدوال التي تستدعي دالة معينة. وهي موجهة للمطورين الذين يحتاجون إلى معرفة ما قد يتأثر بتغيير قبل إجرائه.

متى تستخدمها

  • ✓عندما يريد مطور معرفة من يستدعي دالة قبل تغييرها.
  • ✓عندما قد يؤثر تغيير في مكونات أخرى ويجب فحص اعتمادياتها.
  • ✓عندما يريد أحدهم إيجاد مسار الاستدعاء بين دالتين.

رابط المهارة

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/ai-maestro/graph-query/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“ابحث عن كل دالة تستدعي الدالة saveOrder قبل أن أغيّرها.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تشغّل المهارة استعلامات رسم تبحث عن المستدعين والمستدعى منهم والمكونات المرتبطة أو مسار استدعاء. وتحتاج إلى تشغيل 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
آخر تحديث
2‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة