# Sourcegraph Integration

> Sourcegraph code search across repositories. Use for searching code patterns, finding implementations, and exploring codebases. Supports repo and file filters.

- Skill: `incidentfox/sourcegraph-integration` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add incidentfox/sourcegraph-integration`
- Raw SKILL.md: https://api.skillmd.com/api/skills/incidentfox/sourcegraph-integration/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: incidentfox (https://skillmd.com/u/incidentfox)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/incidentfox/sourcegraph-integration

---


# Sourcegraph Code Search

## Authentication

**IMPORTANT**: Credentials are injected automatically by a proxy layer. Just run the scripts directly.

## Available Scripts

All scripts are in `.claude/skills/vcs-sourcegraph/scripts/`

### search.py - Code Search
```bash
python .claude/skills/vcs-sourcegraph/scripts/search.py --query "func handleError" [--repo-filter "github.com/org/*"] [--file-filter "*.go"] [--limit 20]
```

## Search Syntax

| Filter | Example | Description |
|--------|---------|-------------|
| `repo:` | `repo:github.com/org/*` | Filter by repository |
| `file:` | `file:*.py` | Filter by file path |
| `lang:` | `lang:python` | Filter by language |
| `type:` | `type:symbol` | Search type (symbol, file, diff, commit) |

Regex patterns are supported in queries.

