code-search-assistant
Installation
SKILL.md
Code Search Assistant
There are four kinds of code search. Picking the wrong one wastes time or misses results. The skill is matching the question to the tool.
Question → tool
| Question shape | Tool | Why |
|---|---|---|
"Where is FooBar defined?" |
Text grep (rg -w) |
Exact symbol — fast, precise |
"Where is FooBar used?" |
Text grep + filter, or LSP "find references" | Same symbol, many hits |
| "What calls this function, transitively?" | Call graph walk | Grep finds direct calls; you need the tree |
| "Where do we validate email addresses?" | Semantic / fuzzy search | Concept, not symbol — no single keyword |
| "Find all places that cast then dereference" | AST / structural query | Syntactic pattern, not a string |
| "What's the code path from HTTP to DB?" | Dataflow / taint trace | Cross-function, value-following |
Text search — do it right
Grep is fast but dumb. Make it less dumb: