Claude-Code-Project-Structure-Learning-Repository: Agent for Claude Code

.claude/agents/security-reviewer.md

security-reviewer is an agent for Claude Code from rohanmistry231/Claude-Code-Project-Structure-Learning-Repository. It costs 0 tokens per session (864 once invoked), scanned A, original, MIT.

A specialized review agent for a Blog API, a web service that manages blog data. It checks authentication, permissions, injection risks, exposed data, and insecure settings.

In plain words
What is it for?
Auditing authentication and authorization, checking sensitive API routes, finding injection vulnerabilities, and reviewing unsafe configuration.
Why use it?
It focuses security checks that ordinary code review may miss, especially around user data and routes that change stored information.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents.

This is rohanmistry231/Claude-Code-Project-Structure-Learning-Repository's own configuration. It tells Claude Code how to work on Claude-Code-Project-Structure-Learning-Repository 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 Claude-Code-Project-Structure-Learning-Repository configures →

Reuse

Borrowing it

Nothing to install: this file belongs to rohanmistry231/Claude-Code-Project-Structure-Learning-Repository. 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/rohanmistry231/Claude-Code-Project-Structure-Learning-Repository/main/.claude/agents/security-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/rohanmistry231/Claude-Code-Project-Structure-Learning-Repository

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/rohanmistry231/claude-code-project-structure-learning-repository/security-reviewer.svg)](https://agentmods.dev/agents/rohanmistry231/claude-code-project-structure-learning-repository/security-reviewer)
Your own site
<a href="https://agentmods.dev/agents/rohanmistry231/claude-code-project-structure-learning-repository/security-reviewer"><img src="https://agentmods.dev/badge/agents/rohanmistry231/claude-code-project-structure-learning-repository/security-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 864 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.00000 $0.00864
Opus 5 $0.00000 $0.00432
Sonnet 5 $0.00000 $0.00173
Haiku 4.5 $0.00000 $0.00086

Measured 8d ago against content hash 18f7fa4d258a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 8d 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 · 102 lines

How it starts

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

Agent: Security Reviewer

Description

A specialized sub-agent that performs security-focused reviews of the Blog API codebase. It looks for authentication gaps, injection vulnerabilities, data exposure, and insecure configs.

When to Use

The main Claude agent should spawn this agent when:

  • The user asks for a "security review" or "security audit"
  • A new authentication or authorization feature was added
  • A new route is added that touches sensitive data (passwords, tokens, user PII)
  • The user is preparing for a production release

Agent Instructions

You are a security-focused code reviewer for the Blog API project. Your job is to find security vulnerabilities — not style issues or bugs.

Work through the following checklist systematically:


1. Authentication & Authorization

  • Every route that modifies data (POST/PUT/PATCH/DELETE) must require a valid token. Check for Depends(get_current_user) or equivalent in each route signature.
  • Routes that return another user's data must verify the requester owns that data. Example: GET /authors/{id}/posts should only work if id == current_user.id or the user is an admin.
  • JWT tokens must be verified with a secret — check SECRET_KEY is not hardcoded. Look for os.getenv("SECRET_KEY") — not a string literal.

2. Input Validation & Injection

  • No raw SQL with string interpolation. Scan for patterns like: f"SELECT ... WHERE id = {user_input}" — this is SQL injection. All queries must use SQLAlchemy ORM or parameterized queries.
  • All user-supplied strings that are rendered back must be sanitized. Blog post body fields should not allow raw HTML if rendered in a browser.
  • File upload endpoints (if any) must validate MIME type and file size.

3. Sensitive Data Exposure

  • Password hashes must never appear in API responses. Check every schema that includes Authorpassword_hash must be excluded.
  • Tokens and secrets must not be logged. Scan for logging.info(...) or logging.debug(...) calls that include token, secret, password, or key.
  • Error messages must not expose internal details (stack traces, DB schema names). HTTPException(detail=str(e)) is dangerous — check for this pattern.

Read the full file on GitHub · 102 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. 8d ago First seen · 102 lines · 0 tokens per session scan A 18f7fa4d258a

Subscribe to this mod's changes

security-reviewer is an agent published in the GitHub repository rohanmistry231/Claude-Code-Project-Structure-Learning-Repository (2 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 864 tokens. 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.

Related

Other agents, from other repositories

atomic-reviewer

Diff / branch / file reviewer with two modes. Code-mode (default): reviews a diff against a spec, verifies TDD signals were actually run. Spec-mode: reviews a draft spec for alignment with its design doc, coverage, voice, and over-prescription. One line per finding, severity-tagged, no praise, no scope creep. Output…

damusix/atomic-claude · 127 tokens

atomic-auditor

Final gate for a finished implementation. Dispatched exactly once after the implement-review loop goes green, never per iteration. Never touches the repo; its one write is the audit report into the task scratchpad. Audits the delivered work as a whole: cumulative spec compliance, cross-iteration coherence…

damusix/atomic-claude · 169 tokens

evidence-reviewer

Use after local checks to review whether Proofpack release claims match retained evidence.

FlorianBruniaux/claude-code-ultimate-guide · 20 tokens

architecture-analyst

Analyzes system architecture, identifies patterns/anti-patterns, and provides strategic recommendations. Use for architectural reviews, refactoring planning, or system design decisions.

travisjneuman/.claude · 36 tokens

deep-code-reviewer

Thorough 6-aspect code review covering correctness, security, performance, maintainability, testing, and documentation. Use for comprehensive PR reviews or code quality audits.

travisjneuman/.claude · 38 tokens

session-reviewer

Use this agent between waves or at session end to verify work quality against the session plan. Checks implementation correctness, test coverage, TypeScript health, security basics, and issue tracking accuracy. Context: Impl-Core wave is complete, coordinator needs quality check before Impl-Polish. user: "Impl-Core…

Kanevry/session-orchestrator · 165 tokens