Agent Prompt: /review-pr slash command

Agent Prompt: /review-pr slash command is an agent for Claude Code from openonion/connectonion. It costs 20 tokens per session (233 once invoked), scanned C, original, Apache-2.0.

A prompt for reviewing GitHub pull requests, which are proposed code changes awaiting review. It guides the agent to inspect the pull request details and changed code.

In plain words
What is it for?
Use it to review an existing pull request or list open pull requests when no number is supplied, then produce findings and improvement suggestions.
Why use it?
It gives a consistent way to look for correctness, style, performance, tests, and security risks before changes are merged.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to review an existing pull request or list open pull requests when no number is supplied, then produce findings and improvement suggestions.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/openonion/connectonion/agent-prompt-review-pr-slash-command
About the project

ConnectOnion is an open-source, template-first toolkit for building, debugging, deploying, and operating AI agents. Developers use its command-line tools and Python runtime to create agents, add tools, connect services, deploy them, and make them callable by other agents, while the catalogue entries are related agents, skills, and instructions.

openonion/connectonion · 1,480 stars · on GitHub · docs.connectonion.com

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/openonion/connectonion

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 Agent Prompt: /review-pr slash command

README.md
[![agentmods](https://agentmods.dev/badge/agents/openonion/connectonion/agent-prompt-review-pr-slash-command/github.svg)](https://agentmods.dev/agents/openonion/connectonion/agent-prompt-review-pr-slash-command)
Your own site
<a href="https://agentmods.dev/agents/openonion/connectonion/agent-prompt-review-pr-slash-command"><img src="https://agentmods.dev/badge/agents/openonion/connectonion/agent-prompt-review-pr-slash-command/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 Agent Prompt: /review-pr slash command

Your own site · 80×15
<a href="https://agentmods.dev/agents/openonion/connectonion/agent-prompt-review-pr-slash-command"><img src="https://agentmods.dev/badge/agents/openonion/connectonion/agent-prompt-review-pr-slash-command.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 233 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00020 $0.00233
Opus 5 $0.00010 $0.00117
Sonnet 5 $0.00004 $0.00047
Haiku 4.5 $0.00002 $0.00023

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

Security

Grade C, and why

Agent Prompt: /review-pr slash command scanned grade C with 1 finding 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 10d 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- name: 'Agent Prompt: /review-pr slash command' description: System prompt for reviewing GitHub pull requests with code analysis ccVersion: 2.1.45 variables: - PR_NUMBER_ARG -->
connectonion/useful_prompts/cc_prompt/prompts/agents/agent-prompt-review-pr-slash-command.md · 31 lines

What it actually says

  You are an expert code reviewer. Follow these steps:

  1. If no PR number is provided in the args, run `gh pr list` to show open PRs
  2. If a PR number is provided, run `gh pr view <number>` to get PR details
  3. Run `gh pr diff <number>` to get the diff
  4. Analyze the changes and provide a thorough code review that includes:
     - Overview of what the PR does
     - Analysis of code quality and style
     - Specific suggestions for improvements
     - Any potential issues or risks

  Keep your review concise but thorough. Focus on:
  - Code correctness
  - Following project conventions
  - Performance implications
  - Test coverage
  - Security considerations

  Format your review with clear sections and bullet points.

  PR number: ${PR_NUMBER_ARG}
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. 10d ago First seen · 31 lines · 0 tokens per session scan C 6f4116ee4c52

Subscribe to this mod's changes

Agent Prompt: /review-pr slash command is an agent published in the GitHub repository openonion/connectonion (1,480 stars, last pushed yesterday), licensed Apache-2.0. It adds 20 tokens to every session and 233 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

refactor-cleaner

Dead code cleanup and consolidation specialist. Use PROACTIVELY for removing unused code, duplicates, and refactoring. Runs analysis tools (knip, depcheck, ts-prune) to identify dead code and safely removes it.

affaan-m/ECC · 51 tokens

pr-reviewer

Reviews PRs for version bump compliance, KISS/DRY violations, and cross-cutting concerns. Use when reviewing pull requests, validating plugin version changes in plugins//.claude-plugin/plugin.json, or checking files skipped by specialist agents (.githooks, config files, shell scripts, markdown). Triggers on PR review…

closedloop-ai/claude-plugins · 79 tokens

history-analyst

Reviews a diff against the git history of the files it touches. Uses git log and git blame to catch changes that undo a previous fix, reintroduce a reverted pattern, or contradict the intent recorded in earlier commits. Adds the dimension a code-only reviewer misses — the past. Use when the changed files have…

MANOJ21K/agentic-code-review · 73 tokens

shadow-auditor

Audits agent decisions and session outcomes for compliance and quality. Assign as a shadow for end-of-session review.

AgentWorkforce/relay · 27 tokens

devops-architect

DevOps and CI gate expert for the ClosedLoop plugin monorepo. Reviews build toolchain correctness (ruff, pyright, uv), plugin versioning discipline (semver per plugin.json), hook lifecycle contracts, pre-push CHANGELOG enforcement, marketplace registration, and cross-plugin coordinated version bumps. Triggers on…

closedloop-ai/claude-plugins · 95 tokens

custom-best-practices-judge

Evaluates code implementation adherence to custom best practices documents.

closedloop-ai/claude-plugins · 18 tokens