codebase-search
البحث في قواعد الكود مثل المحترفين
إيجاد الكود في المشاريع الكبيرة صعب. توفر هذه المهارة استراتيجيات وأنماط بحث مثبتة لتحديد موقع الدوال بسرعة، وتتبع التبعيات، وفهم الكود غير المألوف.
Descargar el ZIP de la skill
Subir en Claude
Ve a Configuración → Capacidades → Skills → Subir skill
Activa y empieza a usar
Pruébalo
Usando "codebase-search". Find where user authentication is implemented
Resultado esperado:
I found the authentication flow in this codebase:
1. Entry point: routes/auth.py (POST /login, POST /register)
2. Controller: controllers/auth.py - AuthController handles requests
3. Service: services/auth_service.py - contains verify_credentials() and create_token()
4. Model: models/user.py - User model with password_hash field
The flow is: request → route → controller → service → model
See auth_service.py:45 for the main verification logic.
Usando "codebase-search". Find all usages of process_payment function
Resultado esperado:
Found 8 call sites for process_payment():
1. controllers/checkout.py:89 - checkout_complete()
2. services/subscription.py:156 - renew_subscription()
3. services/order.py:234 - finalize_order()
4. api/webhooks.py:67 - handle_payment_webhook()
5. tests/test_payment.py:12,45,78 - test cases
All calls pass through the payment gateway at services/payment_gateway.py
Auditoría de seguridad
SeguroAll 62 static findings are false positives. The skill contains only documentation with example bash/grep commands in markdown code blocks (mistaken for shell execution), reference URLs (not network calls), and example search terms (not actual secrets). This is a safe documentation skill.
Patrones detectados
Puntuación de calidad
Lo que puedes crear
إصلاح خطأ
تتبع رسالة الخطأ إلى مصدرها، والعثور على جميع المواقع التي يتم فيها استدعاء دالة ما، وفهم تدفق البيانات الذي يسبب المشكلة.
تعلم قاعدة كود جديدة
اكتشاف نقطة الإدخال والمسارات الرئيسية ونماذج البيانات وتكوين مشروع غير مألوف لفهة هيكله.
الاستعداد لإعادة الهيكلة
العثور على جميع استخدامات دالة ما، وتحديد تبعياتها، وتحديد موقع الاختبارات ذات الصلة، وتقييم نطاق التغييرات المطلوبة.
Prueba estos prompts
Find where [function/class name] is defined in this codebase. Use semantic search first, then grep to verify the exact location.
I need to find where this error originates: [error message]. Search for where this error is thrown and trace back to understand what triggers it.
Show me all the places where [function_name] is called. Then read each call site to understand how it's used in different contexts.
Help me understand how [feature] works end-to-end. Find the entry point, trace through controllers/services, and identify the data flow.
Mejores prácticas
- ابدأ بالبحث الدلالي للأسئلة المفاهيمية، ثم صقل باستخدام grep للتطابقات الدقيقة
- استخدم استهداف المجلدات لتضييق نطاق البحث وتجنب النتائج المفرطة
- اجمع بين استراتيجيات البحث المتعددة: ابحث عن التعريف، ثم ابحث عن جميع الاستخدامات، ثم اقرأ السياق
Evitar
- البحث عن كل شيء دفعة واحدة بدلاً من التكرار مع استعلامات أكثر تحديداً
- افتراض أن نتائج grep كاملة دون قراءة السياق المحيط
- تخطي الاختبارات عند فهم الوظائف - غالباً ما تظهر الاختبارات أمثلة الاستخدام الأفضل
Preguntas frecuentes
ما الفرق بين البحث الدلالي و grep؟
كيف أجد جميع استدعاءات دالة ما؟
هل يمكن لهذه المهارة تعديل الكود؟
كيف أبحث في مجلد محدد؟
ماذا لو كانت نتائج بحثي كثيرة جداً؟
كيف أفهم قاعدة كود جديدة بسرعة؟
Detalles del desarrollador
Autor
supercent-ioLicencia
MIT
Repositorio
https://github.com/supercent-io/skills-template/tree/main/.agent-skills/codebase-search/Ref.
main
Estructura de archivos
📄 SKILL.md