Searches GitHub repositories for real-world code usage and implementation patterns, including private repositories accessible to the authenticated user. Use when the user asks how other projects use an API or library, wants examples from actual repositories, or explicitly requests GitHub code search rather than authoritative or version-specific documentation.
90%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
Search for concrete identifiers, API names, imports, or other terms likely to appear in code:
gh search code '<terms>' \
--language <language> \
--limit 10 \
--json repository,path,textMatches,url \
--jq '.[] | {repo: .repository.nameWithOwner, path, url, fragments: [.textMatches[].fragment]}'Use --repo owner/repo, --owner org, --filename, or --extension to narrow results. Add a raw path:<directory> qualifier to the query when filtering by directory.
Use code terms, not natural-language questions. Prefer a distinctive identifier such as createContext, AbortSignal.any, or from "openai", then refine with filters if results are noisy.
gh search code uses GitHub's legacy code search engine. It does not support regex, punctuation may not be significant, results can differ from GitHub's web search, and only indexed code on default branches is searchable. State the limitation if it materially affects the answer.
Do not run more than 3 searches per question. GitHub's code search API is limited to 10 requests per minute.
Treat snippets as leads, not sufficient context for non-trivial conclusions. Open the returned URL or inspect the repository file before relying on surrounding behavior.
shillem/cc-marketplace
a05ddbb
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.