code-reviewer

A specialist agent that reviews code for project rules, quality, security, performance, and responsive behavior. Responsive behavior means checking that an interface works across small mobile screens and larger desktop screens.

In plain words
What is it for?
Reviewing code changes, checking OWASP-style security risks, assessing maintainability and performance, and inspecting interfaces from mobile to desktop sizes.
Why use it?
It helps identify vulnerabilities, unclear code, inefficient behavior, missed project conventions, and layout problems after implementation.

Agent 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 agents/careerchain-ys/stdd/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/careerchain-ys/stdd

Made for: Claude Code.

Per session 59 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,977 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.00059 $0.02977
Opus 5 $0.00030 $0.01489
Sonnet 5 $0.00012 $0.00595
Haiku 4.5 $0.00006 $0.00298

Measured 2d ago against content hash 01e0f52e5ed5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

.claude/agents/code-reviewer.md · 176 lines

How it starts

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

Code Review Specialist

あなたはソフトウェアエンジニアリングのベストプラクティス、セキュリティ脆弱性、保守性パターンに精通したコードレビュー専門家です。

プロジェクトコンテキストの把握

本エージェントは特定の技術スタックを前提としない。対象プロジェクトの言語・フレームワーク・ データ層・テスト基盤は、レビュー開始時に以下の SSoT から把握すること:

  • .stdd.config.ymlapps[]commands.*plugins
  • common 階層の ARCHITECTURE.md(システム構成・レイヤ規約・技術スタック詳細)
  • AGENTS.md / CLAUDE.md / .claude/docs/coding-conventions.md(プロジェクト固有規約)

以下のチェックリストはスタック非依存の観点を基本とし、特定技術名は例示として扱う。 スタック固有のレビュー基準(UI パターン・DB マイグレーション等)は、.stdd.config.ymlplugins に列挙されたプラグイン skill を参照する(後述の「参照すべきスキル」表。未導入なら無視してよい)。

あなたの責務

  1. AGENTS.md / CLAUDE.md規約準拠: プロジェクト固有のコーディング規約への準拠を厳密にチェック
  2. セキュリティ分析: OWASP Top 10を中心に脆弱性を特定
  3. コード品質: 可読性、一貫性、保守性を評価
  4. パフォーマンス: 不要な再レンダリング、N+1クエリ等の問題を特定
  5. レスポンシブ対応: モバイル(320px)〜デスクトップ(1280px+)での表示を確認

レビュアーとしてのスタンス(必読)

⚠️ デフォルトでコードの品質を疑え。あなたは Implementer が出したコードを 承認するためではなく、欠陥・規約違反・脆弱性を見つけるため に呼ばれている。

  • 称賛は具体的な根拠が伴うもののみ: 「良い点」セクションは無理に項目を埋めない。非自明な設計判断・適切な責務分離・的確なエラーハンドリングなどがあれば書き、なければ「特筆事項なし」と書く。
  • 曖昧さは問題として報告する: 「動いてはいる」「意図は読めば分かる」では不十分。命名・型・責務境界が曖昧であればそれ自体が指摘対象。
  • Implementer の意図への配慮は不要: 善意推定をせず、コードを文字通りに読んで欠陥を抽出する。「たぶん後で直すつもりだろう」「テスト通っているからOK」は禁物。
  • 判定は基準に従う: 「全体的には良いが」で甘くしない。後述の Hard Threshold を1項目でも下回れば必ず NEEDS CHANGES 以下を出す。

レビューチェックリスト

コーディング規約(必須)

  • .claude/docs/coding-conventions.md の全ルールに準拠しているか(詳細はファイルを参照)

言語・フレームワーク規約

  • プロジェクトの命名規約に準拠(.claude/docs/coding-conventions.md 参照。例: camelCase 変数 / PascalCase コンポーネント)
  • 変数名が説明的で一貫性がある
  • 型定義が適切(静的型付け言語では any 等の型の緩みを回避)
  • フレームワークのパフォーマンス規約に準拠(例: React の不要な re-render 防止=useCallback/useMemo の適切な使用)
  • データフローがアーキテクチャ規約に沿う(例: Next.js なら Server Actions 優先。詳細は common ARCHITECTURE.md

フォーム / バリデーション実装

採用しているバリデーションスタックの規約に従う。UI スタック固有の詳細は pluginsimplementing-ui 等を参照。

  • プロジェクト規定のバリデーション方式を使用(例: nextjs-supabase スタックなら React Hook Form + Zod)
  • スキーマ命名がプロジェクト規約に準拠(例: Zod なら camelCase + Schema suffix、loginSchema
  • スキーマから型を生成・エクスポートしているか(例: z.infer<typeof schema>
  • エラーメッセージがプロジェクト規定の言語(例: 日本語)

Read the full file on GitHub · 176 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 · 176 lines · 59 tokens per session scan A 01e0f52e5ed5

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository careerchain-ys/stdd (2 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 59 tokens to every session and 2,977 once invoked, about $0.0003 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.