Skip to content
Development
Skill

/risk-based-review

Use when reviewing a PR or your own change plan and you need to decide how much scrutiny it deserves -- the diff touches auth, payments, crypto, migrations, or core shared code, or you are unsure where to focus limited review attention.

From plugin
agent-powerups
8114 skills46 agents54 commands

Claude Code

$ npx -y skills add yeaight7/agent-powerups --skill risk-based-review --agent claude-code

SKILL.md

risk-based-review.SKILL.md
name: risk-based-review
description: Use when reviewing a PR or your own change plan and you need to decide how much scrutiny it deserves -- the diff touches auth, payments, crypto, migrations, or core shared code, or you are unsure where to focus limited review attention.

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.

Output

  • A stated Risk Category for the PR, justified by the files and scope it touches
  • Category-appropriate findings: coverage and sign-off demands for critical, compatibility and blast-radius checks for high, readability and naming for low

Verification

  • [ ] Change scope (files, line counts) was inspected before classifying
  • [ ] Exactly one risk category assigned, matching what the diff touches
  • [ ] Critical changes flagged for 100% coverage and explicit human sign-off
  • [ ] High-risk changes checked for backwards compatibility and blast radius
  • [ ] Risk Category stated before any line-level feedback

Failure Modes

  • **Uniform scrutiny** — reviewing a README typo as hard as auth middleware, wasting attention where it does not matter and starving it where it does.
  • **Misclassifying by size** — treating a small diff as low risk when it touches auth, payments, crypto, or a migration; category follows what is touched, not line count.
  • **Skipping the verdict** — giving feedback without stating the Risk Category, so the reader cannot tell what bar was applied.
  • **Waiving the gate** — letting a critical change through without the required coverage or human sign-off because it "looks fine."
Read more
@yeaight7
Ships withagent-powerups

Curated power-ups for coding agents: skills, slash commands, MCP configs, hooks, AGENTS.md templates, and workflows for serious software engineering. Claude Code, Codex, Antigravity CLI, Cursor and more

8114 skills46 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
8
Star history of yeaight7/agent-powerups on GitHub, a chart by star-history.com

Other skills on agent-powerups.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc11d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about risk-based-review.

Which coding agents can use risk-based-review?
risk-based-review installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.