codesearch

Search organization codebases via Sourcegraph with filters and regex.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/abhiroopb/synthetic-mind --skill codesearch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codesearch
Source: https://github.com/abhiroopb/synthetic-mind/tree/main/skills/codesearch
Command: npx skills add https://github.com/abhiroopb/synthetic-mind --skill codesearch

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a powerful and efficient way to search across your entire organization's codebase, helping you find specific code snippets, definitions, or usages without needing to clone multiple repositories.

Core Features & Use Cases

  • Cross-repository Search: Leverages Sourcegraph to search across all your organization's repositories.
  • Advanced Filtering: Supports scoping by repository, file path, language, symbol, and branch.
  • Pattern Matching: Enables the use of boolean operators, regex, and case-sensitive searches.
  • Use Case: Quickly find all instances of a specific function or variable across your entire microservices architecture, or locate all configuration files containing a particular database URL.

Quick Start

Search code for the function 'processPayment' in Java.

Frequently Asked Questions about codesearch

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

FAQPage Schema
How do I search for a function definition across multiple repositories without cloning them?

Code search using Sourcegraph scans your organization's entire codebase to find definitions and usages across multiple repositories without requiring local clones. You can scope searches by repository, file path, language, and symbol to locate exact matches.

Can I use regex and boolean operators to filter codebase search results?

Yes, codebase exploration with this tool supports regex patterns, boolean operators, and case-sensitive searches. You can apply advanced filtering by repository, file path, language, symbol, and branch to refine your code discovery results.

Do I need an internal Sourcegraph instance to search my organization's code?

Yes, you need access to an internal Sourcegraph instance to effectively perform cross-repository code discovery. The tool leverages Sourcegraph to query code implementations and locate symbols across your organization's repositories.

What is the best way to find all usages of a specific variable in a microservices architecture?

Cross-repository code search is the best way to find all instances of a specific variable or function across a microservices architecture. By scoping searches by symbol and language, you can quickly locate every usage without manually cloning repositories.

How do I locate configuration files containing a specific database URL across repositories?

You can locate configuration files containing a specific database URL by searching your codebase with file path and language filters. The code search tool matches patterns across your organization's repositories to pinpoint the exact files.

Are there limitations when searching for code implementations across different programming languages?

Code search requires an accessible Sourcegraph instance and relies on its indexing capabilities. While you can scope searches by language and symbol, results depend on your organization's Sourcegraph configuration and repository access permissions.