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:
keyword_search- Exact pattern matchingnls_search- Semantic/concept searchdeepsearch_read- Architectural understandingfind_references- Trace symbol usagego_to_definition- Jump to implementationsread_file- Read file contentsdiff_search- Find code changescommit_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