private-github-search
하는 일
이 스킬은 비공개 저장소를 포함한 GitHub 저장소의 로컬 사본을 검색해 코드나 텍스트가 어디에 있는지 찾습니다. 어느 저장소에 무엇이 있는지 기억나지 않는 개발자를 위한 것입니다.
사용하는 경우
- ✓어떤 저장소에 있는 코드인지 기억나지 않을 때.
- ✓여러 프로젝트에서 특정 함수나 설정을 어디에 썼는지 찾고 싶을 때.
- ✓GitHub 자체 검색이 비공개 저장소에서 결과를 찾지 못할 때.
스킬 링크
https://github.com/ykdojo/claude-code-tips/blob/main/skills/private-github-search/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“모든 저장소에서 제가 Stripe 웹훅 핸들러를 어디에 두었는지 찾아 주세요.”
매주 새 스킬 5개. 읽는 데 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
- 라이선스
- —
- 업데이트
- 2026. 9. 25.
댓글
- …
이 저장소의 다른 스킬
gha
10k에이전트가 GitHub Actions 워크플로가 실패한 이유와 같은 작업이 계속 실패하는지 알아보도록 돕습니다.
half-clone
10k에이전트가 긴 채팅의 뒤쪽 절반을 새 세션으로 복사해, 최근 작업은 남기고 토큰 사용을 줄이도록 돕습니다.
handoff
10k에이전트가 새 채팅이 목표, 진행 상황, 다음 단계를 분명히 이어받을 수 있도록 인수인계 문서를 쓰도록 돕습니다.
hn-summarize
10k에이전트가 공식 Hacker News 데이터를 사용해 상위 뉴스 또는 한 기사와 그 댓글을 요약하도록 돕습니다.