From unblocked-skills
Code-only search across the current repo and connected repos via context_search_code. Use this instead of context_research when you want code results without Slack, Jira, or doc noise mixed in. TRIGGER when: Grep/Glob/Read can't find a referenced class, function, or module (it may live in another connected repo); you need semantic code search rather than a literal pattern match; you want to find how something is implemented or used across repos; the user asks to "find", "locate", or "search for" code. DO NOT TRIGGER when: local Grep/Glob/Read can find what you need; you also need PR history, team decisions, Slack context, or issue tracker data — use context_research instead.
How this skill is triggered — by the user, by Claude, or both
Slash command
/unblocked-skills:unblocked-context-search-codeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Code-only retrieval across the current repo and other connected repos. Calls `context_search_code` with a natural-language query to semantically search code — finding implementations, usages, and patterns that Grep can't reach because the code lives in another repo or the query is conceptual rather than literal.
Code-only retrieval across the current repo and other connected repos. Calls context_search_code with a natural-language query to semantically search code — finding implementations, usages, and patterns that Grep can't reach because the code lives in another repo or the query is conceptual rather than literal.
Sources: GitHub, GitHub Enterprise, GitLab, GitLab Self-Managed, Bitbucket, Bitbucket Data Center, Azure DevOps.
context_search_code is CLI-only in most environments — it does not appear in the MCP tool list even when fully available. Run command -v unblocked once per session and cache the result. Do not conclude the tool is unavailable from the MCP surface alone. See unblocked-tools-guide for full routing rules.
CLI (preferred):
unblocked context-search-code --query "<your query>" [--instruction "<instruction>"]
MCP fallback (only if CLI is confirmed unavailable): fall back to context_research with instruction: "Prefer code and implementation results; deprioritize docs, issues, and messages".
If neither is available: stop and tell the user Unblocked is not configured in this environment (see unblocked-tools-guide for the full message). Do not substitute with other code-search tools.
Grep and Read are fast for literal matches in the local workspace. Use this tool when:
context_research returns everything (Slack, Jira, docs, PRs); this returns only code, so results stay focused when that's all you needIf local Grep can find it, use that. This tool's value is reach (cross-repo) and semantics (concept-level matching).
context_research InsteadUse context_research when you need the full picture alongside the code — PR discussions, team decisions, issue tracker context, Slack threads, architectural docs. This tool returns code only; organizational context requires context_research.
| Parameter | Required | Description |
|---|---|---|
query | Yes | What to find — write a complete phrase with concrete identifiers, not bare keywords. |
instruction | No | Fine-grained control over which results surface: preferred repos, file types, or code patterns to prioritize or deprioritize. |
Writing effective queries — include the most concrete identifiers you have:
PaymentProcessor.charge(), AuthService)billing-service/src/webhooks, shared/utils/retry)payments-service, web-client)the rate limiting middleware in the API gateway)Write a complete question or directive, not a keyword fragment:
| Instead of | Write |
|---|---|
retry logic | Where is retry-with-backoff implemented across connected repos? |
auth middleware | Find the authentication middleware that validates JWTs in the API gateway. |
PaymentProcessor | How is PaymentProcessor.charge() implemented, and which services call it? |
pagination | How do connected repos implement cursor-based pagination in REST APIs? |
instruction examples:
"Prefer interface definitions and entry points over test files""Focus results on the billing-service and payments-service repos""Deprioritize generated or vendor code"Split distinct unknowns into separate context_search_code calls rather than cramming everything into one query. Run them in parallel when the unknowns are independent.
One query, two unknowns (diluted results):
Find the rate limiting middleware and also how authentication tokens are validated.
Two parallel queries (focused results):
Query 1: Where is the rate limiting middleware implemented in the API gateway?
Query 2: How does the authentication service validate JWT tokens?
context_research instead, which covers all sources in one callreferences/query-patterns.md — query examples organized by use case, with good/bad comparisons and instruction patternsGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub unblocked/skills --plugin unblocked-skills