claude-code-power-config: Agent for Claude Code

.claude/agents/security-reviewer.md

security-reviewer is an agent for Claude Code from AlexisBalayre/claude-code-power-config. It costs 75 tokens per session (597 once invoked), scanned A, original, MIT.

A security review procedure for code that handles authentication, APIs, WebSockets, forms, secrets, or other outside input. It checks common web security risks and the project's security model.

In plain words
What is it for?
Use it to review routes and middleware, validate inputs, check database access and WebSocket sessions, inspect secret handling, and look for common OWASP Top 10 issues.
Why use it?
It can expose injection bugs, missing access checks, unsafe input handling, and accidental disclosure of sensitive data before changes are committed.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is AlexisBalayre/claude-code-power-config's own configuration. It tells Claude Code how to work on claude-code-power-config 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-power-config configures →

Reuse

Borrowing it

Nothing to install: this file belongs to AlexisBalayre/claude-code-power-config. 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/AlexisBalayre/claude-code-power-config/main/.claude/agents/security-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/AlexisBalayre/claude-code-power-config

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/alexisbalayre/claude-code-power-config/security-reviewer/github.svg)](https://agentmods.dev/agents/alexisbalayre/claude-code-power-config/security-reviewer)
Your own site
<a href="https://agentmods.dev/agents/alexisbalayre/claude-code-power-config/security-reviewer"><img src="https://agentmods.dev/badge/agents/alexisbalayre/claude-code-power-config/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/alexisbalayre/claude-code-power-config/security-reviewer"><img src="https://agentmods.dev/badge/agents/alexisbalayre/claude-code-power-config/security-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 597 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.00075 $0.00597
Opus 5 $0.00037 $0.00298
Sonnet 5 $0.00015 $0.00119
Haiku 4.5 $0.00007 $0.00060

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

How it starts

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

Security Review Protocol

Review the specified files or recent changes for high-risk vulnerabilities. CRITICAL: Cross-reference all findings with @docs/explanation/security-model.md.

Core Review Areas

1. Injection & Input Validation

  • SQL Injection: Scrutinize raw sql template usage in Drizzle; ensure no un-sanitized string interpolation in .where() clauses.
  • XSS: Ensure React components aren't using dangerouslySetInnerHTML without explicit sanitization.
  • Validation: Verify EVERY endpoint has a corresponding Zod schema in src/schemas/. Check for unbounded query parameters (e.g., missing limit on list operations).

2. Broken Access Control (Auth/Authz)

  • Middleware: Verify requireAuth() or requireAdmin() is applied to all sensitive routes in src/routes/.
  • Layering: Flag any route that performs direct DB access skipping the Service/Repository layer.
  • WebSockets: Ensure server.on("upgrade", ...) handlers perform active session validation before upgrading.
  • gRPC: Verify createServerAuthMiddleware is wired for all internal service communication.

3. Sensitive Data Exposure & Secrets

  • Serialization: Ensure NO raw DB entities are returned in API responses. Every response must pass through a serializer.
  • Logging: Check for PII or raw error objects (stack traces) being passed to @acme/acme-logger.
  • Hardcoding: Grep for apiKey, token, secret, or password assignments. Verify .env values are only accessed via src/config/env.ts.

4. Logic & Concurrency

  • Race Conditions: Ensure Redis operations for session slots use Lua scripts (RESERVE_SLOT_SCRIPT) rather than GET + SET patterns.
  • Rate Limiting: Verify rate-limiting middleware is applied to login, registration, and expensive endpoints (e.g., bulk message dispatch, provider fan-out).

Reporting Format

For each finding, provide:

  • Path & Line: path/to/file.ts:L123
  • Severity: [Critical | High | Medium | Low]
  • Vulnerability Type: (e.g., OWASP A01:2021-Broken Access Control)
  • Description: Clear explanation of the risk.
  • Fix Suggestion: Code snippet or architectural change to resolve the issue.

Read the full file on GitHub · 47 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. 9d ago First seen · 47 lines · 75 tokens per session scan A f950fca7e8d1

Subscribe to this mod's changes

security-reviewer is an agent published in the GitHub repository AlexisBalayre/claude-code-power-config (2 stars, last pushed 28d ago), licensed MIT. It adds 75 tokens to every session and 597 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.

Related

Other agents, from other repositories

code-reviewer

A code-review agent that checks whether changes follow their specification and assesses code quality, security, maintainability, and performance. It reports findings with severity levels and file-and-line references.

sangrokjung/claude-forge · 96 tokens

planner

An agent that creates plans for complex coding, architecture, or multi-step refactoring work. It interviews the user, examines the codebase, and proposes a short plan with acceptance criteria, without implementing the changes.

sangrokjung/claude-forge · 112 tokens

architect

A software-architecture analysis agent that examines how a codebase is structured and records design decisions. C4 diagrams show a system at several levels, while ADRs are short records explaining why a design choice was made.

sangrokjung/claude-forge · 112 tokens

escalation-fixer

Last-resort fixer in the debugging escalation chain (build-error-resolver -> systematic-debugger -> rca-debugger -> escalation-fixer), invoked when narrower-scoped fixes have failed: most commonly when verify-loop retries and build-error-resolver could not resolve a build/type error, or when rca-debugger's long-term…

sangrokjung/claude-forge · 118 tokens

tdd-guide

An agent that guides test-driven development, or TDD: write a failing test, implement the smallest change that passes it, then clean up the code. It covers unit, integration, and end-to-end tests and examines edge cases.

sangrokjung/claude-forge · 110 tokens

adversarial-reviewer

Independent read-only checker for behavioural changes. Runs in a fresh context that did not author the change, reproduces the claim against the goal, spec, diff and execution evidence, and returns exactly one verdict — APPROVE, REQUESTCHANGES or UNVERIFIED — as a forge.review/v1 envelope. MUST BE USED before claiming…

sangrokjung/claude-forge · 102 tokens