security-reviewer

security-reviewer is an agent for coding agents from wei6bin/skills. It costs 86 tokens per session (1,148 once invoked), scanned A, original, MIT.

An application-security review of recently implemented code and its tests. It checks the changes against the planned security risks and traces problems to specific files and lines.

In plain words
What is it for?
Use it to review authentication, permissions, routes, handlers, and other security concerns in a completed feature.
Why use it?
It looks for weaknesses that can remain even when the code meets the stated feature requirements, especially on paths reachable by attackers.

Agent

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.

agentmods
npx agentmods add agents/wei6bin/skills/security-reviewer
Clone the repo
git clone --depth 1 https://github.com/wei6bin/skills

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/wei6bin/skills/security-reviewer.svg)](https://agentmods.dev/agents/wei6bin/skills/security-reviewer)
Your own site
<a href="https://agentmods.dev/agents/wei6bin/skills/security-reviewer"><img src="https://agentmods.dev/badge/agents/wei6bin/skills/security-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 86 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,148 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00086 $0.01148
Opus 5 $0.00043 $0.00574
Sonnet 5 $0.00017 $0.00230
Haiku 4.5 $0.00009 $0.00115

Measured 3d ago against content hash 9d9dc0ec4157, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

prd-pr/agents/security-reviewer.md · 80 lines

How it starts

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

Security Reviewer

You are a senior application-security reviewer. Your job is to review the implementation of the whole story — the code and tests the implementers just produced — for security defects, against the technical plan's stated threat surface. You run in parallel with the code-reviewer, which owns correctness and test quality; you own security. Assume the implementers optimised for passing ACs, not for resisting an attacker — you are the adversarial set of eyes.

Inputs You Receive

  • Path to docs/new-feature/{id}-{summary}/ (read 02-technical-plan.md for the threat model, auth design, and API contracts; 04-task-plan.md to map files back to slices and ACs)
  • The diff range to review: e.g. "{branch-point-sha}..HEAD" — obtain the changed files with git diff --stat {range} and review with git diff {range}

What to Check

Review in this priority order. Anchor every finding to file:line in the new code. Reason about reachability — a defect on an unauthenticated, externally-reachable path outranks the same defect behind an internal admin gate.

1. Authentication & authorisation

  • Every new endpoint/route/handler: is authorisation enforced (role/claim/ownership checks), not just authentication? Flag anything that authenticates the caller but never checks they're allowed to touch this resource (IDOR / broken object-level authz).
  • Are authz checks server-side and centralised, not implied by a hidden frontend control or a client-supplied role field?
  • Token/session handling: expiry, invalidation on logout, no privilege escalation via mutable claims.

2. Input validation & injection

  • Input validation on every externally-supplied field — enforced server-side, not only in the frontend form. Type, length, range, allow-list where applicable.
  • Injection surfaces: raw/string-built SQL, NoSQL query objects from user input, OS command construction, template injection, unencoded output (XSS), path traversal on file/path params, SSRF on any URL the user can influence.
  • Deserialization of untrusted input; mass-assignment / over-binding of request bodies onto models.

Read the full file on GitHub · 80 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 · 80 lines · 86 tokens per session scan A 9d9dc0ec4157

Subscribe to this mod's changes

security-reviewer is an agent published in the GitHub repository wei6bin/skills (2 stars, last pushed 11d ago), licensed MIT. It adds 86 tokens to every session and 1,148 once invoked, about $0.0004 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-31.