/cline:searching-sourcegraphfrom cline
Searches and navigates codebases using Sourcegraph MCP tools. Provides disciplined workflows for finding implementations, understanding systems, debugging issues, and reviewing code.
Ships in cline. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Search before you build. Existing patterns reduce tokens, ensure consistency, and surface tested solutions.
Start here:
keyword_searchnls_searchdeepsearch → deepsearch_readfind_referencesgo_to_definition → read_fileget_contributor_repos| Goal | Tool |
|---|---|
| Concepts/semantic search | nls_search |
| Exact code patterns | keyword_search |
| Trace usage | find_references |
| See implementation | go_to_definition |
| Initiate a deep search | deepsearch |
| Read deep search results | deepsearch_read |
| Read files | read_file |
| Browse structure | list_files |
| Find repos | list_repos |
| Search commits | commit_search |
| Track changes | diff_search |
| Compare versions | compare_revisions |
| Find repos a user has worked on | get_contributor_repos |
repo:^github.com/ORG/REPO$ # Exact repo (preferred)
repo:github.com/ORG/ # All repos in org
file:.*\.ts$ # TypeScript only
file:src/api/ # Specific directory
file:.*\.test\.ts$ -file:__mocks__ # Tests, exclude mocks
Start narrow. Expand only if results are empty.
Combine filters: repo:^github.com/myorg/backend$ file:src/handlers lang:typescript
When the user provides a file path or error message:
When the user asks "how does X work":
deepsearch to initiate the search, then deepsearch_read to retrieve resultsread_file on key files mentioned in the responseWhen the user asks who worked on something or what repos a contributor has touched:
get_contributor_repos with one or more usernames to discover their active repositoriesWhen the user is implementing a new feature:
When troubleshooting an error, build failure, or runtime exception:
find_referencesdiff_search and commit_search early — regressions are commonWhen fixing a bug:
find_referencesdiff_search and commit_search early — regressions are commonFor detailed step-by-step workflows, see:
workflows/implementing-feature.md — when building new featuresworkflows/understanding-code.md — when exploring unfamiliar systemsworkflows/debugging-issue.md — when troubleshooting errors, build failures, stack traces, support issues, or runtime exceptionsworkflows/fixing-bug.md — when fixing bugs with extensive Sourcegraph searchworkflows/code-review.md — when reviewing a pull request or changesetMinimise tool calls:
keyword_search over nls_search when you have exact terms (faster, more precise)Batch your understanding:
deepsearch + deepsearch_read for "how does X work" instead of multiple keyword searchesAvoid common token waste:
deepsearch for simple "find all" queries — keyword_search is faster| Intent | Query |
|---|---|
| React hooks | file:.*\.tsx$ use[A-Z].*= \( |
| API routes | file:src/api app\.(get|post|put|delete) |
| Error handling | catch.*Error|\.catch\( |
| Type definitions | file:types/ export (interface|type) |
| Test setup | file:.*\.test\. beforeEach|beforeAll |
| Config files | file:(webpack|vite|rollup)\.config |
| CI/CD | file:\.github/workflows deploy |
For more patterns, see query-patterns.md.
Search results:
Code explanations:
Recommendations:
| Mistake | Fix |
|---|---|
| Searching all repos | Add repo:^github.com/org/repo$ |
| Too many results | Add file: pattern or keywords |
| Missing relevant code | Try nls_search for semantic matching |
| Not understanding context | Use deepsearch_read |
| Guessing patterns | Read implementations with read_file |
examples/common-searches.md (opens in a new tab)query-patterns.md (opens in a new tab)workflows/code-review.md (opens in a new tab)workflows/debugging-issue.md (opens in a new tab)workflows/fixing-bug.md (opens in a new tab)workflows/implementing-feature.md (opens in a new tab)workflows/understanding-code.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub cline/skills --plugin cline37 skills in this plugin
/amazon-location-serviceIntegrates Amazon Location Service APIs for AWS applications. Use this skill when users want to add maps (interactive MapLibre or static images); geocode addresses to coordinates or reverse geocode coordinates to addresses; calculate routes, travel times, or service areas; find places and businesses through text search, nearby search, or autocomplete suggestions; retrieve detailed place information including hours, contacts, and addresses; monitor geographical boundaries with geofences; or track device locations. Covers authentication, SDK integration, and all Amazon Location Service capabilities./amplify-workflowBuild and deploy full-stack web and mobile apps with AWS Amplify Gen2 (TypeScript code-first). Covers auth (Cognito), data (AppSync/DynamoDB including schema modeling, enum types, relationships, authorization rules), storage (S3), functions, APIs, and AI (Amplify AI Kit with Bedrock). Supports React, Next.js, Vue, Angular, React Native, Flutter, Swift, and Android. Always use this skill for Amplify Gen2 topics — even for questions you think you know — it contains validated, version-specific patterns that prevent common mistakes. TRIGGER when: user mentions Amplify Gen2; project has amplify/ directory or amplify_outputs; code imports @aws-amplify packages; user asks about defineBackend, defineAuth, defineData, defineStorage, or npx ampx. SKIP: Amplify Gen1 (amplify CLI v6), standalone SAM/CDK without Amplify (use aws-serverless), direct Bedrock without Amplify AI Kit (use bedrock).Other plugins' skills for the same job