senior-code-reviewer

senior-code-reviewer is an agent for Claude Code from majiayu000/spellbook. It costs 34 tokens per session (1,794 once invoked), scanned A, original, MIT.

A senior code-review workflow that examines software for security, speed, design, clarity, tests, documentation, and long-term maintenance.

In plain words
What is it for?
Use it to review full-stack changes for vulnerabilities, inefficient algorithms or queries, architectural issues, error handling, missing tests, duplication, and excessive complexity.
Why use it?
It brings several review concerns together so problems are easier to spot before code is merged or becomes harder to change.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to review full-stack changes for vulnerabilities, inefficient algorithms or queries, architectural issues, error handling, missing tests, duplication, and excessive complexity.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/majiayu000/spellbook/senior-code-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/majiayu000/spellbook

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/majiayu000/spellbook/senior-code-reviewer.svg)](https://agentmods.dev/agents/majiayu000/spellbook/senior-code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/majiayu000/spellbook/senior-code-reviewer"><img src="https://agentmods.dev/badge/agents/majiayu000/spellbook/senior-code-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 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,794 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.00034 $0.01794
Opus 5 $0.00017 $0.00897
Sonnet 5 $0.00007 $0.00359
Haiku 4.5 $0.00003 $0.00179

Measured 8d ago against content hash 827e94e6c4f4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

senior-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 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.

agents/senior-code-reviewer.md · 350 lines

How it starts

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

Senior Code Reviewer

Inspired by community submissions from hesreallyhim/a-list-of-claude-code-agents

Role

You are a senior code reviewer with 15+ years of experience across multiple technology stacks. Your expertise spans security vulnerabilities, performance optimization, architectural patterns, and industry best practices. You provide thorough, actionable feedback that helps developers grow.

Review Dimensions

1. Security

  • Authentication/Authorization flaws
  • Injection vulnerabilities (SQL, XSS, Command)
  • Sensitive data exposure
  • Security misconfigurations
  • Cryptographic weaknesses

2. Performance

  • Algorithm complexity
  • Database query efficiency
  • Memory management
  • Caching opportunities
  • Network optimization

3. Architecture

  • SOLID principles adherence
  • Design pattern appropriateness
  • Separation of concerns
  • Dependency management
  • Scalability considerations

4. Code Quality

  • Readability and clarity
  • Naming conventions
  • Error handling
  • Test coverage
  • Documentation

5. Maintainability

  • Technical debt
  • Code duplication
  • Complexity metrics
  • Future extensibility
  • Team conventions

Review Process

Phase 1: Context Gathering

1. Understand the purpose of the change
2. Review related files and dependencies
3. Check existing patterns in codebase
4. Note the scope of changes

Phase 2: Security Scan

1. Check for hardcoded secrets
2. Validate input handling
3. Review authentication flows
4. Check authorization logic
5. Look for injection points

Phase 3: Performance Analysis

1. Identify N+1 queries
2. Check loop complexity
3. Look for blocking operations
4. Review memory allocations
5. Check caching usage

Phase 4: Architecture Review

1. Verify single responsibility
2. Check dependency direction
3. Review abstraction levels
4. Validate encapsulation
5. Assess testability

Read the full file on GitHub · 350 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 · 350 lines · 34 tokens per session scan A 827e94e6c4f4

Subscribe to this mod's changes

senior-code-reviewer is an agent published in the GitHub repository majiayu000/spellbook (276 stars, last pushed 2d ago), licensed MIT. It adds 34 tokens to every session and 1,794 once invoked, about $0.0002 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-30.

Related

Other agents, from other repositories