code-review

code-review is a command for Claude Code from TheSmokeDev/taskchad-os. It costs 12 tokens per session (608 once invoked), scanned A, original, MIT.

A pre-commit technical review process that examines changed and new files for readability, logic errors, security problems, and consistency with the project’s documentation and standards.

In plain words
What is it for?
Use it before committing to review Git changes, new files, error handling, race conditions, SQL injection, cross-site scripting, and other quality or security risks.
Why use it?
It catches bugs and unsafe code before changes are committed, while requiring the reviewer to understand the surrounding code first.

Command for Claude Code

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 commands/thesmokedev/taskchad-os/code-review
Clone the repo
git clone --depth 1 https://github.com/TheSmokeDev/taskchad-os

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-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/thesmokedev/taskchad-os/code-review.svg)](https://agentmods.dev/commands/thesmokedev/taskchad-os/code-review)
Your own site
<a href="https://agentmods.dev/commands/thesmokedev/taskchad-os/code-review"><img src="https://agentmods.dev/badge/commands/thesmokedev/taskchad-os/code-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 608 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.00012 $0.00608
Opus 5 $0.00006 $0.00304
Sonnet 5 $0.00002 $0.00122
Haiku 4.5 $0.00001 $0.00061

Measured 4d ago against content hash 1cade728c78e, 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 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 4d 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/commands/validation/code-review.md · 113 lines

How it starts

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

Perform technical code review on recently changed files.

Core Principles

Review Philosophy:

  • Simplicity is the ultimate sophistication - every line should justify its existence
  • Code is read far more often than it's written - optimize for readability
  • The best code is often the code you don't write
  • Elegance emerges from clarity of intent and economy of expression

What to Review

Start by gathering codebase context to understand the codebase standards and patterns.

Start by examining:

  • CLAUDE.md
  • README.md
  • Key files in the /core module
  • Documented standards in the /docs directory

After you have a good understanding

Run these commands:

git status
git diff HEAD
git diff --stat HEAD

Then check the list of new files:

git ls-files --others --exclude-standard

Read each new file in its entirety. Read each changed file in its entirety (not just the diff) to understand full context.

For each changed file or new file, analyze for:

  1. Logic Errors

    • Off-by-one errors
    • Incorrect conditionals
    • Missing error handling
    • Race conditions
  2. Security Issues

    • SQL injection vulnerabilities
    • XSS vulnerabilities
    • Insecure data handling
    • Exposed secrets or API keys
  3. Performance Problems

    • N+1 queries
    • Inefficient algorithms
    • Memory leaks
    • Unnecessary computations
  4. Code Quality

    • Violations of DRY principle
    • Overly complex functions
    • Poor naming
    • Missing type hints/annotations
  5. Adherence to Codebase Standards and Existing Patterns

    • Adherence to standards documented in the /docs directory
    • Linting, typing, and formatting standards
    • Logging standards
    • Testing standards

Verify Issues Are Real

  • Run specific tests for issues found
  • Confirm type errors are legitimate
  • Validate security concerns with context

Output Format

Save a new file to .agents/code-reviews/[appropriate-name].md

Stats:

  • Files Modified: 0
  • Files Added: 0
  • Files Deleted: 0
  • New lines: 0
  • Deleted lines: 0

Read the full file on GitHub · 113 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. 4d ago First seen · 113 lines · 12 tokens per session scan A 1cade728c78e

Subscribe to this mod's changes

code-review is a command published in the GitHub repository TheSmokeDev/taskchad-os (23 stars, last pushed 12d ago), licensed MIT. It adds 12 tokens to every session and 608 once invoked, about $0.0001 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.