The problem
Every GitHub repo was built by someone to solve a real problem. When I start a new project, I usually don't know if someone has already solved part of it. Normal GitHub search works on keywords and stars, so many useful repos never show up. I wanted a search that works on purpose: "does this repo actually help my goal?"
The idea
A Claude Code skill: /github-search <my goal>.
It reads thousands of repos, judges each one by what it does (not by its name or stars), and gives me a short list explaining why each repo fits and how I could use it. Then we discuss, and I decide what to adopt.
Tech stack
- Claude Code: the skill itself, the reasoning, and the final judgment
- Gemini (Flash) via Antigravity CLI (agy): cheap, fast bulk reading (summaries and first-pass tagging)
- GitHub CLI (gh) + GitHub GraphQL API: pulls repo metadata and READMEs, 50 repos per request
- NetNewsWire: RSS reader on macOS. I follow a feed that posts curated GitHub repos. Its local SQLite database is read directly (read-only).
- sqlite3, jq, awk, sed, ripgrep, bash: all the fast data work, done by plain Mac commands
- cmux (terminal built on Ghostty): opens a workspace with 4 panes so 4 Gemini workers run in parallel
---
v1: Search a GitHub user's repos
GitHub user/org URL
|
v
[gh + GraphQL] fetch all repos + READMEs (50 per request)
|
v
[awk/sed] clean READMEs: drop badges, images, tables, install,
license, author sections; keep max 40 lines
|
v
batches of 25 repos
|
v
[cmux workspace, 4 panes] Gemini Flash summarizes each repo's purpose
| in 1-2 lines (parallel, resumable)
v
summaries file (one line per repo)
|
v
[Claude] reads every summary, matches against my goal
|
v
report: relevant / maybe, with why + how to use
v1 run: 3,001 forked repos, 16 minutes, ~13% of the Gemini 5-hour quota.
Problem I found: Claude still had to read all 3,001 summaries (~180k tokens), and some picks were influenced by repo names.
---
v2: Hybrid, blind, and a smarter source
Three changes:
1. Blind judging. Gemini and Claude only see id | purpose, never the repo name. Names are added back only for the final report.
2. Two-stage hybrid. Gemini does a cheap first pass and tags each repo high / medium / low against the goal. Claude then reads only the tagged repos.
3. NetNewsWire as the default source. The RSS feed already holds a one-line purpose for every repo, so there is no fetching and no summary step.
Source A (default): NetNewsWire DB Source B: GitHub user URL
(local SQLite, read-only) (v1 fetch + summaries)
\ /
v v
blind list: id | purpose (+ separate id -> repo map)
|
v
[cmux, 4 panes] Gemini Flash blind tag vs goal: high / medium / low
|
v
review list (high first, low included)
|
v
[Claude] blind judgment: relevant / maybe / no
|
v
names added back -> report grouped by need
What testing showed (on the same 3,001 repos, compared against a known answer set):
┌──────────────────────────────┬───────┬──────────────────┐
│ Approach │ Found │ Claude tokens │
├──────────────────────────────┼───────┼──────────────────┤
│ Claude reads everything (v1) │ ~87% │ ~180k │
├──────────────────────────────┼───────┼──────────────────┤
│ Hybrid blind (v2) │ ~97% │ ~18k (~90% less) │
└──────────────────────────────┴───────┴──────────────────┘
- A bigger Gemini model (Flash-High) was 4-5x slower for almost no gain.
- Claude must read the "low" tags too. Skipping them dropped recall to 85%, because one of the best picks was tagged low.
v2 run on the RSS feed: 21,250 unique repos. Extraction took 0.5 seconds, tagging took 5.5 minutes, and it used ~4% of the Gemini quota. Result: 72 relevant + 148 maybe.
---
Design principles
- Judge by purpose, never by name or stars
- A cheap model reads in bulk, and Claude does the judgment on a small set
- Plain Mac commands do the data work (fast, free, predictable)
- Parallel workers in terminal panes. Batches are resumable, so a failed batch only reruns itself.
- Read-only: nothing is starred, forked or changed on GitHub
- Accuracy over speed. When in doubt, keep the repo as "maybe".
- Discussion first: the skill suggests, I decide what to adopt
V3 is in progress to make this better improvement