/search:codefrom search
Use when a task needs a fact about a dependency or a survey of many repositories, covering source selection by fact kind and GitHub quota
Ships in search. 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; scripts run unread.
Dependency declarations come from installed files, usage from Context7, DeepWiki, and public code, source and wiki from the repository at its installed tag, and versions from registries.
/owner/repo lowercased, a tag list spells each tag.venv/.gitignore) hides its files, --no-ignore reads them, a listed path needs no flag<packages> is the folder dotnet nuget locals global-packages --list prints, ~/.nuget/packages unless NuGet.config sets globalPackagesFolderget_file_contents, get_package_context, and DeepWiki read_wiki_contents return whole content, rg cites a linesearch_code reads default branches in files under 384 KB, get_repository_tree finds a path at a tagGH_TOKEN, the GitHub MCP, and every other token of one GitHub account spend one pool, the next call past it answers HTTP 403ctx7 sends CONTEXT7_API_KEY, each command spends one call of its monthly quota, an ID from a repository URL skips ctx7 libraryctx7 exits 75 while a tag or upgrade guide is indexed, the same command reruns after the wait it prints<main> is the checkout root, and downloads, wikis, guides, and decompiled files go under <dir>, a folder git ignoresOne member's signature and doc, a type's members, a module's exports, or a configuration option, read from installed files at the pinned version.
Installed version of a direct or transitive package and the package that depends on it, one line per ecosystem:
node_modules/<pkg> link, as the store holds older versions and patch hashesuv.lock, an extra or group in parenthesesCargo.lockPackage.swiftdotnet nuget why <project>.csproj <id>
pnpm why <pkg> --depth 1
uv tree --frozen --invert --package <pkg> --depth 1
cargo tree --locked --invert <crate> --depth 1
swift package show-dependencies --format json
Swift interface of an SDK module at the selected Xcode's SDK, Clang (CoreFoundation) or Swift (Observation), then the Swift overlay of a Clang framework (AppKit), which synthesis omits:
xcrun swift-synthesize-interface -module-name <Module> -sdk "$(xcrun --show-sdk-path)" -target "arm64-apple-macos$(xcrun --show-sdk-version)" -include-submodules | rg -n '<Member>'
fd -e swiftinterface arm64e-apple-macos "$(xcrun --show-sdk-path)/System/Library/Frameworks/<Module>.framework" -X rg -n '<Member>'
.NET types declaring a member as .xml doc ids, ``N follows a generic method name, without decompiling:
<lib> is <packages>/<id>/<version>/lib/<tfm>tar, id lowercaserg -oI 'M:[\w.`]+\.<Member>(``\d)?\([^"]*' <lib>/*.xml
xh -F "https://api.nuget.org/v3-flatcontainer/<id>/<version>/<id>.<version>.nupkg" | tar -xOf - 'lib/*.xml' | rg -oI 'M:[\w.`]+\.<Member>(``\d)?\([^"]*'
.NET decompiled source on stdout with doc comments and nested types, <dll> is <lib>/<assembly>.dll of an installed version:
`N arity, entity types c, i, s, d, e as one word-A<n> on its rg reads the bodyilspycmd -l cisde <dll> | rg '<Type>'
ilspycmd -t '<Namespace.Type`N>' <dll> | rg -n '^\s*public '
ilspycmd -t '<Namespace.Type`N>' <dll> | rg -nU '(^[ \t]*///.*\n)*([ \t]*\[.*\]\n)*[ \t]*public .*\b<Member>(<[^>]*>)?\(.*'
.NET decompiled files under <dir>/ilspy:
<Name>/<Version>, an existing <dir>/ilspy/<Name>/<Version> skips step 2-p the whole assembly as one <Name>.decompiled.csilspycmd --dump-table Assembly --json <dll> | jq -r '.rows[0] | "\(.Name)/\(.Version)"'
ilspycmd -p -o <dir>/ilspy/<Name>/<Version> <dll>
TypeScript exports from the native compiler's export list, run from <main>, <skill> this skill's folder, <project> the folder whose package.json declares the package:
<skill>/scripts, once per copy of the skillfolder it prints, a package name adding its other entry points (effect/ai), exit 1 when empty<folder>/<group>.tsv read whole, a row per member with name, kind, <file>:<start>-<end> span, and first doc linenpm ci --prefix <skill>/scripts
node <skill>/scripts/exports.ts <project> <specifier>
cat <folder>/<group>.tsv
rg '^<member>\t' <folder>
sed -n '<start>,<end>p' <file>
TypeScript type and enum values of one configuration schema definition:
jq -c '(.["$defs"] // .definitions).<Def>' <main>/node_modules/<pkg>/<schema>.json
TypeScript catalog package no project declares, its tarball at the catalog release laid out as a <project> the export listing reads:
mkdir -p <dir>/<pkg>@<version>/node_modules/<pkg> && xh -F "$(pnpm view <pkg>@<version> dist.tarball)" | tar -xz --strip-components 1 -C <dir>/<pkg>@<version>/node_modules/<pkg> && echo '{"type": "module"}' > <dir>/<pkg>@<version>/package.json
Python package in uv.lock, uv run --no-sync --with <pkg> python resolves one outside the lock:
__all__ and imports<mod>, member source with <mod>:<qualname>; -d replaces source with origin and cache detailsuv run --frozen python -m pydoc <mod>
uv run --frozen python -m inspect <mod>:<qualname>
Python typed signature per overload from a package's .pyi or its -stubs package where the runtime declares no types:
rg -nU --no-ignore 'def <fn>\([^)]*\)[^:]*:' <main>/.venv/lib/python*/site-packages/<pkg>* --glob '*.pyi'
Rust public declaration with file and line from crate source under $CARGO_HOME/registry/src:
rg -n -A8 '^\s*pub (\w+ )*(fn|struct|enum|trait|type|const|static|macro) <Symbol>\b' \
$CARGO_HOME/registry/src/index.crates.io-*/<crate>-<version> --glob '*.rs'
Rust compiler and standard library declaration of the active toolchain from components rustc-dev and rust-src, and Cargo, Clippy, rustfmt, and rust-analyzer from <rust-source>, the toolchain's rustc-<channel>-src.tar.xz unpacked:
rg -n -A8 '^\s*pub (\w+ )*(fn|struct|enum|trait|type|const|static|macro) <Symbol>\b' \
"$(rustc --print sysroot)/lib/rustlib/rustc-src/rust/compiler" "$(rustc --print sysroot)/lib/rustlib/src/rust/library" --glob '*.rs'
rg -n -A8 '^\s*pub (\w+ )*(fn|struct|enum|trait|type|const|static|macro) <Symbol>\b' <rust-source>/src/tools/<tool> --glob '*.rs'
MSBuild target with Condition, Inputs, and DependsOnTargets across the SDK global.json resolves, package targets under build/ or buildTransitive/:
rg -n -A3 '<Target Name="<target>"' "$(dotnet msbuild <project>.csproj -getProperty:MSBuildToolsPath)"
Java members and signatures of classes from jars on a classpath, more than one class per call:
javap -cp '<jar>:<jar>' <package.Class> <package.Class>
CLI flags of each subcommand of one name from the tool's carapace completer as JSON (Longhand, Shorthand, Usage), Short telling same-named subcommands apart and a tool without a completer printing nothing:
carapace <tool> export | jq -c '.. | objects | select(.Name? == "<subcommand>") | {Short, LocalFlags}'
How a member composes, from the repository's code examples, source, wiki, and README and from public code, one concept per query naming its symbol.
Context7 reads:
--library names or IDs, --library-version reads that version's snapshotSource code on IDs ctx7 code reads--language ranks one language first, wiki pages can describe an older major4.1.0, ^4.1.0, 3) through --tag, else the closest one indexed, a major alone its newest release/websites/ and /llmstxt/ IDs hold no source/<owner>/<repo>/<tag> ID, -F reads an error message literally, -l names files alone, -c counts per file--op references, outline, read, and listNext: line, offset as --offset, version as --tag, other fields by their flag namectx7 search '<question naming the symbol>' --library /<owner>/<repo> --language <language>
ctx7 library '<repository name>' '<task sentence naming the symbol>'
ctx7 docs /<owner>/<repo> '<one concept naming the symbol>' --language <language>
ctx7 docs /<owner>/<repo> '<one concept>' --tag <version>
ctx7 docs /websites/<site> '<one concept>'
ctx7 code /<owner>/<repo> '<Symbol>' --op definition
ctx7 code /<owner>/<repo>/<tag> '<regex>' -g '<glob>' -g '!<glob>' -C 3
ctx7 code /<owner>/<repo> '<regex>' -c
ctx7 code /<owner>/<repo>/<tag> --op read --path '<path>#L<n>-L<n>'
Context7 stars, trust score, and last update per candidate:
ctx7 library '<repository name>' '<task sentence>' --json | jq -r '.[] | [.id, .benchmarkScore, .trustScore, .stars, .totalSnippets, .lastUpdateDate[:10], (.versions // [] | join(","))] | @tsv'
DeepWiki reads one default-branch commit that can trail the branch by months, one stateless JSON-RPC call each to https://mcp.deepwiki.com/mcp:
Repository not found routes the repository to its tree and filesrepoName[] per repository, up to 10 per call<dir>/deepwiki, a # Page: <title> heading per page and **Sources:** lines naming path:start-endxh -b POST https://mcp.deepwiki.com/mcp 'Accept:application/json, text/event-stream' jsonrpc=2.0 id:=1 method=tools/call 'params[name]=read_wiki_structure' 'params[arguments][repoName]=<owner>/<repo>' | rg -r '$1' '^data: (.*)' | jq -r '.result.content[0].text'
xh -b POST https://mcp.deepwiki.com/mcp 'Accept:application/json, text/event-stream' jsonrpc=2.0 id:=1 method=tools/call 'params[name]=ask_wiki_question' 'params[arguments][repoName][]=<owner>/<repo>' 'params[arguments][repoName][]=<owner>/<repo>' 'params[arguments][question]=<question naming the members>' | rg -r '$1' '^data: (.*)' | jq -r '.result.content[0].text'
mkdir -p <dir>/deepwiki/<owner> && xh -b POST https://mcp.deepwiki.com/mcp 'Accept:application/json, text/event-stream' jsonrpc=2.0 id:=1 method=tools/call 'params[name]=read_wiki_contents' 'params[arguments][repoName]=<owner>/<repo>' | rg -r '$1' '^data: (.*)' | jq -r '.result.content[0].text' > <dir>/deepwiki/<owner>/<repo>.md
rg -n '^# Page: |<term>' <dir>/deepwiki/<owner>/<repo>.md
Public code composing members, repository and path per fragment:
AND terms in one file, and counts lineNumber from 0mcp.grep.app answers literal or useRegexp patterns, as grep.app /api/search refuses scripts with a Vercel challengefork:yes and archived:yessearch_code checks one repository or qualifier both lack, spending the GitHub account's code search quotaxh -I -b 'https://sourcegraph.com/.api/search/stream' q=='<Member> AND <Member> lang:<language> count:50' | rg -r '$1' '^data: (\[.*)' | jq -c '.[] | select(.type == "content") | {repository, commit, path, line: (.lineMatches[0].lineNumber + 1), text: .lineMatches[0].line}'
xh -I -b POST https://mcp.grep.app 'Accept:application/json, text/event-stream' jsonrpc=2.0 id:=1 method=tools/call 'params[name]=searchGitHub' 'params[arguments][query]=<code literal>' 'params[arguments][language][]=<Language>' | rg -r '$1' '^data: (.*)' | jq -r '.result.content[].text'
search_code {"query": "\"<Member>\" \"<Member>\" language:<language>", "perPage": 5, "fields": ["repository", "path", "text_matches"]}
.NET AGENTS.md of an installed NuGet package, its README otherwise, from the packages folder or source:
get_package_context {"solutionDirectory": "<main>", "packageName": "<id>", "packageVersion": "<version>"}
Cited README lines of an installed .NET or TypeScript package:
rg -n -A6 '<term>' <packages>/<id>/<version> --glob '*.md'
rg -n --no-ignore -A6 '<term>' <main>/<project>/node_modules/<pkg> --glob '*.md'
Python cited lines of a package's long description at one version, case sensitive:
xh https://pypi.org/pypi/<pkg>/<version>/json | jq -r '.info.description' | rg -n -A6 '<term>'
Repository, commit, and tag behind an installed version, then its tree, files, blame, and wiki at the tag:
projectUrl holds the repository when a repository element holds a commit alone.cargo_vcs_info.jsonv1.5.0, 8.7.0, [email protected], 4.0.0a6), a nuspec commit matches column one, no filter lists every tagrg -o '<(repository|projectUrl)[^<]*' <packages>/<id>/<version>/<id>.nuspec
pnpm view <pkg>@<version> repository.url repository.directory gitHead --json
xh https://pypi.org/pypi/<pkg>/<version>/json | jq -c '.info.project_urls'
cargo info <crate>@<version> | rg '^repository:'
jq -c '{sha1: .git.sha1, path_in_vcs}' $CARGO_HOME/registry/src/index.crates.io-*/<crate>-<version>/.cargo_vcs_info.json
git ls-remote --tags https://github.com/<owner>/<repo> | rg 'refs/tags/\S*<version>$'
gh api "repos/<owner>/<repo>/contents/<path>?ref=<tag>" -H "Accept: application/vnd.github.raw+json" | rg -n -A3 '\b<term>\b'
GitHub wiki pages served raw, a repository without a wiki prints no page name and answers 404 to a page:
xh -F https://github.com/<owner>/<repo>/wiki/_pages | rg -o 'href="/<owner>/<repo>/wiki/[^"#/_][^"#/]*"' | sort -u
xh -F https://raw.githubusercontent.com/wiki/<owner>/<repo>/<Page>.md | rg -n -A8 '\b<term>\b'
GitHub reads at the tag:
fields applies to a directory listing aloneget_repository_tree {"owner": "<owner>", "repo": "<repo>", "tree_sha": "<tag>", "recursive": true, "path_filter": "<path>/"}
get_file_contents {"owner": "<owner>", "repo": "<repo>", "path": "<file>", "ref": "refs/tags/<tag>"}
get_file_blame {"owner": "<owner>", "repo": "<repo>", "path": "<file>", "ref": "<tag>", "start_line": <n>, "end_line": <n>}
GitHub paths and fragments in one repository:
search_code {"query": "\"<phrase>\" repo:<owner>/<repo> path:<path>", "perPage": 5, "fields": ["path", "text_matches"]}
Newest version and its date come from the registry, notes from each tag's release, changes across versions from a Context7 guide, and advisories name patched versions.
Context7 breaking changes, deprecations, codemods, and public API diff across a version range, a library without a guide answers not prepared yet:
fromVersion exact, a major alone reads as its newest releasemkdir -p <dir> && ctx7 get-upgrade-guide /<owner>/<repo> <installed version> <target version> --page <n> > <dir>/<repo>@<installed>-<target>.<n>.md
rg -n '^#{2,3} ' <dir>/<repo>@<installed>-<target>.<n>.md
mq -A 'import "section" | section::section(self, "<section title>", 2) | map(section::all_nodes) | flatten' <dir>/<repo>@<installed>-<target>.<n>.md
.NET newest NuGet version, prereleases included, with its publish date, <id> lowercase:
version=$(xh -b https://api.nuget.org/v3-flatcontainer/<id>/index.json | jq -r '.versions[-1]')
xh -b "https://api.nuget.org/v3/registration5-gz-semver2/<id>/$version.json" | jq -c --arg version "$version" '{version: $version, published: .published[:10]}'
GitHub advisories on pinned versions with each patched version, one call across ecosystems, owner and repo name the current repository:
check_dependency_vulnerabilities {"owner": "<owner>", "repo": "<repo>", "dependencies": [{"ecosystem": "nuget", "name": "<id>", "version": "<version>"}, {"ecosystem": "npm", "name": "<pkg>", "version": "<version>"}, {"ecosystem": "pip", "name": "<pkg>", "version": "<version>"}]}
TypeScript newest version per dist-tag (latest, next, beta, rc) and publish date of one version:
pnpm view <pkg> dist-tags time --json | jq -c '{tags: .["dist-tags"], published: .time["<version>"][:10]}'
Python versions:
pyprojectuv tree --frozen --outdated --package <pkg> --depth 0
xh https://pypi.org/pypi/<pkg>/json | jq -r '.info.version, .urls[0].upload_time, .info.requires_dist[]?'
Rust newest version on crates.io:
cargo search <crate> --limit 1
GitHub release notes body alone, Not Found means no release exists for the tag and its changelog holds release notes:
gh api "repos/<owner>/<repo>/releases/tags/<tag>" --jq '.body'
Reads across many repositories run under a GitHub App's installation token, which holds a quota apart from the account's:
gh-token issues one from GITHUB_APP_ID, GITHUB_APP_INSTALLATION_ID, and GITHUB_APP_PRIVATE_KEY, valid one hourrepository fields for 1 point, where REST spends a call per repository and endpointGH_TOKEN# Remaining quota of each resource under the token
GH_TOKEN="$(gh-token generate --app-id "$GITHUB_APP_ID" --installation-id "$GITHUB_APP_INSTALLATION_ID" --key <(printf '%s' "$GITHUB_APP_PRIVATE_KEY") --token-only)" \
gh api rate_limit --jq '.resources | map_values(.remaining)'
# Fields of up to 100 repositories, one `<owner>/<repo>` per line of <file>
jq -Rrn '[inputs | split("/") as [$o, $n] | "r\(input_line_number): repository(owner: \($o | tojson), name: \($n | tojson)) { ...R }"]
| "query { \(join(" ")) } fragment R on Repository { nameWithOwner stargazerCount pushedAt isArchived licenseInfo { spdxId } latestRelease { tagName publishedAt } }"' <file> \
| GH_TOKEN="$(gh-token generate --app-id "$GITHUB_APP_ID" --installation-id "$GITHUB_APP_INSTALLATION_ID" --key <(printf '%s' "$GITHUB_APP_PRIVATE_KEY") --token-only)" \
gh api graphql -F query=@- --jq '.data[]'
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub bsamiee/rasm --plugin search5 skills in this plugin
/arenaUse when a task reads or writes Are.na channels, blocks, users, or groups, covering search, channel reads, image and file retrieval, and connections/ast-grepUse when outlining, searching, or rewriting code with ast-grep or writing a rule, covering matching and rule configuration/notebooklmInstall, authenticate, troubleshoot, and operate Gemini Notebook through the notebooklm-py CLI or typed async Python API. Use for notebook and source management, grounded chat and research, and artifact generation or download when the user mentions Gemini Notebook, notebooklm-py, the notebooklm CLI, or its Python API. Do not use for the generic Gemini API or unrelated content creation./webUse when a task needs an answer from the open web, covering tool selection by source and evidence