- Home
- Skills
- Yoanbernabeu
- Grepai Skills
- Grepai Search Basics
grepai-search-basics_skill
1
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill yoanbernabeu/grepai-skills --skill grepai-search-basics- SKILL.md7.0 KB
Overview
This skill teaches the fundamentals of semantic code search using GrepAI. It explains how semantic search differs from traditional text grep, how to run basic queries, interpret scores, and troubleshoot common issues. You'll learn practical commands and query patterns to find relevant code quickly.
How this skill works
GrepAI indexes code into semantic embeddings and returns ranked matches by meaning rather than exact text. You run searches with natural language queries (grepai search "your query"), and results show a similarity score, file path, line range, and code snippet. Adjust limits, check index status, and re-index when files are missing.
When to use it
- When you want to find code by intent or behavior rather than exact names
- While learning how semantic search differs from traditional grep
- To locate entry points, error handling, data access, or business logic
- When triaging code you don’t know the exact function names for
- Before debugging or refactoring to discover related code across the repo
Best practices
- Write queries describing intent or behavior (e.g., "validate user credentials")
- Use 3–7 words to give enough context without being verbose
- Prefer phrases that describe what the code does instead of exact names
- Iterate queries if results are irrelevant and try synonyms
- Check index status (grepai status) and re-run grepai watch if needed
Example use cases
- Search for authentication flows: grepai search "user authentication flow"
- Find database access points: grepai search "fetch user from database"
- Locate error handling patterns: grepai search "error handling and logging"
- Discover startup code: grepai search "application startup"
- Filter top results: grepai search "send email notification" --limit 3
FAQ
Score is a similarity metric from 0.0 to 1.0 where higher means more relevant; interpret ranges (0.90+ excellent, 0.80–0.89 good, 0.70–0.79 related).
No results returned—what should I check?
Run grepai status to verify the index, run grepai watch to create or update the index, simplify your query, and ensure file types aren’t ignored.