sourcegraph-search

Integrates with Sourcegraph to search code, commits, diffs, symbols, and DeepSearch across repositories.

2|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/jasonmeans/pm-skills --skill sourcegraph-search
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sourcegraph-search
Source: https://github.com/jasonmeans/pm-skills/tree/main/.claude/skills/sourcegraph-search
Command: npx skills add https://github.com/jasonmeans/pm-skills --skill sourcegraph-search

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sourcegraph, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the process of searching codebases, providing quick access to code search, commit history, diffs, symbol navigation, and DeepSearch capabilities.

Core Features & Use Cases

  • Code Search: Execute precise keyword searches and semantic/natural-language searches across your repositories.
  • Repository & File Navigation: Discover repositories and navigate file structures with ease.
  • Symbol Navigation: Jump to the definition of symbols (functions, classes, variables) or find all usages.
  • Git History & Diffs: Track changes, compare revisions, and search for specific commits or diffs.
  • People and DeepSearch: Identify key contributors and delve deeper with Sourcegraph DeepSearch.
  • Use Case: When you need to locate a specific piece of code or understand the history of a particular function, this Skill can quickly provide the necessary insights.

Quick Start

/sourcegraph-search my-code-search-query

Frequently Asked Questions about sourcegraph-search

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search code across multiple repositories at once?

You can execute precise keyword searches and natural-language queries across multiple repositories by integrating with Sourcegraph. This allows you to quickly locate specific code snippets and navigate file structures across your entire codebase.

Can I find function definitions and usages using code search?

Yes, symbol navigation allows you to jump directly to the definitions of functions, classes, and variables. You can also find all usages of a symbol across your repositories to understand code dependencies.

How do I track commit history and diffs for specific code changes?

You can track changes and compare revisions by searching for specific commits or diffs across repositories. This Git history integration helps you understand when and why particular pieces of code were modified.

Do I need a Sourcegraph instance to use this code search integration?

Yes, this integration requires a configured Sourcegraph MCP server and active access to your Sourcegraph instance. It is optimized for engineering workflows involving deep code analysis and debugging.

What is Sourcegraph DeepSearch and when should I use it?

Sourcegraph DeepSearch allows you to delve deeper into codebase queries and identify key contributors. Use it when you need advanced insights beyond basic keyword matching to understand complex code relationships.

Are there limitations when using Sourcegraph for repository navigation?

The primary limitation is the strict dependency on a Sourcegraph instance and MCP server setup. Without proper environment access and configuration, the code search and symbol navigation features cannot function.