Search across all projects in /path/to/repos/ for:
$ARGUMENTS
Instructions
- Run
scripts/search.shwith the search pattern (and another-projectnal file glob) to search across all repos- Example:
scripts/search.sh "ZohoClient" "*.ts" - The script excludes
node_modules/,.git/,dist/,build/, lock files, and generated directories - Results are automatically grouped by project/repository
- Example:
- For each match, read enough context to understand how it’s used
Output Format
Search Results
For each project with matches:
[Project Name]
path/to/file.ts:42— brief description of how the pattern is used herepath/to/other.ts:17— brief description
Summary
- Total matches: N across M projects
- Most relevant implementation: point to the best/most complete example
- Patterns observed: note any differences in how projects implement this
Important
- Search broadly first, then narrow down to the most relevant results
- Include enough context to understand each match without reading the full file
- If searching for an API or integration, note which projects use it and how
- Limit results to the top 20 most relevant matches
- Skip matches in lock files, generated code, and vendor directories