一键导入
sourcegraph-search
Search code using Sourcegraph CLI. Use when (re)searching codebases, finding implementation examples, analyzing code patterns
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Search code using Sourcegraph CLI. Use when (re)searching codebases, finding implementation examples, analyzing code patterns
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
The 'de-ai' skill: writes, rewrites, or reviews prose to remove AI/LLM tells. Use whenever the user says 'de-ai' in any phrasing ('de-ai', 'apply de-ai', 'de-ai per skill'), asks to humanize text, de-AI writing, review for AI tells, write naturally, sound less robotic, sound less ChatGPT, sound more human, edit for voice, make text authentic, or mentions AI detection concerns — German phrasings too ('klingt nach KI', 'menschlicher formulieren') — and when composing outgoing emails, letters, comments, or posts meant to read as human-written. Handles English and German. Never claim de-ai was applied without loading this skill.
Queries Google Maps Platform and Google Weather APIs for geocoding, reverse-geocoding, directions with travel times, distance matrix, places search, place details, static map images, and current/hourly/daily weather forecasts. Use when the user mentions an address or lat/lng coordinates; asks how to get somewhere, travel time, ETA, or a route (driving, walking, bicycling, transit); asks for nearby places, restaurants, cafes, bars, or points of interest (including "near me" or "closest"); wants a map image; or asks about weather, forecast, temperature, rain, or conditions at a location.
Search and download NZB files from Usenet indexers (Treasure Maps, NZBgeek, NZBFinder, NZBPlanet, DrunkenSlug) for movies, TV shows, books, and other media. Use when the user wants to find or download content from Usenet, mentions NZBs, asks for movies/TV/books with download intent, or wants to manage their cart.
Guides creation of effective skills that extend Claude's capabilities with specialized knowledge, workflows, or tool integrations. Use when users want to create a new skill, update an existing skill, review a skill, or ask about skill best practices and structure.
Searches Reddit posts and comments, reads comment threads, browses subreddits, and reads the user's own frontpage, subscriptions, and saved history via the official Reddit OAuth API. Use when the user mentions Reddit or a subreddit, asks what Reddit thinks about a topic, wants Reddit opinions or discussion, pastes a reddit.com link, or asks about their Reddit frontpage, feed, subscriptions, or saved posts. Use instead of WebFetch for reddit.com URLs, which return 403 anonymously.
Lists restaurants delivering (or offering pickup) to a location via the Lieferando / Just Eat Takeaway discovery API, with ratings, ETA, distance, minimum order value, delivery fee and current deals. Use when the user asks about ordering food, food delivery, takeaway, what restaurants deliver to an address, where to get döner/pizza/sushi/burgers, delivery fees or minimum orders, or mentions Lieferando, Just Eat, Takeaway.com or lieferando.de/lieferando.at. Covers Germany and Austria only.
| name | sourcegraph-search |
| description | Search code using Sourcegraph CLI. Use when (re)searching codebases, finding implementation examples, analyzing code patterns |
This skill enables autonomous code searching across repositories using the Sourcegraph CLI (src command).
Use this skill when you need to:
Do NOT use for local file searches - use Grep/Glob instead.
The reference files are comprehensive. To find specific topics quickly:
# Search reference.md sections
grep -n "^##" references/reference.md
# Find specific filter documentation
grep -n "^### \`repo:" references/reference.md
grep -n "^### \`file:" references/reference.md
grep -n "^### \`lang:" references/reference.md
# Find examples by use case
grep -n "^##" references/examples.md
See reference.md for complete syntax documentation. See examples.md for practical search patterns organized by use case.
src search 'PATTERN' # Simple text search
src search -json 'PATTERN' # JSON output for parsing
src search 'repo:REGEX PATTERN' # Search specific repos
src search 'lang:go PATTERN' # Search Go files only
1. Find function/method implementations
src search 'lang:go func handleRequest'
src search 'lang:python def authenticate'
2. Search in specific repository
src search 'repo:github.com/org/repo$ TODO'
src search 'repo:sourcegraph/sourcegraph auth'
3. Search with multiple filters
src search 'repo:kubernetes lang:go file:test fmt.Errorf'
src search 'TODO -file:test -file:spec'
See examples.md for more patterns including file types, commit history, and boolean operators.
When searching code:
repo:, lang:, file:), use operators (AND, OR, NOT)src search 'query' or src search -json 'query' for programmatic parsingMost common filters: repo:, lang:, file:, type:, case:, - prefix for exclusion.
See reference.md for complete filter documentation and syntax.
Sourcegraph supports three pattern types:
Literal (default): Exact text matching
src search 'func main('
Regexp: Use patternType:regexp for regex (RE2 syntax)
src search 'patternType:regexp func \w+Handler'
Structural: Use patternType:structural for syntax-aware matching
src search 'patternType:structural fmt.Sprintf(:[format], :[...])'
See reference.md for complete pattern syntax, regex reference, and structural search details.
-json: Output results as JSON (for parsing)-stream: Stream results as they arrive-display N: Limit displayed results (with -stream)--: Separate flags from query (for queries starting with -)Queries starting with negation need -- separator:
src search -- '-repo:foo/bar error'
Use -json for programmatic parsing. Set NO_COLOR=t to disable colors or COLOR=t to force colors when piping.
Default search scope excludes forks and archived repos. Include with fork:yes or archived:yes.
# How do people handle authentication in Go?
src search 'lang:go repo:.*auth.* middleware'
# React hooks usage
src search 'lang:typescript repo:facebook/react use.*Hook'
# Find hardcoded credentials
src search 'patternType:regexp (password|secret|api_key)\s*=\s*["\'][^"\']+["\']'
# Exposed private keys
src search 'type:diff BEGIN.*PRIVATE KEY'
# How is this library used?
src search 'lang:python import requests'
# Find all GraphQL mutations
src search 'file:\.graphql$ type Mutation'
# Find deprecated API usage
src search 'repo:myorg/ oldDeprecatedFunction'
# Find TODO comments in non-test files
src search 'TODO -file:test -file:spec'
For comprehensive syntax reference, pattern types, and advanced operators, see reference.md.
For more practical examples and complex query patterns, see examples.md.
No results?
Too many results?
lang: to narrow by languagerepo: with regex for specific repositoriesfile: for specific pathsSyntax errors?
-- before queries starting with -After finding results with Sourcegraph:
Read tool to examine specific files locallyGrep for more detailed local searchingBash for git operations on repositoriesWebFetch to access repository URLsrepo: + lang: + file: for precision-json when processing resultsrepo: filters are faster than broad searcheslang:) significantly narrow scopefile:) reduce search surfacecount: to limit results when you just need examples-stream) is better for large result sets