claude-scaffold: Agent for Claude Code

.claude/agents/code-reviewer.md

code-reviewer is an agent for Claude Code from pyramidheadshark/claude-scaffold. It costs 17 tokens per session (620 once invoked), scanned A, original, MIT.

A code-review assistant that checks whether code follows the project's architecture, standards, tests, and security expectations, then reports findings by priority.

In plain words
What is it for?
Use it before merging a feature, after a major refactor, or when reviewing code from outside the usual project conventions.
Why use it?
It helps identify problems before code is merged, especially when a change crosses project layers or uses unfamiliar patterns.

Agent for Claude Code

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

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

Reuse

Borrowing it

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

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 code-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/pyramidheadshark/claude-scaffold/code-reviewer/github.svg)](https://agentmods.dev/agents/pyramidheadshark/claude-scaffold/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/pyramidheadshark/claude-scaffold/code-reviewer"><img src="https://agentmods.dev/badge/agents/pyramidheadshark/claude-scaffold/code-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 code-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/pyramidheadshark/claude-scaffold/code-reviewer"><img src="https://agentmods.dev/badge/agents/pyramidheadshark/claude-scaffold/code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 620 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.00017 $0.00620
Opus 5.5 $0.00007 $0.00248
Sonnet 5.5 $0.00003 $0.00124
Haiku 4.5 $0.00002 $0.00062

Measured 1mo ago against content hash 7fc8b6ab2eed, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-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/code-reviewer.md · 80 lines

How it starts

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

Agent: code-reviewer

Purpose

Reviews code for architectural consistency, adherence to project standards, and correctness. Produces a structured review report with prioritized findings.

When to Use

Before merging a feature branch. After a major refactor. When onboarding code written outside the standard patterns.

Review Checklist

Architecture

  • No business logic in api/ layer (routers only validate and route)
  • No framework imports (fastapi, sqlalchemy) in core/
  • Services use dependency injection, not direct instantiation
  • All external integrations are behind adapter interfaces in adapters/

Code Quality

  • All functions have type hints — mypy strict passes
  • No bare except: clauses — exceptions are specific
  • No TODO comments without linked issue numbers
  • No hardcoded strings where Enum or constant should be used
  • No commented-out code blocks

Tests

  • Every new public function in core/ has at least one unit test
  • New API endpoints have integration tests
  • No test adapts to fit existing code (tests define behaviour, code satisfies it)
  • Coverage did not decrease from baseline

Security

  • No secrets in code or logs
  • User inputs are validated via Pydantic before reaching service layer
  • SQL queries use parameterised statements (no f-string SQL)

ML-Specific (when applicable)

  • Model artifacts loaded via typed adapter, not raw pickle
  • ONNX preferred over pickle for model serialization
  • Large file paths come from config/env, not hardcoded

Output Format

## Code Review: {branch/PR name}

**Date**: {date}
**Reviewer**: Claude Code

### Critical (must fix before merge)
- [ ] {issue} — `{file}:{line}` — {explanation}

### Major (should fix before merge)
- [ ] {issue} — `{file}:{line}` — {explanation}

### Minor (fix in follow-up)
- [ ] {issue} — `{file}:{line}` — {explanation}

### Approved Patterns (worth noting)
- {good pattern observed}

Read the full file on GitHub · 80 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 · 80 lines · 17 tokens per session scan A 7fc8b6ab2eed

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository pyramidheadshark/claude-scaffold (4 stars, last pushed 5mo ago), licensed MIT. It adds 17 tokens to every session and 620 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-31.