Searching code with Sourcegraph

Community

Find any code, anywhere, effortlessly.

Authormarkus1189
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill eliminates the manual, time-consuming process of searching for code across vast, distributed repositories. It helps you quickly pinpoint specific implementations, understand cross-project dependencies, and identify code patterns without sifting through countless files.

Core Features & Use Cases

  • Cross-Repository Search: Search code across all your configured repositories, not just local files.
  • Pattern & API Usage Analysis: Find examples of API usage, specific functions, or complex code patterns.
  • Security Auditing: Quickly locate potential security issues like hardcoded credentials or vulnerable patterns.
  • Use Case: You need to refactor a deprecated function. Use this Skill to instantly find every instance of that function across your entire organization's codebase, saving days of manual searching.

Quick Start

Simple text search across all repos

src search 'PATTERN'

Search for a Go function in a specific repository

src search 'repo:github.com/org/repo$ lang:go func handleRequest'

Find all TODOs, excluding test files

src search 'TODO -file:test'

Dependency Matrix

Required Modules

Sourcegraph CLI

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Searching code with Sourcegraph
Download link: https://github.com/markus1189/nixos-config/archive/main.zip#searching-code-with-sourcegraph

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.