From unblocked-skills
PR-only search across connected repos via context_search_prs. Use this instead of context_research when you want PR results — descriptions, review discussions, and change history — without Slack, Jira, or doc noise mixed in. TRIGGER when: you need to understand WHY code works the way it does (decision history, reasoning, rejected alternatives); investigating what PRs introduced or changed a behavior; the user asks "why was this done", "what changed", "what PR introduced X", or "was this tried before"; you're doing bug archaeology and want to trace a change back to its PR. DO NOT TRIGGER when: you need the current code state — use Grep/Glob/Read; you need Slack threads, issues, or docs alongside PRs — use context_research instead.
How this skill is triggered — by the user, by Claude, or both
Slash command
/unblocked-skills:unblocked-context-search-prsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
PR-only retrieval across connected repos. Calls `context_search_prs` with a natural-language query to semantically search PR descriptions and review discussions — surfacing the WHY behind code changes that Grep can't tell you.
PR-only retrieval across connected repos. Calls context_search_prs with a natural-language query to semantically search PR descriptions and review discussions — surfacing the WHY behind code changes that Grep can't tell you.
Sources: GitHub, GitHub Enterprise, GitLab, GitLab Self-Managed, Bitbucket, Bitbucket Data Center, Azure DevOps.
context_search_prs 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-prs --query "<your query>" [--instruction "<instruction>"]
MCP fallback (only if CLI is confirmed unavailable): fall back to context_research with instruction: "Prefer PR descriptions and review discussions; deprioritize other sources".
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 PR-search tools.
Grep and Read show you what the code does now. Use this tool when:
context_research returns everything (Slack, Jira, docs, code); this returns only PRs, so results stay focused when that's all you needcontext_research InsteadUse context_research when you need the full organizational picture alongside PRs — Slack threads, design docs, issue tracker context, architectural decisions from multiple sources. This tool returns PRs only; broader context requires context_research.
| Parameter | Required | Description |
|---|---|---|
query | Yes | What to find — write a complete question with concrete identifiers, not bare keywords. |
instruction | No | Fine-grained control over which results surface: preferred repos, date ranges, or PR attributes to prioritize or deprioritize. |
Writing effective queries — include the most concrete identifiers you have:
PaymentProcessor.charge(), auth-middleware)billing-service/src/webhooks, order-service)JWT token refresh, gRPC migration, retry-with-backoff)payments-service, web-client)Write a complete question or directive, not a keyword fragment:
| Instead of | Write |
|---|---|
retry logic | What PR introduced the retry-with-backoff logic in order-service? |
auth refactor | What was the reasoning behind switching from session cookies to JWT tokens? |
rate limiting | What PR added rate limiting to the API gateway and what approach was chosen? |
pagination | Were there any rejected approaches to cursor-based pagination in the REST API? |
instruction examples:
"Focus results on billing-service and payments-service repos""Prefer merged PRs; deprioritize draft or abandoned PRs""Focus on PRs from the last 6 months"Split distinct unknowns into separate context_search_prs 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 PR that introduced rate limiting and also why we moved to gRPC.
Two parallel queries (focused results):
Query 1: What PR introduced rate limiting to the API gateway?
Query 2: What was the reasoning behind moving from REST to gRPC for inter-service communication?
context_research insteadreferences/query-patterns.md — query examples organized by use case, with good/bad comparisons and instruction patternsnpx claudepluginhub unblocked/skills --plugin unblocked-skillsUnified context retrieval via context_research. Searches PRs, docs, messaging platforms, issue trackers, and code history to surface WHY code works the way it does, what was tried before, and what constraints apply. TRIGGER when: you need decision history, prior art, or conventions before modifying code; planning, scoping, or researching a topic; investigating a bug or incident; you need filtered lookups across issues, messages, or PRs (e.g., "open bugs in PROJECT", "what did X work on last week"); Grep/Glob/Read failed to find the referenced code — this skill searches across repos and systems beyond the current workspace. DO NOT TRIGGER when: you only need current implementation (not history or reasoning) — use Grep/Glob/Read directly.
Investigates GitHub repository history before risky code changes using git blame/log, PRs, review comments, and rename/cherry-pick heuristics. Use before editing API, security, concurrency, or migration code.
Searches prior checkpoints and code across repositories by topic, repo, branch, author, or time window. Useful for finding past work or code implementations.