Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Before searching a codebase, forces you to zero in on the target - what exactly are you looking for, what would it look like, where would it live, what else might it be called. Use when exploring unfamiliar code, searching for specific functionality, or when previous searches returned too many results.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 17% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 8% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 292% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 28% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 482% | 0% |
The #1 search failure: jumping straight to grep without thinking. You search "auth", get 200 results, grep again with "login", still garbage. The problem isn't the search - it's that you didn't zero in first. This skill forces the targeting that should happen BEFORE you hit enter.
Answer these four questions:
State it in one sentence. Be specific.
BAD: "authentication stuff"
GOOD: "the function that validates JWT tokens on API requests"If you can't state it in one sentence, you don't know what you're looking for.
Describe what you expect to find:
.ts, .py, .go, config file?)Example: "Probably a middleware function in TypeScript, imports jsonwebtoken
or jose, has 'verify' or 'validate' in the name, 20-50 lines"Based on project conventions:
src/, lib/, middleware/, utils/?)Example: "Likely in src/middleware/ or src/auth/, file probably named
auth.ts, jwt.ts, or middleware.ts"Check the project structure first if unsure:
bashls -la src/ find . -type d -name "*auth*" -o -name "*jwt*"
List synonyms, abbreviations, variations:
Example for JWT validation:
- verify, validate, check, authenticate
- jwt, token, bearer, authorization
- middleware, handler, guard, interceptorYour first search term is rarely the one the codebase uses.
Now search, using insights from scoping:
bash# Start with WHERE + ALIASES grep -r "verify.*token" src/middleware/ grep -r "jwt" src/auth/ # If needed, broaden grep -r "token" src/ --include="*.ts"
Before declaring "found it":
markdown## Search Scope **Looking for:** [one sentence] **Would look like:** [description] **Likely location:** [directories/files] **Search terms:** [list of aliases] ## Search Results Found: [file:line] Verified: [Yes/No - why]
User: "Find where we handle rate limiting"
Scoping:
> Looking for: The middleware or function that tracks request counts and returns 429 when limit exceeded > > Would look like: Middleware function, probably uses Redis or in-memory store, has "rate" or "limit" or "throttle" in name, checks request count, returns 429 > > Likely location: src/middleware/, maybe src/api/, file named rateLimit.ts or throttle.ts > > Search terms: rate, limit, throttle, 429, tooMany, requests
Search:
bash# Check structure first ls src/middleware/ # Found: auth.ts, cors.ts, rateLimit.ts <-- bingo # Verify grep -n "429\|rate\|limit" src/middleware/rateLimit.ts
Result: src/middleware/rateLimit.ts:23 - rateLimiter middleware using Redis, returns 429 after 100 req/min.
Verified: Yes - matches expected shape (middleware, uses Redis, returns 429).
Grepping "auth" in a 50k line codebase. 200+ results. Refined to "login". Still 80 results. Spent 20 minutes reading wrong files. Finally found it in src/middleware/session.ts - wasn't called "auth" or "login" anywhere. Should have asked "where would session validation live?" first.
Other measured skills in the registry, with their headline benchmark lift.