private-github-search — Claude Code skill: search and install
This skill searches public and private GitHub repositories through a local mirror. Use it when you need to locate code or files across several repositories.
npx skills add ykdojo/claude-code-tips --skill private-github-search -a claude-codeWhat private-github-search does
The skill keeps a local copy of selected GitHub repositories under ~/repo-mirror and runs text searches with rg. It refreshes the mirror before searching; a recent sync is reused, while --force requests a new one. Results can show matching files or the lines that contain the pattern.
For the first setup, put the GitHub accounts to mirror into ~/repo-mirror/owners.txt, one per line. The initial clone needs gh authentication with access to those accounts. The mirror contains the tip of each default branch for non-fork repositories, so history and other branches require a full clone. Treat the mirror as private data and keep it away from synced folders and published commits.
What it helps with
- locate a file across private GitHub repositories
- find which repository contains a code fragment
- search matching lines with
rg - refresh a local repository mirror before searching
Example prompts for the agent
- Find which of my repositories contains the
featureFlagsetting. - Refresh the GitHub mirror and list files containing
DATABASE_URL. - Search all my repositories for lines that mention
webhook.
How to install private-github-search
1Skills CLI (Vercel)
npx skills add ykdojo/claude-code-tips --skill private-github-search -a claude-code2Manually: put the files in place
~/.claude/skills/private-github-search/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/private-github-search/
1Skills CLI (Vercel)
npx skills add ykdojo/claude-code-tips --skill private-github-search -a codex2Manually: put the files in place
.agents/skills/private-github-search/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add ykdojo/claude-code-tips --skill private-github-search -a cursor2Manually: put the files in place
.cursor/skills/private-github-search/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install ykdojo/claude-code-tips private-github-search2Manually: put the files in place
.github/skills/private-github-search/SKILL.md1Skills CLI (Vercel)
npx skills add ykdojo/claude-code-tips --skill private-github-search -a gemini-cli2Platform CLI
gemini skills install https://github.com/ykdojo/claude-code-tips --path skills/private-github-searchManually: put the files in place
.devin/skills/private-github-search/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add ykdojo/claude-code-tips --skill private-github-search -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about private-github-search
How do I install private-github-search in Claude Code?
Run npx skills add ykdojo/claude-code-tips --skill private-github-search -a claude-code, then open ~/.claude/skills/private-github-search/SKILL.md.
What does private-github-search do?
It maintains a local mirror of GitHub repositories and searches that copy with rg, including private repositories.
What does the mirror include?
It mirrors the current default branch of non-fork repositories. Git history and other branches require a full clone or GitHub web search.