Skip to content
Back to skills

Pr Review Gate

ASecurity

Review gate for a PR a /route playbook opened. The top session runs it before its final reply.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
ai-agentsgobashgit

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add frailbongat/skills --skill pr-review-gate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pr Review Gate?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pr Review Gate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/frailbongat-pr-review-gate/badge)](https://www.skillsdirectory.com/skills/frailbongat-pr-review-gate)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pr-review-gate
description: "Review gate for a PR a /route playbook opened. The top session runs it before its final reply."
disable-model-invocation: true
---

After a playbook opens a PR, get it a fresh review before your final reply. Only the top session does this. A subagent that opens a PR names `/no-comments`, `interrogate` when the design is contested and Feature step 7 has not already run it, and the reviewer it needs in its report and hands back.

Skip this in Autopilot-full and Autopilot-stack, which verify each PR with their own swarm.

Add the review as the last task in the playbook todo list, then run these steps in order.

1. Run `/no-comments`. Run `interrogate` after it only when the design is contested and Feature step 7 in `~/.claude/skills/route/playbooks/feature.md` has not already run it. Fix their findings, so the fresh `reviewer` is the last gate.
2. When the PR already has a verdict and the new head differs from that verdict's head only by a main merge that adds none of the PR's own code, skip the reviewer. Edit the one-line merge check from `~/.claude/skills/route/SKILL.md` into the verdict comment, then go to step 5. Otherwise launch a new Paseo `reviewer` on the PR. Its brief asks it to answer 4 questions with yes, no, or n/a, each with a link or a quote as proof:
   - Does the failing test commit come before the fix commit?
   - Does each number the PR claims match its source?
   - Does the last line follow the `Closes` or `Refs` rule in `~/.claude/skills/ship-or-refs/SKILL.md`?
   - Does the Scope section name what the PR leaves out?

   A question is n/a when the PR has nothing it applies to, such as no fix, no numbers, or no issue, or when the PR states why a playbook step skipped it. A no counts as a P1.
3. When the reviewer found a P0, send only its P0 findings to a fresh `worker` in a worktree on the PR's branch, which pushes there. Then launch a new reviewer on the new head. In a stack, rebase each child onto the fixed tip before its review. Stop after 1 fix round. The P1s stay unfixed and go in the step 4 comment.
4. Post the last verdict as a comment on the PR, so I can see it on GitHub. When the head already has a verdict comment, edit that comment in place per the one-verdict-per-head rule in `~/.claude/skills/route/SKILL.md`. The comment starts with `Review verdict:` and the reviewer's BLOCK, OK, or OK with notes. It lists the 4 questions with their answers and proof, then any P0 still open and every P1 as open.
5. Run `~/.claude/skills/route/scripts/watch-pr/watch-pr --status-only --pretty --owner <owner> --repo <repo> --pr <number>`. In a stack, run it on the bottom PR with `--stack`. When CI is pending, run the same command without `--status-only` and with `--timeout 1800`, in the background with a Bash `timeout` of 1900000, then read its last line.
6. Write the `### Next` sentence. When the table shows a failing check or an unresolved thread, or the background run ends on any line but `READY`, the sentence is `babysit PR <number>` and names the problem. Otherwise the sentence names the PR to merge, the bottom one first in a stack, or what blocks it. When it names a PR to merge, it tells me to watch the PR's video or screenshots, or to read the diff when it has none, and to merge if the change does what I asked. It also names any ticket I must close by hand and any work still open on it. Either sentence replaces `/ship` and the ship-or-refs sentence.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.