gh-pr-blockers

gh-pr-blockers is a command for Claude Code from james-prodopen/emcmd. It costs 0 tokens per session (569 once invoked), scanned A, original, MIT.

A command that checks open GitHub pull requests for issues preventing them from being merged.

In plain words
What is it for?
Use it for one repository or for pull requests involving your GitHub account, and review failures, missing approvals, merge conflicts, and other blockers.
Why use it?
It gathers scattered review, conflict, and automated-check information so you can see which requests need attention.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it for one repository or for pull requests involving your GitHub account, and review failures, missing approvals, merge conflicts, and other blockers.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/james-prodopen/emcmd/gh-pr-blockers
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/james-prodopen/emcmd

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gh-pr-blockers

README.md
[![agentmods](https://agentmods.dev/badge/commands/james-prodopen/emcmd/gh-pr-blockers/github.svg)](https://agentmods.dev/commands/james-prodopen/emcmd/gh-pr-blockers)
Your own site
<a href="https://agentmods.dev/commands/james-prodopen/emcmd/gh-pr-blockers"><img src="https://agentmods.dev/badge/commands/james-prodopen/emcmd/gh-pr-blockers/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gh-pr-blockers

Your own site · 80×15
<a href="https://agentmods.dev/commands/james-prodopen/emcmd/gh-pr-blockers"><img src="https://agentmods.dev/badge/commands/james-prodopen/emcmd/gh-pr-blockers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 569 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00569
Opus 5.5 $0.00000 $0.00228
Sonnet 5.5 $0.00000 $0.00114
Haiku 4.5 $0.00000 $0.00057

Measured 3mo ago against content hash 3fbe68d78ec8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gh-pr-blockers scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/gh-pr-blockers.md · 32 lines

How it starts

The opening of the file, as written. The whole thing — 32 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Summarize pull request blockers across accessible repositories, unless a repo is specified here: $ARGUMENTS.

Workflow

Follow these instructions explicitly:

  1. If a specific repository is provided in $ARGUMENTS (format: owner/repo), use gh pr list --repo owner/repo --state open --limit 50 --json number,title,author,updatedAt,isDraft to list PRs
  2. Otherwise, use gh search prs --involves @me --state open --json number,title,repository,author,updatedAt to find PRs involving the authenticated user across all repositories
  3. For each PR found, use gh pr view <number> --repo owner/repo --json number,title,author,updatedAt,state,isDraft,mergeable,reviewDecision,statusCheckRollup,reviewRequests,comments,reviews,url to fetch detailed status including checks, reviews, mergeable state, review conversations, and PR URL
  4. Analyze each PR for blockers (failed checks, missing reviews, merge conflicts, etc. - exclude PR state as draft)
  5. Sort PRs by most recent activity first
  6. Report all blocked PRs with concise blocker summaries

Blocker Detection

Check for these common blockers:

  • CI/CD failures - Failed status checks or builds
  • Missing reviews - No approving reviews or review requests pending
  • Requested changes - Reviewers explicitly requesting changes
  • Merge conflicts - Code conflicts with base branch
  • Unresolved conversations - Review threads not marked resolved
  • Failed deployments - Preview/staging deployment failures
  • Missing required checks - Required status checks not completed
  • Stale review requests - PRs with reviewers requested but no approving reviews for more than 1 business day (excluding weekends). To calculate business days: first get today's date, then count backward day-by-day from today, skipping weekends (Saturday/Sunday), until you reach the PR's updatedAt date. Count only the weekdays (Monday-Friday) in between. If it's been more than a week, simply say >1 week.

Output

Report only blocked PRs (do not include unblocked PRs in the summary). For each blocked PR (ordered by most recent activity first): repository name, PR number, PR URL, title, author, last activity timestamp, and concise blocker summary (e.g., "Blocked by: failed CI, missing reviews (2 requested)", "Blocked by: changes requested by @username", "Blocked by: missing reviews from @reviewer1, @reviewer2")

Read the full file on GitHub · 32 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 32 lines · 0 tokens per session scan A 3fbe68d78ec8

Subscribe to this mod's changes

gh-pr-blockers is a command published in the GitHub repository james-prodopen/emcmd (5 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 569 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

gh-pr-blockers compared with commands from other repositories

gh-pr-blockers next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gh-pr-blockersjames-prodopen/emcmdCommand51y agoMITA0Claude Code
review-deepjuliusz-cwiakalski/agentic-delivery-osCommand47todayMITA22OpenCode
review-remotejuliusz-cwiakalski/agentic-delivery-osCommand47todayMITA9Claude Code, OpenCode
prjuliusz-cwiakalski/agentic-delivery-osCommand47todayMITA9Claude Code, OpenCode
reviewjuliusz-cwiakalski/agentic-delivery-osCommand47todayMITA22OpenCode
probetslateman/duetCommand12mo agoMITA10Claude Code
speckit.spex.submitrhuss/cc-spexCommand1222d agoApache-2.0A15Claude Code