Github search
Find real-world code examples from over a million public GitHub repositories using grep.app MCP. Use when you need to see how developers implement APIs, handle errors, or use unfamiliar libraries.From its SKILL.md
npx -y skills add Bobtron/piAgentSkills --skill github-searchAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.8 KB, 373 tokens by cl100k_base, as published. Nobody here has run it
GitHub Code Search
Search for literal code patterns across public GitHub repositories using grep.app. Unlike standard web search, this tool searches for literal code (like grep), not keywords or natural language questions.
Usage
./search.js "<code_pattern>" [options]
Options
-n, --limit <number>- Limit the number of results returned (default: 10)--lang <languages>- Filter by language (comma-separated, e.g., "TypeScript,JavaScript")--repo <pattern>- Filter by repository name pattern (e.g. "vercel/")--path <pattern>- Filter by file path pattern (e.g. "src/components/")--regex- Treat query as a regular expression (use(?s)to match across multiple lines)--case-sensitive- Case-sensitive search--whole-words- Search whole words only
Examples
# Basic searches
./search.js "useState(" --lang "TypeScript,TSX"
./search.js "getServerSession" --repo "nextauthjs/"
# Regex searches (multiline with (?s))
./search.js "(?s)useEffect\(\(\) => {.*removeEventListener" --regex --lang TSX
./search.js "class.*Controller" --regex --lang Java
# Case-sensitive search
./search.js "CORS(" --case-sensitive --lang Python
When to Use
- When implementing unfamiliar APIs or libraries and need to see real usage patterns
- When unsure about correct syntax, parameters, or configuration for a specific library
- When looking for production-ready examples and best practices for implementation
- When needing to understand how different libraries or frameworks work together
What ships with it: 1 file
4.2 KB alongside SKILL.md, 1 of them executable
- search.jsruns4.2 KB