What problem does it solve?
It solves the problem of writing effective GitHub code search queries so you can locate the exact code, symbols, or patterns you need without manually scanning repositories.
Core Features & Use Cases
- Qualifier-based precision: Use qualifiers like
repo:, org:, language:, path:, symbol:, content:, and is: to narrow results to the right scope.
- Boolean query logic: Combine terms with
AND, OR, and NOT, including parentheses, to include or exclude what you want.
- Advanced pattern matching: Use regular expressions with
/.../ and control exact-string matching with quotes, including escaped quotes/backslashes.
- Path globbing: Use glob patterns in qualifiers (including
*, **, and ?) to match files by path patterns.
- Use Case: When debugging a bug you suspect is caused by a specific function call or configuration fragment, you can search a single repo for the symbol definition and then refine by language and path to quickly pinpoint the relevant file.
Quick Start
Use the github-code-search skill to build a GitHub code search query for your target repo, language, and path pattern, then run it in GitHub to retrieve matching results.