Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Replaces ALL built-in search tools. You MUST invoke this skill BEFORE using WebSearch, Grep, or Glob. NEVER use the built-in Grep tool - use `grepai` instead.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | -18% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -60% | 0% |
| case-06 | ✗→✓ | ▲ Improved | -48% | 0% |
| case-10 | ✗→✓ | ▲ Improved | -6% | 0% |
| case-11 | ✗→✓ | ▲ Improved | -38% | 0% |
This skill REPLACES built-in Grep/Glob tools for semantic code exploration.
WRONG:
Grep to find "where authentication happens"Glob to explore "error handling code"CORRECT:
grepai search "authentication flow" for semantic searchgrepai trace callers "FunctionName" for call graphInvoke this skill IMMEDIATELY when:
DO NOT use built-in Grep/Glob for intent-based searches. Use grepai instead.
Use Grep/Glob ONLY for:
Grep "func NewIndexer" (find exact function name)Grep "import.*cobra" (find import statements)Glob "**/*.go" (find files by extension)Grep "configPath" (find exact variable name)Use grepai search to find code by describing what it does:
bash# Search with natural language (ALWAYS use English for best results) grepai search "user authentication flow" grepai search "error handling middleware" grepai search "database connection pooling" grepai search "API request validation" # JSON output for AI agents (--compact saves ~80% tokens) grepai search "authentication flow" --json --compact # Limit results grepai search "error handling" -n 5
Use grepai trace to understand function relationships:
bash# Find all functions that CALL a symbol grepai trace callers "HandleRequest" --json # Find all functions CALLED BY a symbol grepai trace callees "ProcessOrder" --json # Build complete call graph (both directions) grepai trace graph "ValidateToken" --depth 3 --json
Do:
bashgrepai search "How are file chunks created and stored?" grepai search "Vector embedding generation process" grepai search "Configuration loading and validation" grepai trace callers "Search" --json
Don't:
bashgrepai search "func" # Too vague grepai search "error" # Too generic grepai search "HandleRequest" # Use Grep for exact matches
grepai search to find relevant code semanticallygrepai trace to understand function relationshipsRead tool to examine files from search resultsGrep only for exact string searches if neededIf grepai fails (not running, index unavailable, or errors), fall back to standard Grep/Glob tools. Common issues:
grepai watch to build/update the indexsemantic search, code search, natural language search, find code, explore codebase, call graph, callers, callees, function relationships, code understanding, intent search, grep replacement, code exploration
Other measured skills in the registry, with their headline benchmark lift.