Grep app
Code search across millions of public GitHub repositories via grep.app. Use before writing or planning code to find real-world usage of libraries, frameworks, APIs, algorithms, or syntax patterns. Prefer this over web search for code examples.From its SKILL.md
npx -y skills add archibate/agent-skills --skill grep-appAssembled 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
2.5 KB, 598 tokens by cl100k_base, as published. Nobody here has run it
grep.app
Search real-world code examples from over a million public GitHub repositories. Powered by grep.app MCP. No API key required.
searchGitHub
Find real-world code examples by searching for literal code patterns (like grep), not keywords.
query(required): literal code pattern (e.g.useState(,import React from,async function)language: array of language filters (e.g.Python,TypeScript,TSX,Java,Go,Rust,C#,YAML,Markdown)repo: filter by repository (e.g.facebook/react,vercel/) — partial names matchpath: filter by file path (e.g.src/components/Button.tsx,/route.ts) — partial paths matchuseRegexp: interpret query as regex (default:false). Prefix with(?s)for multilinematchCase: case-sensitive search (default:false)matchWholeWords: match whole words only (default:false)
Basic usage
uv run --script scripts/mcpcall.py searchGitHub query:"useState("
uv run --script scripts/mcpcall.py searchGitHub query:"getServerSession" --args '{"language": ["TypeScript", "TSX"]}'
uv run --script scripts/mcpcall.py searchGitHub query:"CORS(" matchCase:true --args '{"language": ["Python"]}'
Filter by repo or path
uv run --script scripts/mcpcall.py searchGitHub query:"createContext" repo:"facebook/react"
uv run --script scripts/mcpcall.py searchGitHub query:"export default" path:"/route.ts" --args '{"language": ["TypeScript"]}'
Regex patterns
uv run --script scripts/mcpcall.py searchGitHub query:"(?s)useEffect\\(\\(\\) => \\{.*removeEventListener" useRegexp:true
uv run --script scripts/mcpcall.py searchGitHub query:"(?s)try \\{.*await" useRegexp:true --args '{"language": ["TypeScript"]}'
Tips
- Search for actual code that appears in files, not keywords or questions
- Good:
useState(,import React from,async function - Bad:
react tutorial,best practices,how to use
- Good:
- Use
(?s)prefix in regex to match across multiple lines - Filter by
languageto narrow results to relevant file types - Filter by
repowith org prefix (e.g.vercel/) to search within an organization - Combine
matchCase:truewith specific function names for precise matches
What ships with it: 2 files
3.3 KB alongside SKILL.md, 1 of them executable
agents/
- openai.yaml204 B
scripts/
- mcpcall.pyruns3.1 KB