reviewer-gates

reviewer-gates is a skill for Claude Code from jl-cmd/claude-dev-env. It costs 69 tokens per session (2,172 once invoked), scanned A, original, MIT.

A set of checks that decides whether an external code reviewer should run in a pull-request workflow. It handles review opt-outs, Copilot usage limits, and Cursor Bugbot triggering and status detection.

In plain words
What is it for?
Use it before starting Copilot, Cursor Bugbot, or related external review steps to check permissions, opt-outs, quotas, and review completion.
Why use it?
It gives review loops one consistent place to decide whether a reviewer is available. This avoids conflicting settings, repeated quota checks, and improvised trigger commands.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions subagents; installed under .agents/ (shared by several agents).

Part of the claude-dev-env plugin — 67 skills, 3 commands, 8 agents, 6 hooks shipped together

Good fit Use it before starting Copilot, Cursor Bugbot, or related external review steps to check permissions, opt-outs, quotas, and review completion.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jl-cmd/claude-dev-env/reviewer-gates
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.

Any agent
npx skills add jl-cmd/claude-dev-env --skill reviewer-gates
Clone the repo
git clone --depth 1 https://github.com/jl-cmd/claude-dev-env

Made for: Claude Code.

Or install claude-dev-env, the plugin that ships this one along with the rest of its 67 skills, 3 commands, 8 agents, 6 hooks.

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 reviewer-gates

README.md
[![agentmods](https://agentmods.dev/badge/skills/jl-cmd/claude-dev-env/reviewer-gates.svg)](https://agentmods.dev/skills/jl-cmd/claude-dev-env/reviewer-gates)
Your own site
<a href="https://agentmods.dev/skills/jl-cmd/claude-dev-env/reviewer-gates"><img src="https://agentmods.dev/badge/skills/jl-cmd/claude-dev-env/reviewer-gates.svg" alt="Measured on agentmods" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,172 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 17
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
How audits are shown
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.00069 $0.02172
Opus 5 $0.00034 $0.01086
Sonnet 5 $0.00014 $0.00434
Haiku 4.5 $0.00007 $0.00217

Measured 8d ago against content hash e92cf19c56a5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

reviewer-gates 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 8d 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.

packages/claude-dev-env/.agents/skills-archived/reviewer-gates/SKILL.md · 113 lines

How it starts

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

Reviewer Gates

Core principle: one place decides whether an external reviewer is engaged. A caller never hand-parses CLAUDE_REVIEWS_DISABLED, never re-queries Copilot quota mid-run, and never invents a Bugbot trigger phrase.

How callers invoke this

  • Skill-capable contexts (a lead session with the Skill tool): Skill({skill: "reviewer-gates", args: "--skill <caller> <gate> [gate parameters]"}).
  • Fallback (a subagent or teammate without the Skill tool): the caller's spawn prompt says "Read ~/.claude/skills/reviewer-gates/SKILL.md and apply the <gate> section with the parameters below."

Every invocation carries the caller's identity (--skill <caller>, e.g. pr-converge, bugteam). The refusal line in Gate 1 and every logged decision names the caller, so a multi-skill session's transcript shows which loop each gate served.

Gate 1: Reviewer opt-out (CLAUDE_REVIEWS_DISABLED)

The CLAUDE_REVIEWS_DISABLED environment variable is a comma-separated token list (case-insensitive, whitespace-tolerant). Four tokens exist:

Token Disables
bugteam The whole bug-audit family: /bugteam, clean-room audit (code-quality-agent), and audit dispatch in /pr-converge
bugbot Cursor Bugbot triggering and polling
copilot GitHub Copilot review requests and polling
codex Codex reviewer requests and polling

Cursor Bugbot is off by default: it runs only when CLAUDE_REVIEWS_ENABLED lists bugbot, and a bugbot token in CLAUDE_REVIEWS_DISABLED keeps it off even when the opt-in lists it.

Run the shared parser — never an inline shell parse:

python "$HOME/.claude/_shared/pr-loop/scripts/reviews_disabled.py" --reviewer <bugbot|bugteam|copilot|codex>
  • Exit 0 — the named reviewer is disabled for this run (opted out, or, for Bugbot, off by default without the CLAUDE_REVIEWS_ENABLED opt-in). A skill whose whole run depends on that reviewer responds with its refusal line and stops. A copilot- or bugteam-dependent caller names the opt-out: /<caller> is disabled via CLAUDE_REVIEWS_DISABLED. A Bugbot-dependent caller off by default names the opt-in the run needs: /<caller> is disabled: Cursor Bugbot needs a bugbot token in CLAUDE_REVIEWS_ENABLED. A loop that merely includes the reviewer as one gate marks the reviewer down (bugbot_down = true, copilot_down = true, codex_down = true) and continues on its remaining signals.
  • Exit 1 — the reviewer is available; continue.

Read the full file on GitHub · 113 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. 8d ago First seen · 113 lines · 69 tokens per session scan A e92cf19c56a5

Subscribe to this mod's changes

reviewer-gates is a skill published in the GitHub repository jl-cmd/claude-dev-env (5 stars, last pushed today), licensed MIT. It adds 69 tokens to every session and 2,172 once invoked, about $0.0003 per session on Opus 5. 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.