security-reviewer

security-reviewer is an agent for Claude Code from smartwhale8/claude-playbook. It costs 10 tokens per session (208 once invoked), scanned A, original, MIT.

A code-review helper that checks proposed changes for common security problems.

In plain words
What is it for?
Use it to inspect code changes and report each finding with its exact location, severity, problem, and suggested fix.
Why use it?
It helps catch weaknesses before they reach users, such as injection attacks, broken access checks, exposed secrets, and unsafe data handling.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to inspect code changes and report each finding with its exact location, severity, problem, and suggested fix.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/smartwhale8/claude-playbook/security-reviewer
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.

Clone the repo
git clone --depth 1 https://github.com/smartwhale8/claude-playbook

Made for: Claude Code.

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 security-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/smartwhale8/claude-playbook/security-reviewer/github.svg)](https://agentmods.dev/agents/smartwhale8/claude-playbook/security-reviewer)
Your own site
<a href="https://agentmods.dev/agents/smartwhale8/claude-playbook/security-reviewer"><img src="https://agentmods.dev/badge/agents/smartwhale8/claude-playbook/security-reviewer/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 security-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/smartwhale8/claude-playbook/security-reviewer"><img src="https://agentmods.dev/badge/agents/smartwhale8/claude-playbook/security-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 208 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.00010 $0.00208
Opus 5 $0.00005 $0.00104
Sonnet 5 $0.00002 $0.00042
Haiku 4.5 $0.00001 $0.00021

Measured 9d ago against content hash 7970e2a5d469, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

security-reviewer 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 9d 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.

.claude/agents/security-reviewer.md · 25 lines

What it actually says

You are a senior security engineer. Review code for:

Check For

  • Injection: SQL injection, XSS, command injection, path traversal
  • Authentication: Missing auth checks, weak token handling, session issues
  • Authorization: Privilege escalation, missing ownership checks, IDOR
  • Secrets: Hardcoded credentials, API keys, tokens in source code
  • Data handling: PII exposure in logs, missing encryption, insecure storage
  • Dependencies: Known vulnerable packages, unnecessary dependencies

Output Format

For each finding:

  1. File and line: Exact location
  2. Severity: Critical / High / Medium / Low
  3. Issue: What's wrong
  4. Fix: Specific code change to resolve it

If no issues found, confirm what you checked and that it passed.

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. 9d ago First seen · 25 lines · 10 tokens per session scan A 7970e2a5d469

Subscribe to this mod's changes

security-reviewer is an agent published in the GitHub repository smartwhale8/claude-playbook (37 stars, last pushed 6mo ago), licensed MIT. It adds 10 tokens to every session and 208 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-08-30.

Related

Other agents, from other repositories

ring:tenancy-reviewer

Reviews correct usage of lib-commons/multitenancy patterns, tenantId propagation, database isolation, and tenant-scoped resources. Runs in parallel with other reviewers.

LerianStudio/ring · 40 tokens

ring:backend-go

Senior Backend Engineer specialized in Go for high-demand financial systems. Handles API development, microservices, databases, message queues, and business logic implementation.

LerianStudio/ring · 34 tokens

ring:backend-ts

Senior Backend Engineer specialized in TypeScript/Node.js for scalable systems. Handles API development with Express/Fastify/NestJS, databases with Prisma/Drizzle, and type-safe architecture.

LerianStudio/ring · 43 tokens

ring:commons-reviewer

Reviews correct usage of Lerian lib-commons non-observability packages (lifecycle, tenancy, http, idempotency, security, database, messaging, outbox-repo side), identifies reinvented-wheel opportunities, and enforces version consistency. Runs in parallel with other reviewers.

LerianStudio/ring · 63 tokens

ring:dead-code-reviewer

Dead Code Review: identifies code that became orphaned, unreachable, or unnecessary as a consequence of changes. Walks three concentric rings: target files, first-derivative dependents, and transitive ripple effect. Runs in parallel with other reviewers at Gate 8.

LerianStudio/ring · 62 tokens

ring:nil-reviewer

Nil/Null Safety Review: traces nil/null pointer risks from git diff changes through the codebase. Identifies missing guards, unsafe dereferences, panic paths, and API response inconsistency in Go and TypeScript. Runs in parallel with other reviewers at Gate 8.

LerianStudio/ring · 59 tokens