AI agent skills for searching and understanding codebases with Sourcegraph.
npx skills add sourcegraph-community/sourcegraph-skill --skill "searching-sourcegraph"Or manually copy the .claude/skills/ directory to your project or ~/.claude/skills/.
The skills follow the Agent Skills open standard and can be used with any compatible AI agent.
Search Sourcegraph-indexed codebases for patterns, examples, and system understanding.
Use when:
- Implementing new features (find similar patterns first)
- Understanding unfamiliar code ("how does X work")
- Debugging issues (trace errors and recent changes)
- Finding examples of API usage
Tools used:
sg_keyword_search- Exact pattern matchingsg_nls_search- Semantic/concept searchsg_deepsearch_read- Architectural understandingsg_find_references- Trace symbol usagesg_go_to_definition- Jump to implementationssg_read_file- Read file contentssg_diff_search- Find code changessg_commit_search- Search commit history
.claude/skills/searching-sourcegraph/
βββ SKILL.md # Main skill instructions
βββ query-patterns.md # Regex patterns reference
βββ examples/
β βββ common-searches.md # Real-world examples
βββ workflows/
βββ implementing-feature.md
βββ understanding-code.md
βββ debugging-issue.md