본문으로 건너뛰기
Skillpedia
일반 코딩10k · #11902

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/ykdojo/claude-code-tips/blob/main/skills/private-github-search/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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 -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
라이선스
—
업데이트
2026. 9. 25.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬