grepai-search-tips
БесплатноБез исполняемых скриптовНе проверенTips and best practices for effective GrepAI searches. Use this skill to improve search result quality.
от yoanbernabeu★ 20 звёзд на GitHubОб этом скилле
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 text | Search for meaning/intent |
| "getUserById" | "retrieve user from database by ID" |
| Literal match | Conceptual 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
❌ Bad: validation
✅ Good: validate email address format
❌ Bad: parse
✅ Good: parse JSON request body
❌ Bad: send
✅ Good: send email notification to user
4. Use 3-7 Words
| Length | Example | Quality |
|---|---|---|
| Too short | "auth" | ⚠️ Vague |
| Good | "user authentication middleware" | ✅ Specific |
| Too long | "the code that handles user authentication and validates JWT tokens in the middleware layer" | ⚠️ Verbose |
5. Use English
Embedding models are trained primarily on English:
❌ authentification utilisateur (French)
✅ user authentication
Even if your code comments are in another language, English queries work best.
Query Patterns
Finding Code by Behavior
grepai search "validate user credentials before login"
grepai search "send notification when order is placed"
grepai search "calculate total price with discounts"
grepai search "retry failed HTTP requests"
Finding Code by Purpose
grepai search "middleware that checks authentication"
grepai search "function that formats dates"
grepai search "service that sends emails"
grepai search "handler for payment processing"
Finding Error Handling
grepai search "handle errors from API calls"
grepai search "catch and log exceptions"
grepai search "error response to client"
grepai search "validation error messages"
Finding Data Operations
grepai search "save user to database"
grepai search "query products by category"
grepai search "cache frequently accessed data"
grepai search "transform data before storage"
Finding Configuration
grepai search "load configuration from environment"
grepai search "database connection settings"
grepai search "API keys and secrets management"
grepai search "feature flags and toggles"
Finding Security Code
grepai search "password hashing and verification"
grepai search "input sanitization to prevent injection"
grepai search "rate limiting for API endpoints"
grepai search "CORS configuration"
Iterative Refinement
If results aren't good, iterate:
Start Broad
grepai search "authentication"
# Results too varied
Add Context
grepai search "JWT authentication"
# Better, but still broad
Be Specific
grepai search "JWT token validation middleware"
# Precise results
Using Synonyms
Semantic search understands synonyms. Try different phrasings:
# These may return similar results:
grepai search "user authentication"
grepai search "user login verification"
grepai search "credential validation"
grepai search "identity verification"
Domain-Specific Terms
Use your domain vocabulary:
# E-commerce
grepai search "shopping cart checkout process"
grepai search "inventory stock management"
# Finance
grepai search "transaction processing"
grepai search "payment reconciliation"
# Healthcare
grepai search "patient record retrieval"
grepai search "appointment scheduling"
Question-Style Queries
Natural questions work well:
grepai search "how are users authenticated"
grepai search "where is the database connection configured"
grepai search "what happens when a request fails"
grepai search "how are errors logged"
Avoiding Common Mistakes
❌ Don't Use Exact Function Names
If you know the exact name, use grep:
grep -r "getUserById" . # Text search
GrepAI is for when you don't know the exact name:
grepai search "retrieve user from database" # Semantic search
❌ Don't Be Too Abstract
# Too abstract
grepai search "business logic"
# More concrete
grepai search "calculate order total with tax"
❌ Don't Use Code Syntax
# Don't do this
grepai searc
Установить grepai-search-tips в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл grepai-search-tips?
Tips and best practices for effective GrepAI searches. Use this skill to improve search result quality.
Как установить скилл grepai-search-tips?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл grepai-search-tips запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
от GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
от GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
от GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
от GitHub