Semantic code search by meaning rather than exact text strings.
Works with
Searches code by intent and concept similarity using embeddings, returning ranked results with relevance scores (0.0–1.0)
Requires GrepAI initialization, an active index created via grepai watch , and a running embedding provider like Ollama
Supports natural language queries describing behavior or intent; 3–7 word phrases work best, with results limited via --limit flag
Interprets scores: 0.90+ excellent match, 0.80–0
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versiongrepai-search-basicsExecute the skills CLI command in your project's root directory to begin installation:
Fetches grepai-search-basics from yoanbernabeu/grepai-skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate grepai-search-basics. Access via /grepai-search-basics in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
0
total installs
0
this week
16
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
16
stars
This skill covers the fundamentals of semantic code search with GrepAI.
grepai init)grepai watch)Unlike traditional text search (grep, ripgrep), GrepAI searches by meaning:
| Type | How it Works | Example |
|---|---|---|
| Text search | Exact string match | "login" → finds "login" |
| Semantic search | Meaning similarity | "authenticate user" → finds login, auth, signin code |
grepai search "your query here"
grepai search "user authentication flow"
Output:
Score: 0.89 | src/auth/middleware.go:15-45
──────────────────────────────────────────
func AuthMiddleware() gin.HandlerFunc {
return func(c *gin.Context) {
token := c.GetHeader("Authorization")
if token == "" {
c.AbortWithStatus(401)
return
}
claims, err := ValidateToken(token)
if err != nil {
c.AbortWithStatus(401)
return
}
c.Set("user", claims.UserID)
c.Next()
}
}
Score: 0.82 | src/auth/jwt.go:23-55
──────────────────────────────────────────
func ValidateToken(tokenString string) (*Claims, error) {
token, err := jwt.Parse(tokenString, func(t *jwt.Token) (interface{}, error) {
return []byte(secretKey), nil
})
if err != nil {
return nil, err
}
if claims, ok := token.Claims.(*Claims); ok && token.Valid {
return claims, nil
}
return nil, errors.New("invalid token")
}
Score: 0.76 | src/handlers/login.go:10-35
──────────────────────────────────────────
func HandleLogin(c *gin.Context) {
var req LoginRequest
if err := c.ShouldBindJSON(&req); err != nil {
c.JSON(400, gin.H{"error": "invalid request"})
return
}
user, err := userService.Authenticate(req.Email, req.Password)
// ...
}
Score: 0.89 | src/auth/middleware.go:15-45
──────────────────────────────────────────
[code content]
| Component | Meaning |
|---|---|
| Score | Similarity (0.0 to 1.0, higher = more relevant) |
| File path | Location of the code |
| Line numbers | Start-end lines of the chunk |
| Content | The actual code |
| Score | Meaning |
|---|---|
| 0.90+ | Excellent match |
| 0.80-0.89 | Good match |
| 0.70-0.79 | Related |
| 0.60-0.69 | Loosely related |
| <0.60 | Weak match |
By default, GrepAI returns 10 results. Adjust with --limit:
# Get only top 3 results
grepai search "database queries" --limit 3
# Get more results
grepai search "error handling" --limit 20
Before searching, verify your index:
grepai status
Output:
✅ GrepAI Status
Index:
- Files: 245
- Chunks: 1,234
- Last updated: 2 minutes ago
Ready for search.
grep -r "authenticate" .
grepai search "authenticate user credentials"
Describe the intent or behavior:
grepai search "validate user credentials"
grepai search "handle HTTP request errors"
grepai search "connect to the database"
grepai search "send email notification"
grepai search "parse JSON configuration"
Too short or generic:
grepai search "auth" # Too vague
grepai search "function" # Too generic
grepai search "getUserById" # Exact name (use grep)
GrepAI understands natural language:
# Ask questions
grepai search "how are users authenticated"
grepai search "where is the database connection configured"
# Describe behavior
grepai search "code that sends emails to users"
grepai search "functions that validate input data"
Both work, but phrases often get better results:
# Multiple words (OR-like behavior)
grepai search "login password validation"
# Phrase (describes specific intent)
grepai search "validate user login credentials"
grepai search "main entry point"
grepai search "application startup"
grepai search "HTTP server initialization"
grepai search "error handling and logging"
grepai search "exception handling"
grepai search "error response to client"
grepai search "database query execution"
grepai search "fetch user from database"
grepai search "save data to storage"
grepai search "calculate order total"
grepai search "process payment transaction"
grepai search "validate business rules"
❌ Problem: No results ✅ Solutions:
grepai statusgrepai watch if index is empty❌ Problem: Irrelevant results ✅ Solutions:
❌ Problem: Missing expected code ✅ Solutions:
rm .grepai/index.gob && grepai watchSuccessful basic search:
Query: "user authentication flow"
Results: 5 matches
Score: 0.89 | src/auth/middleware.go:15-45
──────────────────────────────────────────
[relevant code...]
Score: 0.82 | src/auth/jwt.go:23-55
──────────────────────────────────────────
[relevant code...]
[additional results...]
Tip: Use --limit to adjust number of results
Use --json for machine-readable output
Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
kostja94/marketing-skills
aaaaqwq/claude-code-skills
agentbay-ai/agentbay-skills
glebis/claude-skills
shopmeskills/mcp
wuchubuzai2018/expert-skills-hub
Registry listing for grepai-search-basics matched our evaluation — installs cleanly and behaves as described in the markdown.
grepai-search-basics reduced setup friction for our internal harness; good balance of opinion and flexibility.
Useful defaults in grepai-search-basics — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
I recommend grepai-search-basics for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Useful defaults in grepai-search-basics — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
I recommend grepai-search-basics for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
grepai-search-basics has been reliable in day-to-day use. Documentation quality is above average for community skills.
Registry listing for grepai-search-basics matched our evaluation — installs cleanly and behaves as described in the markdown.
grepai-search-basics reduced setup friction for our internal harness; good balance of opinion and flexibility.
Solid pick for teams standardizing on skills: grepai-search-basics is focused, and the summary matches what you get after install.
showing 1-10 of 28