/repo-finder:repo-finderfrom repo-finder
Find a repository's local checkouts and worktrees, or its exact GitHub owner and repository name within configured organizations. For local matches, report branch, uncommitted changes, and build tools. Use when a repo is named and its location is not established, or the user asks "where is this repo", "what repos do I have", "which org owns X", or "is this a worktree". Not for searching files inside a located repo, cloning it, or changing repository state.
Ships in repo-finder. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
One command that replaces filesystem hunting: resolve a repo name to every
local copy (with orientation facts) or, failing that, to its exact remote
owner/name — so agents never ls/find their way through a code directory.
The CLI ships inside this skill's own directory, so every install method (plugin, dev symlink, direct copy — Claude Code or Codex) delivers it. Resolve it in this order and reuse the result for the whole session:
RF="$(command -v repo-finder || true)" # 1. explicit PATH install, if any
[ -x "$RF" ] || RF="<skill-base>/scripts/repo-finder" # 2. base dir announced when this skill loaded
if [ ! -x "$RF" ]; then # 3. well-known placements
for d in "$HOME/.claude/skills/repo-finder" "$HOME/.agents/skills/repo-finder"; do
[ -x "$d/scripts/repo-finder" ] && RF="$d/scripts/repo-finder" && break
done
fi
"$RF" find <query>
No uv on the machine? python3 "$RF" ... works identically — the script is
stdlib-only (Python ≥3.11). Quote the path; never guess other locations.
"$RF" find <query> # resolve a name (substring ok)
"$RF" list # every repo, one line each
"$RF" orgs # configured GitHub orgs (no network)
"$RF" org <name> # one org's repos (paged REST)
"$RF" init # write a starter user config
Add --json for machine output. Full interface: docs/cli-interface.md in
the plugin.
Searching a repo's name returns its worktrees too, even when their directories
are named for a topic or branch rather than the repo (~/wt/<repo>/<topic>) —
so one search shows every local copy.
Matches are ordered deterministically — canonical checkouts first (config-root
order), then worktrees (each labeled worktree -> <main repo>), then
nested/vendored copies. Recency, branch, and dirty state are displayed, not
ranked on: when several copies exist, YOU decide which one the user means
from those facts (a dirty worktree on a feature branch vs. a clean stale copy
tells its own story). Don't re-verify with git remote -v or gh repo view
— the facts shown are read live from each repo.
0 — matches printed (local or remote).3 — definitively not found: local roots AND (unless skipped) the
configured GitHub orgs were all actually searched. Expected negative:
don't treat as a tool failure.1 on find — degraded search: the local scan missed AND the GitHub
lookup failed for the orgs named on stderr, so the result is LOCAL-ONLY
and may be incomplete. Do not conclude the repo doesn't exist; fix the
gh problem or retry before deciding.4 — remote tier needed but gh is unauthenticated; either run with
--no-remote or ask the user to gh auth login.A 3 means the configured roots were scanned to their depth (3 by default,
which reaches group subdirectories and nested copies) and nothing matched —
it does not mean the repo is absent from the machine, only from the
configured roots. Do not
fall back to find ~ -type d or home-wide globs — instead ask the user where
the repo lives and offer to add that root to their config
(repo-finder_config.toml, created by init), or pass --root <path> for a
one-off extra root.
If no config exists, defaults scan ~/c (or ~) to depth 3. Run init and
have the user fill roots and orgs once — that's what makes every later lookup
one cheap call.
docs/cli-interface.md (plugin) — full flag/exit-code contract.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub smorinlabs/smorinlabs-skills --plugin repo-finder