review-pr

review-pr is a command for Claude Code from lyarwood/kubevirt-ai-helpers. It costs 16 tokens per session (1,971 once invoked), scanned A, original, Apache-2.0.

A command that reviews a GitHub pull request using the gh command-line tool and KubeVirt’s review rules. A pull request is a proposed set of code changes submitted for discussion and merging.

In plain words
What is it for?
Use it with a pull-request number or URL to inspect its metadata, description, labels, scope, diff, and commit history.
Why use it?
It checks the remote proposal without requiring the repository to be checked out locally and helps surface problems across the design, code, standards, commits, and request details.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the kubevirt plugin — 4 skills, 17 commands shipped together

Good fit Use it with a pull-request number or URL to inspect its metadata, description, labels, scope, diff, and commit history.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/lyarwood/kubevirt-ai-helpers/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.

Clone the repo
git clone --depth 1 https://github.com/lyarwood/kubevirt-ai-helpers

Made for: Claude Code.

Or install kubevirt, the plugin that ships this one along with the rest of its 4 skills, 17 commands.

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/commands/lyarwood/kubevirt-ai-helpers/review-pr/github.svg)](https://agentmods.dev/commands/lyarwood/kubevirt-ai-helpers/review-pr)
Your own site
<a href="https://agentmods.dev/commands/lyarwood/kubevirt-ai-helpers/review-pr"><img src="https://agentmods.dev/badge/commands/lyarwood/kubevirt-ai-helpers/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/commands/lyarwood/kubevirt-ai-helpers/review-pr"><img src="https://agentmods.dev/badge/commands/lyarwood/kubevirt-ai-helpers/review-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,971 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.
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.00016 $0.01971
Opus 5 $0.00008 $0.00986
Sonnet 5 $0.00003 $0.00394
Haiku 4.5 $0.00002 $0.00197

Measured 12d ago against content hash 090fb5781059, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 12d 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.

plugins/kubevirt/commands/review-pr.md · 140 lines

How it starts

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

Name

kubevirt:review-pr

Synopsis

/kubevirt:review-pr <pr-number-or-url>

Description

The kubevirt:review-pr command performs a comprehensive code review of a GitHub pull request using the gh CLI, applying KubeVirt project coding conventions and reviewer guidelines. Unlike /kubevirt:review (which reviews local branch changes), this command works directly against a remote PR without requiring a local checkout.

This command simulates a thorough code review following the KubeVirt multi-pass review approach. Read the shared review checklist at plugins/kubevirt/skills/review/SKILL.md for the full list of review areas, conventions, and output formatting rules.

Review Passes

  1. PR Metadata Pass: Evaluate PR title, description, labels, and overall scope
  2. General Design Pass: Verify the overall design makes sense and code structure is consistent with the project
  3. Detailed Code Pass: In-depth analysis of the implementation via the diff
  4. Standards Compliance Pass: Check adherence to KubeVirt coding conventions
  5. Commit History Pass: Review commit structure and messages

Implementation

Phase 1: Gather PR Metadata

  1. Parse the PR argument to extract the PR number and repository (defaults to kubevirt/kubevirt)
  2. Use gh pr view <pr-number> --repo <repo> --json number,title,body,labels,author,reviewRequests,assignees,baseRefName,headRefName,additions,deletions,changedFiles,commits,comments,reviews,state,isDraft to get full PR metadata
  3. Evaluate PR title, description, size, and draft status using the PR Metadata checklist from the shared review skill
  4. Flag PRs that are too large (>500 lines changed across many files) and suggest splitting

Phase 2: Fetch PR Diff and Changed Files

  1. Use gh pr diff <pr-number> --repo <repo> to get the full diff
  2. Use gh pr view <pr-number> --repo <repo> --json files to get the list of changed files with per-file stats
  3. Prioritize files for review using the file priority order from the shared review checklist

Read the full file on GitHub · 140 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. 12d ago First seen · 140 lines · 16 tokens per session scan A 090fb5781059

Subscribe to this mod's changes

review-pr is a command published in the GitHub repository lyarwood/kubevirt-ai-helpers (2 stars, last pushed 9d ago), licensed Apache-2.0. It adds 16 tokens to every session and 1,971 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-31.