Claude-skill-registry code-examples
Find real-world code examples across millions of GitHub repositories. Use when the user wants to see how others implement something, find usage patterns, or discover code examples in the wild.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/code-examples" ~/.claude/skills/majiayu000-claude-skill-registry-code-examples && rm -rf "$T"
manifest:
skills/data/code-examples/SKILL.mdsource content
Code Examples
Find real-world code examples across millions of public GitHub repositories using grep.app.
When to activate:
- User wants to see real-world code examples
- User asks "how do others implement X?"
- User wants to find usage patterns for a library/API
- User needs production code examples (not docs)
API endpoint:
curl -s "https://grep.app/api/search?q={query}&page=1" | jq '.hits.hits[:5]'
Parameters:
| Parameter | Description |
|---|---|
| Search query (required) |
| Page number for pagination |
| for regex search |
| for case-sensitive |
| Language filter (capitalized, e.g., , , ) |
| Filter by repository pattern |
| Filter by file path pattern |
Examples:
Search for useEffect usage in TypeScript:
curl -s "https://grep.app/api/search?q=useEffect&f.lang=TypeScript&page=1" | jq '.hits.hits[:3]'
Search for Go error handling patterns:
curl -s "https://grep.app/api/search?q=if%20err%20!=%20nil&f.lang=Go&page=1" | jq '.hits.hits[:3]'
Search within a specific repo:
curl -s "https://grep.app/api/search?q=createContext&f.repo.pattern=facebook/react&page=1" | jq '.hits.hits[:3]'
Response format:
- Array of search resultshits.hits[]- Each hit contains:
(repo name),repo.raw
(file path),path.raw
(code snippet)content.snippet
Note: Returns max 1000 results. For documentation, use the documentation-lookup skill instead.