pr

pr is a command for Claude Code from openshift-eng/ai-helpers. It costs 14 tokens per session (3,040 once invoked), scanned A, original, Apache-2.0.

An automated review command for GitHub pull requests, which are proposed code changes awaiting review. It checks test coverage, code style, design practices, and whether the project builds.

In plain words
What is it for?
Use it to review a pull request, select Go or another supported language, apply a project profile, and optionally skip builds or tests.
Why use it?
It brings several routine review checks into one repeatable process and can adapt them to the detected language and project.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions subagents; positional $N argument.

Part of the code-review plugin — 4 skills, 2 commands shipped together

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.

agentmods
npx agentmods add commands/openshift-eng/ai-helpers/pr
Clone the repo
git clone --depth 1 https://github.com/openshift-eng/ai-helpers

Made for: Claude Code.

Or install code-review, the plugin that ships this one along with the rest of its 4 skills, 2 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 pr

README.md
[![agentmods](https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/pr.svg)](https://agentmods.dev/commands/openshift-eng/ai-helpers/pr)
Your own site
<a href="https://agentmods.dev/commands/openshift-eng/ai-helpers/pr"><img src="https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,040 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00014 $0.03040
Opus 5 $0.00007 $0.01520
Sonnet 5 $0.00003 $0.00608
Haiku 4.5 $0.00001 $0.00304

Measured 3d ago against content hash 1767c6db6182, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

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 3d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • pr — 91% identical, 7 lines differ
plugins/code-review/commands/pr.md · 204 lines

How it starts

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

Name

code-review:pr

Synopsis

/code-review:pr <pr-url-or-number> [--language <lang>] [--profile <name>] [--skip-build] [--skip-tests]

Description

The code-review:pr command performs a comprehensive code quality review of the changes in a GitHub Pull Request. It analyzes unit test coverage, idiomatic code patterns, DRY compliance, SOLID principles, and build verification.

The command supports two layers of customization:

  1. Language skills (--language <lang>): Load language-specific guidance for idiomatic code review, test conventions, and build commands. Currently shipped: go. Planned: python, rust, typescript, java. If not specified, the language is auto-detected from changed file extensions.

  2. Profile skills (--profile <name>): Load project-specific guidance that layers on top of language checks. Profiles add project conventions, shared utilities, build targets, and additional review criteria. Profiles reference the project's own agents and skills rather than embedding them.

The two layers compose: --language go --profile hypershift applies both Go idioms and HyperShift project conventions.

Implementation

Step 0 — Parse Arguments & Load Skills

  • Parse $ARGUMENTS for the following:
    • PR identifier (required, first positional argument): Either a full GitHub PR URL (e.g., https://github.com/owner/repo/pull/123) or a PR number (e.g., 123). When only a number is provided, the current repository's remote is used.
    • --language <lang>: Language skill to load (e.g., go, python, rust, typescript, java)
    • --profile <name>: Project profile skill to load (e.g., hypershift)
    • --skip-build: Skip build verification step
    • --skip-tests: Skip unit test coverage review step
  • If no PR identifier is provided, ask the user for one.
  • If --language is not specified, auto-detect the primary language from the file extensions of changed files (determined in Step 1):
    • .go -> go
    • .py -> python
    • .rs -> rust
    • .ts, .tsx -> typescript
    • .java -> java
    • If mixed or unrecognized, proceed without a language skill
  • Check for the language skill file at skills/lang-<lang>/SKILL.md relative to the plugin root directory. If the skill exists, read it and store its content for use by sub-agents. If it does not exist, inform the user and proceed with a generic review.
  • If --profile is specified, check for the profile skill file at skills/profile-<name>/SKILL.md relative to the plugin root directory. If the skill exists, read it and store its content for use by sub-agents. If it does not exist, warn the user and proceed without profile-specific checks.

Read the full file on GitHub · 204 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. 3d ago First seen · 204 lines · 14 tokens per session scan A 1767c6db6182

Subscribe to this mod's changes

pr is a command published in the GitHub repository openshift-eng/ai-helpers (116 stars, last pushed yesterday), licensed Apache-2.0. It adds 14 tokens to every session and 3,040 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-09-03.