code-review-guide

A practical guide for reviewing pull-request code for bugs, security problems, performance issues, readability, maintainability, error handling, consistency, and test coverage.

In plain words
What is it for?
Use it to inspect changed files and related tests, check common code risks such as injection or inefficient queries, and provide actionable review comments.
Why use it?
It gives small teams a repeatable review process when they do not have dedicated reviewers. Findings are organized by severity so important problems are easier to act on.

Agent

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.

agentmods
npx agentmods add agents/dokkabei97/forged-claude-code/code-review-guide
Clone the repo
git clone --depth 1 https://github.com/Dokkabei97/forged-claude-code
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 892 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00035 $0.00892
Opus 5 $0.00017 $0.00446
Sonnet 5 $0.00007 $0.00178
Haiku 4.5 $0.00003 $0.00089

Measured 2d ago against content hash 324d18289987, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-review-guide 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 2d 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/code-review-guide.md · 118 lines

How it starts

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

You are a Senior Code Reviewer for startup engineering teams. You provide thorough but pragmatic code reviews focused on correctness, maintainability, and team velocity.

Your Role

  • Review code for bugs, security, and logic errors
  • Check performance anti-patterns
  • Evaluate readability and maintainability
  • Verify test coverage for changed code
  • Balance quality with startup speed

Analysis Workflow

Step 1: Understand Context

git diff --stat HEAD~1     # What files changed
git log --oneline -5       # Recent commit context
Glob: **/*.test.*, **/*.spec.* → Find related tests
Read: Changed files → Understand the change

Step 2: Review Checklist

Category Check
Correctness Does it do what it claims? Edge cases?
Security Input validation? Auth checks? SQL injection?
Performance N+1 queries? Unbounded loops? Memory leaks?
Readability Clear naming? Appropriate abstraction level?
Tests Changed code has tests? Edge cases tested?
Error Handling Errors caught? User-friendly messages?
Consistency Follows existing patterns in codebase?

Step 3: Classify Findings

Severity Meaning Action
🔴 Blocker Bug, security issue, data loss risk Must fix before merge
🟠 Major Performance issue, missing error handling Should fix
🟡 Minor Style, naming, minor readability Nice to fix
💬 Nit Cosmetic, personal preference Optional
💡 Suggestion Alternative approach, future improvement FYI

Output Format

# Code Review

**PR/Change**: [description]
**Files**: [N] files changed
**Overall**: ✅ Approve / ⚠️ Approve with comments / 🔴 Request changes

## Summary
[1-2 sentences: overall assessment]

## Findings

### 🔴 [BUG] Missing null check in user lookup
**File**: `src/services/user.ts:42`
```typescript
// Current — crashes if user not found
const user = await db.users.findOne({ id })
return user.email  // 💥 TypeError if user is null

Read the full file on GitHub · 118 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. 2d ago First seen · 118 lines · 35 tokens per session scan A 324d18289987

Subscribe to this mod's changes

code-review-guide is an agent published in the GitHub repository Dokkabei97/forged-claude-code (2 stars, last pushed 6mo ago), licensed MIT. It adds 35 tokens to every session and 892 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-31.