reading-source-code
ما الذي تفعله
توجه هذه المهارة الوكيل إلى قراءة الكود من مستودع واحد أو أكثر، وعرض ما وجده بلغة بسيطة. وهي للأشخاص الذين يطرحون أسئلة عن قاعدة كود ويريدون إجابات واضحة.
متى تستخدمها
- ✓عندما تسأل سؤالًا يحتاج إلى إجابة من كود المستودعات.
- ✓عندما يغطي البحث مستودعات كثيرة وتريد اختيار ما يُقرأ منها.
- ✓عندما لا يجد بحث الكود شيئًا، وتريد أن يجرب الوكيل خيارات أخرى قبل أن يقول ذلك.
رابط المهارة
https://github.com/lightdash/lightdash/blob/main/packages/backend/src/ee/services/ai/skills/builtInSkills/reading-source-code/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“ابحث عن كل مكان في مستودعاتنا يستخدم نوع OrderStatus، وأخبرني بلغة بسيطة ماذا يفعل كل مكان.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تسألك المهارة أي المستودعات تركز عليها عندما يمكن أن يغطي البحث عددًا كبيرًا منها. ثم تقرأ الكود، وتعيد المحاولة بعد الأخطاء الصغيرة، وتعرض النتائج دون وصف خطوات البحث.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Reading source code (exploreRepo and discoverRepos)
The exploreRepo description covers the mounts, the commands and the search locator. This skill covers which repositories to read and how to report what you find.
Ask before scanning many repositories. When a request would search many or all repositories ("which repos mention X", "find every place we do Y") and the user has not named one, tell them how many repositories discoverRepos lists and ask which one or few to focus on, offering the likely candidates by name. Each repository is searched separately, so covering the whole set is slow and rarely needed. Search them all once the user confirms they want every repository; the dbt project (/dbt) and any repository the user names need no confirmation.
Report findings, not mechanism. Describe what you found in plain language ("Three files reference OrderStatus: …", "Nothing in that repo mentions jquery"), not how you searched: leave out the commands you ran, code-search indexing, default branches and term-versus-regex matching. When search finds nothing and a regex or a non-default branch could explain it, try grep before saying nothing matched.
Recover from errors yourself. When a command fails (a missing path, a read-only error, a per-command limit), fix it and retry: the error says how. Mention a limitation only when it blocks the request, in terms of what you can do ("I can search a few repositories at once; which should I focus on?"). Show raw commands, output or errors only when the user asks for them.
الأسئلة الشائعة
هل ستبحث في كل المستودعات دفعة واحدة؟
لا، عندما يمكن أن يغطي البحث مستودعات كثيرة، تسألك أولًا عن المستودعات التي تركز عليها.
كيف تبدو الإجابة؟
تصف ما وُجد بلغة بسيطة، لا خطوات البحث التي استُخدمت.
ماذا يحدث بعد خطأ؟
تصلح المهارة الأخطاء الصغيرة بنفسها، وتعيد المحاولة قبل أن تذكر أي قيد.
التفاصيل
الوصف الأصلي من المؤلف
Workflow for reading repository code with `exploreRepo` and `discoverRepos`, covering when to ask which repositories to search and how to report findings and errors. Load it before answering from repository code.
repo: lightdash/lightdash
الشعبية
- نجوم GitHub
- 6.2k
- الترتيب
- #14399
- الترخيص
- —
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
breakup-pr
6.2kيساعد وكيلك على تقسيم طلب سحب كبير إلى شرائح أصغر متراكمة يمكن مراجعة كل منها ودمجها على حدة.
lightdash-agent-slack-messaging
6.2kيساعد وكيلك على كتابة تقارير صيانة ونشاط واضحة وودية لمسؤولي Lightdash، مبنية فقط على الأدلة المتوفرة.
developing-in-lightdash
6.2kيساعد وكيلك على قراءة لوحات المعلومات والمخططات في Lightdash وإنشائها وتحريرها كملفات JSON، بما فيها إعدادات كل نوع مخطط.
filter-expressions
6.2kيساعد وكيلك على كتابة تعابير فلترة صحيحة لاستعلامات مقاييس Lightdash، بما فيها الفلاتر على المقاييس المخصصة.
مهارات مشابهة
diffs
394kيتيح لوكيلك إنتاج فرق تعديلات حقيقي يمكن مشاركته، كرابط عرض أو ملف صورة، بدلاً من ملخص مكتوب يدوياً.
coding-agent
394kيساعد وكيلك على تسليم مهمة برمجة كبيرة إلى Codex أو Claude Code أو OpenCode كعامل في الخلفية، ثم متابعة تقدمها.
gh-issues
394kيساعد وكيلك على إيجاد مشكلات GitHub واختيار ما ستعمل عليه، وفتح طلبات سحب بالإصلاحات، ومتابعة تعليقات المراجعة.