Skip to content
Skill

Code reviewer subagent no bash blocked on PR diff

Keeps no-Bash review subagents from stalling by pre-building PR diffs and worktrees

Code reviewer subagent no bash blocked on PR diff is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
5
Last commit
License
MIT
Listing updated

Similar skills

About Code reviewer subagent no bash blocked on PR diff

This skill addresses a common failure when a code-review subagent is asked to fetch a GitHub pull request diff itself. Some review agents are provisioned without a shell, so they cannot run gh, git diff or git checkout, and they return a blocked report instead of findings. The guidance moves the git work to the orchestrator, which has shell access: each PR branch is placed in a worktree and a per-base diff is written to a file ahead of time.

The workflow has the orchestrator generate scoped diffs against each PR's own base using a three-dot comparison, so the file matches what GitHub shows as the PR's changes. The reviewer is then given explicit worktree and diff paths, told it has only read and search tools, and told not to look in the main checkout. Anything that needs empirical checking is returned as a list of commands for the orchestrator to run afterward.

It expects a git repository with worktree support, a shell available to the orchestrator, and a review agent that only has read-style tools. The skill also notes that a blocked reviewer should not be read as a clean result.

When your agent uses it

Code-review subagents are frequently provisioned WITHOUT a Bash tool, so they cannot run `gh pr diff`, `git diff`, or `git checkout` — and when you prompt them to "review PR #N, fetch the diff with gh pr diff" they return a BLOCKED report (no review performed), not findings. Use when: (1) dispatching feature-dev:code-reviewer / voltagent-* / Explore agents to review GitHub PRs or branches; (2) a review agent returns "I have no shell/gh/git tool" or "the PR sources are not in the working tree" or reviews `main` (which predates the PR) instead of the PR; (3) one reviewer in a parallel panel comes back BLOCKED while siblings succeeded. Fix: pre-generate per-base diffs to files + point the agent at materialized worktree paths, don't tell it to run gh/git.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (7 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the agent-traffic-control plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add wan-huiyan/agent-traffic-control
/plugin install agent-traffic-control@wan-huiyan-agent-traffic-control

Or copy only this skill to ~/.claude/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff &&
cp -R "$tmp/plugins/agent-traffic-control/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff" ~/.claude/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff &&
cp -R "$tmp/plugins/agent-traffic-control/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff" ~/.agents/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff &&
cp -R "$tmp/plugins/agent-traffic-control/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff" ~/.cursor/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/wan-huiyan/agent-traffic-control.git --path plugins/agent-traffic-control/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff

Or copy the folder to ~/.gemini/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff &&
cp -R "$tmp/plugins/agent-traffic-control/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff" ~/.copilot/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git

Then copy agent-traffic-control/plugins/agent-traffic-control/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff into your agent's skills folder as code-reviewer-subagent-no-bash-blocked-on-pr-diff. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Blocked reviewer detection
Explains how to recognize when a review agent could not see the PR code and returned no findings.
Pre-generated scoped diffs
Writes each PR's diff against its own base to a file the reviewer can read directly.
Worktree materialization
Checks out PR branches into separate worktrees so reviewers can read the actual source.
Explicit reviewer prompting
Provides a prompt template that states the agent has no shell and gives exact file paths.
Deferred empirical checks
Has reviewers list commands that need running, which the orchestrator executes afterward.

Good for

  • Review an open GitHub pull request with a read-only subagent
  • Run a parallel panel of code reviewers over several stacked PRs
  • Recover a review run where one reviewer returned a blocked report
  • Generate per-base diff files for reviewing a feature branch

Code reviewer subagent no bash blocked on PR diff FAQ

Why does a review agent return a blocked report?

Some review agents are provisioned without a Bash tool, so they cannot run gh pr diff or git commands and report that the PR sources are not in the working tree.

What does the skill change?

It has the orchestrator create worktrees and write per-base diff files, then gives the reviewer those paths and tells it not to run gh or git.

Why use a three-dot diff?

A three-dot diff compares against the merge base, matching GitHub's Files-changed view, while a two-dot diff can show base-branch changes as false deletions.

Which agents are affected?

The skill names read-only review and search agents such as feature-dev:code-reviewer and Explore; general-purpose agents generally have Bash.

How do I install Code reviewer subagent no bash blocked on PR diff in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff to use it in all your projects, or to .claude/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff in one project. Or install the agent-traffic-control plugin, which includes it: /plugin marketplace add wan-huiyan/agent-traffic-control, then /plugin install agent-traffic-control@wan-huiyan-agent-traffic-control.

Does Code reviewer subagent no bash blocked on PR diff run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Code reviewer subagent no bash blocked on PR diff?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Code reviewer subagent no bash blocked on PR diff?

The closest alternatives to Code reviewer subagent no bash blocked on PR diff are Code review, Code review, PR review, Code review agent and Make PR easy to review.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from wan-huiyan/agent-traffic-control