New advertisers: 50% off your first month with code FIRSTMONTHSee slots
yoanbernabeu avatar

Grepai Search Tips

Practical guidance for writing semantic search queries that find code by intent rather than exact names.

skills.sh installs
813
GitHub stars
20
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers query writing principles, query patterns for behavior, purpose, errors, data, config, and security, and iterative refinement
  • Includes before-and-after rewrites that turn exact identifiers like getUserById into intent phrases like "fetch user record from database using ID"
  • Explains how to read similarity scores (0.85+ strong, below 0.60 weak) and what to try when results are missing, such as grepai status
  • Designed for developers who know what code does but not what it is called

Install

$ npx -y skills add yoanbernabeu/grepai-skills --skill grepai-search-tips -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

GrepAI Search Tips

This skill provides tips and best practices for writing effective semantic search queries.

When to Use This Skill

  • Improving search result quality
  • Learning semantic search techniques
  • Understanding how to phrase queries
  • Troubleshooting poor search results

Semantic Search Mindset

Think differently from text search:

Text Search (grep)Semantic Search (GrepAI)
Search for exact textSearch for meaning/intent
"getUserById""retrieve user from database by ID"
Literal matchConceptual match

Query Writing Principles

1. Describe Intent, Not Implementation

❌ Bad: getUserById ✅ Good: fetch user record from database using ID

❌ Bad: handleError ✅ Good: error handling and response to client

❌ Bad: validateInput ✅ Good: check if user input is valid and safe

2. Use Descriptive Language

❌ Bad: auth ✅ Good: user authentication and authorization

❌ Bad: db ✅ Good: database connection and queries

❌ Bad: config ✅ Good: application configuration loading

3. Be Specific About Context

Details

Repository
github.com/yoanbernabeu/grepai-skills
Category
Agent Workflow & Planning
First seen
May 16, 2026

More from yoanbernabeu/grepai-skills

All 27

Similar to Grepai Search Tips

More Agent Workflow & Planning