Skillpedia
برمجة عامة10k · #11902

private-github-search

ما الذي تفعله

تبحث هذه المهارة في نسخة محلية من مستودعات GitHub الخاصة بك، بما فيها الخاصة، لتجد أين توجد الشيفرة أو النص. وهي مناسبة للمطورين الذين لا يتذكرون أي مستودع يحوي شيئًا معينًا.

متى تستخدمها

  • ✓عندما لا تتذكر أي مستودعاتك يحتوي على جزء معين من الشيفرة.
  • ✓عندما تريد إيجاد المكان الذي كتبت فيه دالة أو إعدادًا معينًا عبر كل مشاريعك.
  • ✓عندما لا تجد بحث GitHub نفسه نتائج في مستودعاتك الخاصة.

رابط المهارة

https://github.com/ykdojo/claude-code-tips/blob/main/skills/private-github-search/SKILL.md

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

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

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

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

استخدم هذه المهارة لمساعدتي: https://github.com/ykdojo/claude-code-tips/blob/main/skills/private-github-search/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

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

“ابحث في كل مستودعاتي عن المكان الذي وضعت فيه معالج Stripe webhook.”

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

كيف تعمل

تحتفظ المهارة بنسخة محلية من الفرع الرئيسي لمستودعاتك، وتحدّثها، وتجري بحثًا نصيًا سريعًا عليها. وتُعد النسخة مرة واحدة من حسابات GitHub التي تختارها.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Private GitHub search

GitHub's modern code search (the one that indexes private repos) is web-only; gh search code uses the legacy engine and often returns nothing for private repos. Instead, search a local mirror of all the user's repos - it covers the same content as GitHub's index (default branch, non-fork) and a full search takes milliseconds.

Searching

Find the bundled sync script (works for plugin installs and manual symlinks):

find ~/.claude ~/.codex -name "private-github-search-sync.sh" 2>/dev/null | sort -V | tail -1

Always refresh first - it exits instantly if the mirror was synced within the last hour, and takes ~15s otherwise (--force syncs regardless of age):

bash <script-path>
rg -il 'pattern' ~/repo-mirror/repos          # which files
rg -in 'pattern' ~/repo-mirror/repos | head   # matching lines

First-time setup

If ~/repo-mirror/owners.txt doesn't exist: ask the user which GitHub accounts to mirror (don't guess - they may manage several), write them one per line to ~/repo-mirror/owners.txt, then run the sync script in the background (initial clone takes a few minutes; needs gh auth with access to those accounts).

Caveats

  • Only the default-branch tip is mirrored - for history or other branches, use git log -S in a full clone or GitHub web search.
  • The mirror may contain private data: keep it out of synced folders and never commit or publish its contents.
الأسئلة الشائعة

هل تبحث في الفروع الأقدم؟

لا. تغطي الفرع الرئيسي لكل مستودع فقط، فاستعمل git log أو بحث GitHub للفروع الأخرى.

أي حسابات تبحث فيها؟

فقط الحسابات التي تسردها عند الإعداد، لذلك تسألك المهارة أي حسابات تنسخ.

هل النسخة المحلية آمنة للمشاركة؟

قد تحتوي النسخة على بيانات خاصة، فأبقِها خارج المجلدات المتزامنة.

التفاصيل

الوصف الأصلي من المؤلف

Full-text search across all of the user's GitHub repos (including private ones) using a local mirror and ripgrep. Use for "where did I put X", "which repo has X", or any search spanning the user's repos - gh search code / the REST API cannot reliably search private repos.

repo: ykdojo/claude-code-tips

الشعبية

نجوم GitHub
10k
الترتيب
#11902
الترخيص
—
آخر تحديث
25‏/9‏/2026

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

0

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

التعليقات

  • …

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

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