grepai
grepai — semantic code search
grepai searches code by meaning, not text. Unlike grep which matches exact strings, grepai understands intent — searching "validate user credentials" finds login, auth, and signin code even if none contain those exact words.
When to use grepai vs grep
| Use grep | Use grepai |
|---|---|
Know the exact name: ProcessOrder |
Don't know the name: "order processing logic" |
| Finding all usages of a symbol | Finding code that does X conceptually |
| Tracing callers/references | Exploring an unfamiliar area of the codebase |
| Single specific keyword like "Lock" | Broad question like "how are payments handled" |
If your query is a single specific keyword or class name, use grep — grepai adds overhead for simple lookups.
Search command
Always use this exact format:
grepai search "<natural language query>" --toon --compact --limit=15
The --toon --compact flags return a minimal, token-efficient list of file pointers — file path, line range, relevance score. No code content included. This keeps results under ~1K tokens regardless of result count.
After getting results, read the top 3-5 relevant files in parallel using your file reading tool. Don't read them one by one — batch them.
Optional flag:
| Flag | Purpose |
|---|---|
--path <prefix> |
Filter to a directory, e.g. --path src/auth |
Workflow
- Search —
grepai search "..." --toon --compact --limit=15→ ranked file list - Filter — pick the 3-5 most relevant results (score 0.60+), ignore low-score noise
- Read in parallel — read all selected files at once with your file reading tool
- Follow up — if needed, use grep for precise tasks: tracing callers, finding all usages of a discovered symbol
Query tips
- Describe what the code does, not what it's called: "process payment refund" not "refund"
- Use 3-7 words: "sync user data from external API"
- Be specific: "JWT token validation middleware" not "auth"
Score interpretation
| Score | Meaning |
|---|---|
| 0.60+ | Relevant |
| 0.50–0.59 | Loosely related |
| < 0.50 | Likely noise |
More from dzmitry-vasileuski/skills
laravel-docs
Search official Laravel ecosystem documentation using semantic vector search — delegated to a sub-agent that returns a compact synthesis so the main context stays lean. Use this skill whenever writing or modifying Laravel application code — search the docs first to discover the current API before writing any implementation. The agent's training data has a knowledge cutoff; newer Laravel versions regularly add cleaner methods that replace familiar patterns. Always search before writing code for any Laravel feature — caching, string helpers, collections, concurrency, request handling, Eloquent, routing, queues, events, mail, and more. Also use this skill when the user references a Laravel version you don't have training data for, when you're unsure whether an API still exists or has changed, or when you want to verify your knowledge is current — the docs API always has the latest information.
9excalidraw
Generate .excalidraw diagram files — flowcharts, architecture diagrams, ER diagrams, sequence diagrams, mind maps, and any other visual diagram. Use this skill whenever the user asks for a diagram, visual, flowchart, architecture diagram, system design, ER diagram, sequence diagram, mind map, or any kind of schematic. Also trigger when the user mentions .excalidraw files, Excalidraw, or asks to visualize relationships, flows, processes, or structures. Even if the user just says 'draw this' or 'make a diagram of' — use this skill.
1