swe:pr-risk-review

swe:pr-risk-review is a skill for Claude Code from ckorhonen/swe-skills. It costs 101 tokens per session (1,257 once invoked), scanned A, original, MIT.

A pre-merge review guide for checking whether a pull request (a proposed code change) carries engineering risk.

In plain words
What is it for?
Use it to assess merge readiness, identify missing tests or checks, and choose the smallest safe follow-up action.
Why use it?
It helps reveal weak validation, hidden dependencies, migration concerns, and missing rollout or rollback planning before the change is merged.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the swe-skills plugin — 17 skills shipped together

Good fit Use it to assess merge readiness, identify missing tests or checks, and choose the smallest safe follow-up action.

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

Made for: Claude Code.

Or install swe-skills, the plugin that ships this one along with the rest of its 17 skills.

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 swe:pr-risk-review

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ckorhonen/swe-skills/pr-risk-review"><img src="https://agentmods.dev/badge/skills/ckorhonen/swe-skills/pr-risk-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,257 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.00101 $0.01257
Opus 5 $0.00051 $0.00629
Sonnet 5 $0.00020 $0.00251
Haiku 4.5 $0.00010 $0.00126

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

Security

Grade A, and why

swe:pr-risk-review 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.

skills/pr-risk-review/SKILL.md · 190 lines

How it starts

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

SWE PR Risk Review

What This Skill Does

Use this skill to review an open or draft pull request before merge and decide where the engineering risk is concentrated.

The expected outcome is a concise risk report that tells the user:

  • what the PR changes
  • what makes it risky or low-risk
  • what validation is missing or weak
  • what rollout, rollback, or migration gaps still need attention
  • what the smallest safe next action is

This skill is deliberately narrower than post-merge monitoring and bug hunting. It is about merge readiness, not production impact and not retrospective defect mining.

When To Use

Use this skill when the user wants to:

  • review a PR before merge
  • decide whether a change is safe to merge
  • identify missing tests, checks, or rollout planning on an open PR
  • assess whether migrations, flags, or interface changes need extra caution
  • get agent-safe follow-up actions without doing the merge

Do Not Use

Do not use this skill for:

  • post-merge production monitoring
  • scanning recent commits for regressions after the fact
  • a broad code style or architecture review with no PR scope
  • general project planning or roadmap feedback
  • security-specific review when the user explicitly asked for a security audit

Inputs To Confirm

Confirm or infer:

  • the PR number, branch, or diff scope
  • the repository or service in scope
  • whether CI or local validation data is available
  • whether the user wants report-only output or a concrete follow-up plan
  • any no-touch areas, rollout constraints, or deadlines

If the request is vague, ask for the PR link or number and the intended review focus before proceeding.

Tooling Stance

This skill is tool agnostic.

Use the strongest available evidence from:

  • PR metadata and diffs
  • CI status or failing checks
  • local test or typecheck commands
  • migration or rollout notes
  • feature-flag or config changes
  • release or rollback documentation

Prefer the repository's own validation commands and only broaden if the local signals are insufficient.

Read the full file on GitHub · 190 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 · 190 lines · 101 tokens per session scan A 7dcbfb4702ca

Subscribe to this mod's changes

swe:pr-risk-review is a skill published in the GitHub repository ckorhonen/swe-skills (3 stars, last pushed 1mo ago), licensed MIT. It adds 101 tokens to every session and 1,257 once invoked, about $0.0005 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.

Related

Other skills, from other repositories

improve

Autonomous quality improvement loop. Scores a target against a rubric, selects the highest-leverage axis, attacks it, verifies, documents, and loops. No pre-planning between iterations — each loop re-scores from scratch.

SethGammon/Citadel · 48 tokens

triage

GitHub issue and PR investigator. Pulls open issues/PRs, classifies them, searches the codebase for root cause or reviews contributed code, proposes fixes with file:line references, and optionally implements fixes. Use for investigating GitHub issues and reviewing PRs; do NOT use for general code review unrelated to…

SethGammon/Citadel · 71 tokens

review

5-pass structured code review — correctness, security, performance, readability, consistency.

SethGammon/Citadel · 17 tokens

create-pull-request

Use when asked to create or update a PR, revise its description, or link issue references to its body. Not for multi-PR stacks: use gate-and-merge. Not for releases: use git-workflow-and-versioning.

OutlineDriven/odin-claude-plugin · 52 tokens

audit-project

Run an iterative multi-agent code audit until critical and high findings are resolved. Use when the user says "audit my code", "find all the bugs", "deep code audit", "iterative review", or "review until clean".

OutlineDriven/odin-claude-plugin · 50 tokens

gate-and-merge

Use when landing a queue of open PRs: gate each PR, sweep its review feedback to root cause, then merge, repair, hold, or close it. Human-only.

OutlineDriven/odin-claude-plugin · 41 tokens