risk-based-review

risk-based-review is a skill for Claude Code from yeaight7/agent-powerups. It costs 52 tokens per session (784 once invoked), scanned A, original, Apache-2.0.

A review method that rates how risky a code change is before deciding how closely to inspect it. It considers the files changed, their history, and areas such as authentication, payments, encryption, migrations, and shared code.

In plain words
What is it for?
Use it to assess a pull request or your own change plan, focus review effort, and identify risky files or dependencies before implementation or merge.
Why use it?
It prevents spending equal review time on harmless edits and high-impact changes. It helps reveal when a small-looking change could affect many users or systems.

Skill for Claude Code

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

Part of the quality-gates plugin — 8 skills, 4 commands, 7 agents shipped together

Good fit Use it to assess a pull request or your own change plan, focus review effort, and identify risky files or dependencies before implementation or merge.

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

Made for: Claude Code.

Or install quality-gates, the plugin that ships this one along with the rest of its 8 skills, 4 commands, 7 agents.

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 risk-based-review

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/yeaight7/agent-powerups/risk-based-review"><img src="https://agentmods.dev/badge/skills/yeaight7/agent-powerups/risk-based-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 784 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.00052 $0.00784
Opus 5 $0.00026 $0.00392
Sonnet 5 $0.00010 $0.00157
Haiku 4.5 $0.00005 $0.00078

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

Security

Grade A, and why

risk-based-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 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.

plugins/quality-gates/skills/risk-based-review/SKILL.md · 66 lines

How it starts

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

Purpose

Not all code changes deserve the same level of scrutiny. A typo fix in a README is low risk; a change to the authentication middleware is critical. Allocate review attention based on the danger of the change, and state that judgment before giving feedback.

When to Use

  • Reviewing a PR and deciding how deep to go
  • The diff touches auth, payments, cryptography, or database migrations
  • The change hits core business logic, shared utilities, or public APIs
  • Sanity-checking your own plan before implementing a sensitive change

Inputs

  • The diff or PR under review (and its file list)
  • Repository access to inspect history and ownership of touched paths

Workflow

  1. Size the change first. Pull the file list and line counts so the risk call rests on real scope, not a guess.

    gh pr view --json files,additions,deletions   # files touched + size
    gh pr diff --stat                              # per-file churn
    
  2. Check churn and ownership on touched paths. Frequently-changed or single-owner files raise risk.

    git log --oneline -10 -- path/to/changed/file  # recent history
    git log --format='%an' -- path/to/changed/file | sort -u  # owners
    
  3. Classify the change into one risk category based on what it touches:

    • Critical Risk (auth, payments, cryptography, database migrations): require 100% test coverage for the change; require explicit human sign-off; look for edge cases, null pointers, and race conditions.
    • High Risk (core business logic, shared utilities, public API changes): require unit and integration tests; check backwards compatibility and blast radius (see change-impact-check).
    • Low Risk (UI tweaks, isolated components, internal tools): focus on readability, naming conventions, and simple unit tests.
  4. State the Risk Category explicitly at the top of your review, before any line-level feedback, so the reader knows the bar being applied.

  5. Review to the bar for that category. Apply the category's requirements; do not under-review a critical change or over-burden a low-risk one.

Read the full file on GitHub · 66 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 · 66 lines · 52 tokens per session scan A 0b73a35e895e

Subscribe to this mod's changes

risk-based-review is a skill published in the GitHub repository yeaight7/agent-powerups (6 stars, last pushed 3d ago), licensed Apache-2.0. It adds 52 tokens to every session and 784 once invoked, about $0.0003 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-14.