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 पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
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 -Sin 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
कमेंट
- …
इस repository की और skills
gha
10kGitHub Actions वर्कफ़्लो क्यों विफल हुआ, यह पता लगाती है, और यह भी कि वही जॉब बार-बार विफल हो रहा है या नहीं।
half-clone
10kआपके एजेंट को लंबी चैट का बाद वाला आधा हिस्सा नए सेशन में कॉपी करने में मदद करती है, ताकि कम टोकन लगें और हाल का काम बचा रहे।
handoff
10kआपके एजेंट को HANDOFF.md दस्तावेज़ लिखने में मदद करती है, ताकि नई चैट लक्ष्य, प्रगति और अगले कदमों के साथ प्रोजेक्ट को आगे बढ़ा सके।
hn-summarize
10kआपके एजेंट को Hacker News की टॉप स्टोरी, या किसी एक स्टोरी और उसकी टिप्पणियों का सार बनाने में मदद करती है, आधिकारिक डेटा से।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।