Skillpedia
برمجة عامة6.2k · #14399

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) واطلب منه اتباع التعليمات.

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

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

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

استخدم هذه المهارة لمساعدتي: https://github.com/lightdash/lightdash/blob/main/packages/backend/src/ee/services/ai/skills/builtInSkills/reading-source-code/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

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

“ابحث عن كل مكان في مستودعاتنا يستخدم نوع 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

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

0

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

التعليقات

  • …

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

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