- Home
- Skills
- Yoanbernabeu
- Grepai Skills
- Grepai Search Tips
grepai-search-tips_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-tips- SKILL.md6.8 KB
Overview
This skill provides concise tips and best practices for writing effective semantic search queries with GrepAI. It helps you shift from literal text matching to meaning-driven queries so you find the right code faster. Use these guidelines to improve precision, speed up discovery, and troubleshoot poor results.
How this skill works
The skill explains how GrepAI interprets natural-language queries and what kinds of phrasing produce high-quality semantic matches. It shows patterns for describing intent, choosing context, and iteratively refining queries. It also explains score ranges so you can interpret match confidence and decide when to refine a query or switch to text search.
When to use it
- When search results are too broad or irrelevant
- When you know desired behavior but not exact names
- When learning how to write effective semantic queries
- When troubleshooting low-quality or missing results
- When exploring domain-specific code across a repo
Best practices
- Describe intent, not implementation (e.g., 'fetch user by ID' vs 'getUserById')
- Use 3–7 descriptive English words focused on behavior and context
- Be specific about inputs/outputs or the scenario (e.g., 'validate email format')
- Iteratively refine: start broad, add context, then be precise
- Use domain vocabulary and synonyms to surface related implementations
Example use cases
- Find authentication logic: 'user authentication middleware' rather than 'auth'
- Locate error handling: 'catch and log API call errors'
- Discover data operations: 'save user to database' or 'transform data before storage'
- Track configuration: 'load configuration from environment' or 'database connection settings'
- Search security code: 'password hashing and verification' or 'input sanitization'
FAQ
Use grep for exact identifiers or exact text matches; use GrepAI when you know behavior or intent but not exact names.
My queries return low scores — what next?
Check indexing status, simplify or rephrase the query, add context or domain terms, or try synonyms to improve matches.