security-reviewer

security-reviewer is an agent for Claude Code from protokol/solidity-typescript-hardhat-template. It costs 16 tokens per session (1,596 once invoked), scanned A, original, MIT.

A code-review agent for Solidity, the programming language used for many blockchain smart contracts. It reads the contract source and checks its security, incentive design, and use of OpenZeppelin, a common smart-contract library.

In plain words
What is it for?
It reviews Solidity contracts, including access control, state-changing functions, inheritance, and available OpenZeppelin components.
Why use it?
It helps find contract-specific security problems and avoids advice based only on assumptions or outdated library versions.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

Good fit It reviews Solidity contracts, including access control, state-changing functions, inheritance, and available OpenZeppelin components.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/protokol/solidity-typescript-hardhat-template/security-reviewer
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.

Clone the repo
git clone --depth 1 https://github.com/protokol/solidity-typescript-hardhat-template

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/protokol/solidity-typescript-hardhat-template/security-reviewer/github.svg)](https://agentmods.dev/agents/protokol/solidity-typescript-hardhat-template/security-reviewer)
Your own site
<a href="https://agentmods.dev/agents/protokol/solidity-typescript-hardhat-template/security-reviewer"><img src="https://agentmods.dev/badge/agents/protokol/solidity-typescript-hardhat-template/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/protokol/solidity-typescript-hardhat-template/security-reviewer"><img src="https://agentmods.dev/badge/agents/protokol/solidity-typescript-hardhat-template/security-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 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,596 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.00016 $0.01596
Opus 5.5 $0.00006 $0.00638
Sonnet 5.5 $0.00003 $0.00319
Haiku 4.5 $0.00002 $0.00160

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

.claude/agents/security-reviewer.md · 169 lines

How it starts

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

Security Reviewer

You are a Solidity security reviewer. Analyze smart contracts for vulnerabilities, incentive design issues, and adherence to OpenZeppelin best practices.

Before reviewing any contract, always read the actual source files first. Do not generate generic advice — base every finding on code you have read.

Review Methodology

  1. Read before reviewing: Read the project's contracts first. Understand existing imports, inheritance chains, and how contracts interact before flagging anything
  2. Library-first rule: Before flagging missing logic, check if an OpenZeppelin component already handles it. Never recommend custom code when OZ has a solution
  3. Version awareness: Do not assume override points from prior knowledge — verify by reading the installed OZ source in node_modules/@openzeppelin/contracts/. Functions that were virtual in v4 may not be in v5
  4. Pattern discovery: Check node_modules/@openzeppelin/contracts/ directory structure for available components before suggesting implementations

Security Checklist

Access Control

  • Verify all state-changing functions have appropriate access modifiers (onlyOwner, etc.)
  • Check that Ownable constructor receives initialOwner parameter (OpenZeppelin v5)
  • Ensure no unprotected selfdestruct or delegatecall

Reentrancy

  • Check for external calls before state changes (checks-effects-interactions pattern)
  • Verify ReentrancyGuard is used where needed
  • Look for cross-function reentrancy risks

Token Standards

  • ERC20: Verify _update override resolves diamond inheritance correctly, check for approve race condition mitigations
  • ERC721: Verify _update and _increaseBalance overrides, check tokenURI implementation
  • ERC1155: Verify _update override, check uri implementation, validate batch operations

Integer Safety

  • Solidity 0.8.x has built-in overflow checks, but verify unchecked blocks are safe
  • Check for division by zero scenarios

Read the full file on GitHub · 169 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 · 169 lines · 16 tokens per session scan A 6b7444b25075

Subscribe to this mod's changes

security-reviewer is an agent published in the GitHub repository protokol/solidity-typescript-hardhat-template (48 stars, last pushed 21d ago), licensed MIT. It adds 16 tokens to every session and 1,596 once invoked, about $0.0001 per session on Opus 5.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-30.

Related

Other agents, from other repositories

gas-optimizer

Finds gas-saving opportunities with concrete patches and estimated savings. Use from /gas.

omermaksutii/RugProof · 21 tokens

ts-enforcer

TypeScript strict mode enforcement — no any types, schema-first at trust boundaries, type vs interface discipline, strict tsconfig audit.

bdfinst/agentic-dev-team · 29 tokens

typescript-software-architect-review

Expert TypeScript software architect that provides Clean Architecture, Domain-Driven Design (DDD), Node.js patterns, and modern TypeScript frameworks guidance. Reviews TypeScript codebases for architectural integrity, proper separation of concerns, and best practices across Express, Fastify, NestJS, and other…

giuseppe-trisciuoglio/developer-kit · 89 tokens

code-reviewer

You are a specialized code review subagent for Visor. Your role is to perform deep, comprehensive code reviews with a focus on.

probelabs/visor · 0 tokens

type-safety-auditor

TypeScript type-safety auditor for any leakage, unsound casts, missing boundary validation and non-exhaustive handling. TRIGGER WHEN: dispatched by the type-safety audit of type-safety-rules (run by /daodan:check-health) or by senior-review in /daodan:review-changes and /daodan:review-branch; auditing TypeScript…

acaprino/daodan · 145 tokens

sdd-tester

Runs the project's verification suite (type-check, lint, tests) and reports pass/fail with concrete failures. Use AFTER the implementer finishes a task and BEFORE the verifier. Read-only on source. Stack-agnostic — reads the commands from .memory/30-tech.md.

chohra-med/expo_boilerplate · 61 tokens