Skip to content
Development
Agent

identifying-risk

A risk area is any changed line where a mistake has consequences beyond the immediate feature — security, data integrity, downstream consumers, or operability. Your job is to surface these so the reviewer spends their attention where it pays off. Walk the whole diff against this

From plugin
skills
954 skills54 agents

Claude Code

$ npx -y skills add vanara-agents/skills --agent claude-code

Agent definition

identifying-risk.md

Identifying Risk Areas

A risk area is any changed line where a mistake has consequences beyond the immediate feature — security, data integrity, downstream consumers, or operability. Your job is to surface these so the reviewer spends their attention where it pays off. Walk the whole diff against this taxonomy; do not rely on the author to have flagged them.

1. Security-sensitive code (flag first, always)

Look for changes touching:

  • **Authentication / authorization** — login, session, token handling, permission checks, ownership

checks. A changed or *missing* authz check is the highest-consequence line in most diffs.

  • **Secrets** — new API keys, passwords, tokens, connection strings, private keys added to source or

config. Anything matching `KEY=`, `SECRET`, `TOKEN`, `PASSWORD`, `-----BEGIN` is a stop-and-look.

  • **Injection surface** — user input reaching SQL, shell, template, HTML, or file paths. New string

interpolation into a query or command is a flag.

  • **Crypto** — new hashing/comparison of secrets, random-number use for security, TLS/cert config.
  • **Input at a trust boundary** — new endpoints, deserialization, file uploads, outbound URLs (SSRF).

You are not auditing — you are pointing. "This PR changes the session check in `auth/session.js:40`; a reviewer should confirm the authz path" is the right altitude. Deep analysis is the `security-auditor` agent's job.

2. Database migrations (often irreversible)

Migrations are the highest-risk category because they run once, in production, against real data. Flag every migration file and check for:

  • **Non-nullable column with no default** added to a populated table → migration fails or locks.
  • **Dropped column / table** → data loss; irreversible without a backup.
  • **Type changes / narrowing** → truncation or cast failure on existing rows.
  • **Index creation on a large table without `CONCURRENTLY`** → long write lock.
  • **Data backfills** embedded in schema migrations → can be slow and non-transactional.

Always ask in the summary: does this run cleanly against a *non-empty* production table? Most migration incidents come from a migration that passed on an empty test DB.

3. Public API / contract changes

A change that others depend on is a change you cannot see the blast radius of. Flag:

  • **Signature changes** to exported/public functions, REST/GraphQL endpoints, event schemas.
  • **Renamed or removed** public fields, params, routes, env vars.
  • **Behavior changes under an unchanged signature** — same function, different return/side effect.

These are the most dangerous because nothing at the call site looks different.

  • **Response-shape changes** that break existing clients (removed field, changed type, new required

request field).

Call out whether the change is backward-compatible and whether versioning/deprecation is handled.

4. Config, dependencies, and infra

Low-visibility, wide blast radius:

  • **Dependency changes** — new packages (supply-chain risk), major version bumps (breaking changes),

removed pins. A new transitive dependency in a lockfile is worth a glance.

  • **Config defaults** — timeouts, rate limits, feature flags, pool sizes changed silently. A default

changed inside a "feature" PR (as in the AGENT.md worked example) is a classic buried risk.

  • **CI/CD and infra** — build steps, deploy scripts, Dockerfiles, permissions. A weakened check or a

disabled test in CI is a flag.

Turning risk into output

For each flagged item, the Risk areas line names the `file:line`, states the specific risk, and says why it matters — one sentence. Order the list by consequence, not by file order. When the diff has *no* elevated risk, say so plainly: "Risk areas: none elevated — mechanical refactor, no security, migration, or API-surface changes." That is a valid and useful result.

Read more
@vanara-agents
Ships withskills

🐒 Free agents, skills & packs for Claude Code One subscription. An army of Claude Code agents. 30 production-grade agents, skills, and packs for Claude Code — free, Apache-2.0, install with one command.

917 skills54 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
9
Star history of vanara-agents/skills on GitHub, a chart by star-history.com

Other agents on skills.

AGENT

AGENT

Agent

Use when designing a new HTTP/GraphQL API or changing an existing one — modeling resources, defining endpoint contracts, choosing…

review-notes

review-notes

Agent

This shows how the api-designer agent reviews a flawed draft. Findings are severity-ranked so the implementer fixes the…

contract-and-openapi

contract-and-openapi

Agent

The contract is the deliverable. Express it as an **OpenAPI 3.1** document so it is human-readable *and* machine-checkable. This…

design-checklist

design-checklist

Agent

Run through this before declaring an API contract done. It is ordered the way you should *design*: resources first, cross-cutting…

pr-comment-template

pr-comment-template

Agent

Copy-paste templates for leaving review comments. Keep each comment to one finding: an anchor, the problem, and the fix.

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc2w293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react5d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex5d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman6d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about identifying-risk.

Which coding agents can use identifying-risk?
identifying-risk installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.