review-pr

review-pr is a skill for Claude Code, Codex from desplega-ai/agent-swarm. It costs 22 tokens per session (967 once invoked), scanned A, original, MIT.

A code-review helper for pull requests on GitHub and merge requests on GitLab. It examines the proposed changes and gives structured feedback.

In plain words
What is it for?
Reviewing a numbered request or URL, checking its CI results, applying repository review guidance, and writing approval or change-request feedback.
Why use it?
It gathers the change details and checks automated tests before approval, so important failures and repository-specific rules are not missed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Reviewing a numbered request or URL, checking its CI results, applying repository review guidance, and writing approval or change-request feedback.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/desplega-ai/agent-swarm/review-pr
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 desplega-ai/agent-swarm --skill review-pr
Clone the repo
git clone --depth 1 https://github.com/desplega-ai/agent-swarm

Made for: Claude Code, Codex.

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 review-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/desplega-ai/agent-swarm/review-pr/github.svg)](https://agentmods.dev/skills/desplega-ai/agent-swarm/review-pr)
Your own site
<a href="https://agentmods.dev/skills/desplega-ai/agent-swarm/review-pr"><img src="https://agentmods.dev/badge/skills/desplega-ai/agent-swarm/review-pr/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 review-pr

Your own site · 80×15
<a href="https://agentmods.dev/skills/desplega-ai/agent-swarm/review-pr"><img src="https://agentmods.dev/badge/skills/desplega-ai/agent-swarm/review-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 967 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 pass 7 Sept 2026
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.00022 $0.00967
Opus 5 $0.00011 $0.00483
Sonnet 5 $0.00004 $0.00193
Haiku 4.5 $0.00002 $0.00097

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

Security

Grade A, and why

review-pr 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 11d 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.

plugin/pi-skills/review-pr/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.

Review Pull Request / Merge Request

Review a PR (GitHub) or MR (GitLab) by analyzing changes and providing structured feedback.

Provider detection: Check the remote URL or provided URL:

  • If GitHub → use gh pr commands
  • If GitLab → use glab mr commands

Arguments

  • pr-number-or-url: Either a PR number (e.g., 123) or a full URL

Workflow

1. Setup

  • Ensure the repo is cloned to /workspace/personal/<repo-name> (clone with gh repo clone if needed)
  • Fetch, checkout the PR branch, get PR details and diff

2. Check CI Status (MANDATORY)

Check CI with gh pr checks <pr-number> (or glab mr view --json pipelines).

If CI checks are failing, this is an automatic REQUEST_CHANGES. Do not approve a PR with failing CI. Include the failing check names and error details in your review.

2b. Review Repository Guidelines

Check the "Review Guidance" section of your Repository Guidelines for repo-specific review instructions (e.g., "check README.md", "enforce camelCase in specific directories"). Apply these instructions during your review below.

Also note the repo's Merge Policy — check allowMerge and mergeChecks before approving or merging. If allowMerge is false, do NOT merge — only review and approve/request changes.

3. Verify Tests Are Included (MANDATORY)

Check that the PR includes test changes. If the PR modifies code but does not add or update tests, this is an automatic REQUEST_CHANGES. Every code change must include corresponding tests.

Exceptions:

  • Pure documentation changes (README, comments only)
  • Configuration-only changes (CI config, linter config, env files)
  • Dependency version bumps with no code changes

When requesting changes for missing tests, be specific about what tests are needed.

4. Analyze the Changes

Review the diff for:

  • Security issues: SQL injection, XSS, command injection, secrets in code
  • Logic errors: Off-by-one errors, null handling, edge cases
  • Performance concerns: N+1 queries, unnecessary loops, memory leaks
  • Code quality: Naming, complexity, duplication, missing error handling
  • Test coverage: Are included tests sufficient? Do they cover edge cases?

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. 11d ago First seen · 113 lines · 22 tokens per session scan A 6389eddf8767

Subscribe to this mod's changes

review-pr is a skill published in the GitHub repository desplega-ai/agent-swarm (761 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 967 once invoked, about $0.0001 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-30.