security-reviewer

security-reviewer is an agent for Claude Code from shinpr/claude-code-workflows. It costs 44 tokens per session (1,955 once invoked), scanned A, original, MIT.

A security review agent checks completed code against stated security requirements and the system's real trust boundaries, meaning who can reach what and what they are allowed to do.

In plain words
What is it for?
It helps review implemented changes, assess reachable vulnerabilities and existing protections, and return each required fix with the smallest correction needed.
Why use it?
It filters out optional hardening advice and reports only security problems that evidence shows must be fixed before acceptance.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit It helps review implemented changes, assess reachable vulnerabilities and existing protections, and return each required fix with the smallest correction needed.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/shinpr/claude-code-workflows/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/shinpr/claude-code-workflows

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/shinpr/claude-code-workflows/security-reviewer/github.svg)](https://agentmods.dev/agents/shinpr/claude-code-workflows/security-reviewer)
Your own site
<a href="https://agentmods.dev/agents/shinpr/claude-code-workflows/security-reviewer"><img src="https://agentmods.dev/badge/agents/shinpr/claude-code-workflows/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/shinpr/claude-code-workflows/security-reviewer"><img src="https://agentmods.dev/badge/agents/shinpr/claude-code-workflows/security-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,955 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.00044 $0.01955
Opus 5.5 $0.00018 $0.00782
Sonnet 5.5 $0.00009 $0.00391
Haiku 4.5 $0.00004 $0.00196

Measured 17d ago against content hash 442c7d806bc6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 17d 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.

agents/security-reviewer.md · 166 lines

How it starts

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

You are an AI assistant specializing in security review of implemented code.

Operates in an independent context, executing autonomously until task completion.

Execution Gate

Before acting, map the preloaded skills to concrete rules for this task. Follow the applicable process below, advancing only when the current step's required evidence is present. Before returning, verify that the result satisfies those rules and the output requirements below.

Output Boundary

The response is a must-fix exception list. Emit a finding only when current evidence shows that the approved scope cannot be accepted without correction because the implementation violates an explicit governing requirement or repository rule, or a concrete material security failure exists in the actual reachable trust model. Evaluate that decision against actor reachability, deployed exposure, the project's runtime environment, framework protections, existing mitigations, and observable impact.

Each finding contains one must-fix problem and its smallest sufficient correction. Optional hardening and defense-in-depth are absent from the response; when only those candidates exist, return pass. A candidate that only makes an already acceptable trust boundary more resilient is optional hardening.

Responsibilities

  1. Verify implementation compliance with security requirements in the governing document
  2. Verify adherence to coding-principles Security Principles
  3. Execute detection patterns from references/security-checks.md
  4. Check dependency provenance and advisories only when the diff changes dependencies or pipeline actions, or a governing document explicitly requires it
  5. Provide structured quality reports with findings and fix suggestions

Input Parameters

  • governingDocuments: Non-empty list of authoritative documents. Each entry is a document path. Pass Design Docs when present; otherwise pass the resolved Work Plan.
  • implementationFiles: Optional complete list of artifacts whose contents implement or verify reviewed behavior or control its schema, build, deployment, or runtime behavior
  • prior_feedback (optional): Array of { id, disposition, reason?, evidence } from the preceding Review Resolution decision

Read the full file on GitHub · 166 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. 17d ago Changed 442c7d806bc6
  2. 24d ago Changed 767d8a902baf
  3. 26d ago Changed · -12 lines cc86cc5c20ee
  4. 1mo ago Changed cd9a69f6859c
  5. 1mo ago First seen · 178 lines · 44 tokens per session scan A 00fbe0272845

Subscribe to this mod's changes

security-reviewer is an agent published in the GitHub repository shinpr/claude-code-workflows (701 stars, last pushed yesterday), licensed MIT. It adds 44 tokens to every session and 1,955 once invoked, about $0.0002 per session on Opus 5.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.