searching-sourcegraph
星标0
分支0
更新时间2026年3月2日 18:58
Use when the user needs to search or navigate code with Sourcegraph MCP tools.
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Use when the user needs to search or navigate code with Sourcegraph MCP tools.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | searching-sourcegraph |
| description | Use when the user needs to search or navigate code with Sourcegraph MCP tools. |
You have access to Sourcegraph search and code navigation tools through MCP.
nls_search({ query }): semantic search for natural-language exploration.keyword_search({ query }): keyword or regex search using Sourcegraph query syntax.read_file({ repo, path, startLine?, endLine?, revision? }): fetch file contents.list_repos({ query, limit?, after?, before? }): discover relevant repositories.list_files({ repo, path?, revision? }): list files and directories.go_to_definition({ repo, path, symbol, revision? }): locate symbol definitions.find_references({ repo, path, symbol, revision? }): find symbol usage.commit_search({ repos, messageTerms?, authors?, contentTerms?, files?, after?, before? }): search commit history.diff_search({ pattern, repos, added?, removed?, author?, after?, before? }): search code diffs.compare_revisions({ repo, base, head, first?, after? }): compare two revisions.get_contributor_repos({ author, limit?, minCommits? }): discover contributor activity by repo.deepsearch({ question }): run Sourcegraph Deep Search for complex, multi-step questions.deepsearch_read({ identifier }): read a Deep Search conversation by URL or token.repo:, file:, lang:, type: when possible).read_file to confirm behavior.Prefer nls_search for exploration and keyword_search for precision.
repo:^github\\.com/org/repo$ for exact repository matching.file:\\.(go|ts|py)$ to constrain by extension.type:symbol for definitions and type:file for content matches.