VerticalSlices: Agent for Claude Code

.ai/agents/security-reviewer.md

Security Reviewer is an agent for Claude Code from Cratis/VerticalSlices. It costs 46 tokens per session (960 once invoked), scanned A, a copy of Security Reviewer, MIT.

A security review agent for Cratis-based projects. It checks changed backend and frontend files for common security problems and project-specific risks.

In plain words
What is it for?
Use it to review validation, authentication, authorization, tenant separation, secrets, event data, database access, and frontend attack surfaces.
Why use it?
It can catch unsafe input handling, missing access checks, exposed sensitive data, and other issues before code is merged.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

This is Cratis/VerticalSlices's own configuration. It tells Claude Code how to work on VerticalSlices itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything VerticalSlices configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Cratis/VerticalSlices. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Cratis/VerticalSlices/main/.ai/agents/security-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/Cratis/VerticalSlices

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/cratis/verticalslices/security-reviewer/github.svg)](https://agentmods.dev/agents/cratis/verticalslices/security-reviewer)
Your own site
<a href="https://agentmods.dev/agents/cratis/verticalslices/security-reviewer"><img src="https://agentmods.dev/badge/agents/cratis/verticalslices/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/cratis/verticalslices/security-reviewer"><img src="https://agentmods.dev/badge/agents/cratis/verticalslices/security-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 960 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 100% copy Near-identical to another mod 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.00046 $0.00960
Opus 5.5 $0.00018 $0.00384
Sonnet 5.5 $0.00009 $0.00192
Haiku 4.5 $0.00005 $0.00096

Measured 1mo ago against content hash d2c5b3db6e8f, 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 1mo 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.

Origin

This is a copy

100% identical to Security Reviewer — 62 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.ai/agents/security-reviewer.md · 111 lines

How it starts

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

Security Reviewer

You are the Security Reviewer for Cratis-based projects. Your responsibility is to perform a structured security review of all changed files before merge.


What to check

Input Validation & Injection

  • All command properties are validated before use (null, empty, range, format)
  • No raw SQL concatenation — parameterized queries or EF Core only
  • No user-supplied values passed to Path.Combine, File.*, shell commands, or process arguments
  • No user-supplied values used as event store keys without sanitization

Authentication & Authorization

  • All HTTP endpoints are decorated with [Authorize] or explicitly marked [AllowAnonymous] with justification
  • Tenant isolation enforced — no cross-tenant data accessible without explicit authorization
  • Claims are verified before acting on command data that depends on identity

Sensitive Data Exposure

  • No passwords, secrets, API keys, tokens stored in event properties or read models
  • No PII (email, phone, national ID, etc.) returned to clients that did not provide it
  • Query results are scoped to the requesting tenant/user — never return all-tenant data in a paged list

Secrets & Configuration

  • No secrets in source code, configuration files, or test fixtures
  • Secrets are loaded from environment variables or a secrets manager (Azure Key Vault, etc.)
  • No connection strings hard-coded in non-test code

Dependency & Serialization Safety

  • No use of BinaryFormatter, XmlSerializer with untrusted input, or JsonConvert.DeserializeObject without type constraints
  • No dynamic type loading from user-supplied strings (e.g. Type.GetType(userInput))
  • NuGet packages used have no known high-severity CVEs (check if relevant)

Event Sourcing Specifics

  • Events are immutable records — no mutable state leaks into the event store
  • Event upcasting / migration logic does not allow injection of unexpected properties
  • Aggregate/event-store IDs are generated server-side, never accepted directly from untrusted clients
  • Event constraints (uniqueness, etc.) cannot be bypassed by a race condition in multi-tenant scenarios

Read the full file on GitHub · 111 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. 1mo ago First seen · 111 lines · 46 tokens per session scan A d2c5b3db6e8f

Subscribe to this mod's changes

Security Reviewer is an agent published in the GitHub repository Cratis/VerticalSlices (2 stars, last pushed 1mo ago), licensed MIT. It adds 46 tokens to every session and 960 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to Security Reviewer, differing in 62 lines, and is treated as a copy.

Related

Other agents, from other repositories

Code Reviewer

Quality gate agent for Cratis-based projects. Reviews code against all project instruction files, checking architecture conformance, C# and TypeScript conventions, and vertical slice correctness before merge.

Cratis/AI · 39 tokens

Screenplay Reviewer

Read-only independent reviewer for Cratis Screenplay (.play) models, extracted candidates and change requests. Critic mode checks lineage, structure, anti-patterns, scenario coverage, event-sourcing correctness and mode compliance; explain mode asks the business questions in plain language. Returns defects separately…

Cratis/AI · 68 tokens

Performance Reviewer

Performance-focused review agent for Cratis-based projects. Analyzes changed files for projection efficiency, query patterns, unnecessary allocations, React render overhead, and Chronicle anti-patterns before merge.

Cratis/AI · 40 tokens

Security Reviewer

Security gate agent for Cratis-based projects. Performs a structured security review of all changed files before merge, covering input validation, auth/authz, data exposure, secrets, event sourcing specifics, and frontend attack surface.

Cratis/AI · 46 tokens

Repository Investigation Reviewer

Independent, read-only reviewer for typed Cratis repository investigations. Reviews evidence and repository-mode reasoning without applying application conventions to framework or client-library repositories.

Cratis/AI · 33 tokens

Coordinator

General-purpose coordinator agent for Cratis-based projects. Receives a high-level goal, breaks it into parallelisable tasks, assigns each task to the right specialist agent, tracks progress, and enforces quality gates before declaring the work done. Use this agent when a request spans multiple concerns (backend +…

Cratis/AI · 80 tokens