मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग10k · #11902

private-github-search

यह क्या करती है

यह स्किल आपकी GitHub रिपॉज़िटरी की स्थानीय कॉपी में खोज करती है, जिसमें निजी रिपॉज़िटरी भी शामिल हैं, ताकि पता चले कि कोड या टेक्स्ट कहाँ है। यह उन डेवलपरों के लिए है जिन्हें याद नहीं रहता कि कौन सी रिपॉज़िटरी में कुछ रखा है।

कब इस्तेमाल करें

  • ✓जब आपको याद न हो कि आपकी कौन सी रिपॉज़िटरी में कोई कोड है।
  • ✓जब आप सभी प्रोजेक्ट में कोई खास फ़ंक्शन या सेटिंग ढूँढना चाहते हैं।
  • ✓जब GitHub की अपनी खोज आपकी निजी रिपॉज़िटरी में नतीजे न दे।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/ykdojo/claude-code-tips/blob/main/skills/private-github-search/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरी सभी रिपॉज़िटरी में खोजिए कि Stripe webhook handler कहाँ रखा है।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह स्किल आपकी रिपॉज़िटरी की मुख्य ब्रांच की स्थानीय कॉपी रखती है, उसे ताज़ा करती है, और उस पर तेज़ टेक्स्ट खोज चलाती है। यह कॉपी एक बार सेट होती है, उन 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 खोज इस्तेमाल करें।

यह कौन से खाते खोजती है?

सिर्फ़ वे 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

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills