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.
curl -O https://raw.githubusercontent.com/rohanmistry231/Claude-Code-Project-Structure-Learning-Repository/main/.claude/agents/security-reviewer.mdgit clone --depth 1 https://github.com/rohanmistry231/Claude-Code-Project-Structure-Learning-RepositoryWrote 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.
[](https://agentmods.dev/agents/rohanmistry231/claude-code-project-structure-learning-repository/security-reviewer)<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>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.
| Model | Per session | Once 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 |
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.
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}/postsshould only work ifid == current_user.idor the user is an admin. - JWT tokens must be verified with a secret — check
SECRET_KEYis not hardcoded. Look foros.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
bodyfields 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
Author—password_hashmust be excluded. - Tokens and secrets must not be logged.
Scan for
logging.info(...)orlogging.debug(...)calls that includetoken,secret,password, orkey. - Error messages must not expose internal details (stack traces, DB schema names).
HTTPException(detail=str(e))is dangerous — check for this pattern.
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.
- 8d ago First seen · 102 lines · 0 tokens per session scan A 18f7fa4d258a
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.
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…
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…
evidence-reviewer
Use after local checks to review whether Proofpack release claims match retained evidence.
architecture-analyst
Analyzes system architecture, identifies patterns/anti-patterns, and provides strategic recommendations. Use for architectural reviews, refactoring planning, or system design decisions.
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.
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…