Skip to content

/private-github-search

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.

From plugin
dx
10k9 skills

Claude Code

$ npx -y skills add ykdojo/claude-code-tips --skill private-github-search --agent claude-code

SKILL.md

private-github-search.SKILL.md
name: private-github-search
description: 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.

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.
Read more
@ykdojo
Ships withdx

Here are my tips for getting the most out of Claude Code, including a custom status line script and Claude Code running itself in a container. Also includes the dx plugin: skills for everyday dev workflows.

Stars on GitHub

Momentum

stars in total
10.3k
Star history of ykdojo/claude-code-tips on GitHub, a chart by star-history.com

Other skills on dx.

gha
Auto-invoked

gha

Analyze GitHub Actions failures and identify root causes

@ykdojo@ykdojoInstall Skill
half-clone
Auto-invoked

half-clone

Clone the later half of the current conversation, discarding earlier context to reduce token usage while preserving recent work.

@ykdojo@ykdojoInstall Skill
handoff
Auto-invoked

handoff

Write or update a handoff document so the next agent with fresh context can continue this work.

@ykdojo@ykdojoInstall Skill
hn-summarize
Auto-invoked

hn-summarize

Fetch and summarize Hacker News / hckrnews.com top stories, articles, and their comment threads. Use when asked to summarize HN…

@ykdojo@ykdojoInstall Skill
quarter-clone
Auto-invoked

quarter-clone

Clone the last quarter of the current conversation, discarding earlier context to reduce token usage while preserving recent work.

@ykdojo@ykdojoInstall Skill
reddit-fetch
Auto-invoked

reddit-fetch

Fetch content from Reddit via its JSON API using a browser session (DuckDuckGo-hop unlock). Use when accessing Reddit URLs,…

@ykdojo@ykdojoInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about private-github-search.

Which coding agents can use private-github-search?
private-github-search installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.