ワンクリックで
grepai
// 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.
// 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.
| name | grepai |
| description | 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. |
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:
# 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:
# 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:
grepai 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:
grepai 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