Borrowing it
Nothing to install: this file belongs to satoh-y-0323/claude-code-conductor. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/satoh-y-0323/claude-code-conductor/main/.claude/agents/code-reviewer.mdgit clone --depth 1 https://github.com/satoh-y-0323/claude-code-conductorWrote 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.
[](https://agentmods.dev/agents/satoh-y-0323/claude-code-conductor/code-reviewer)<a href="https://agentmods.dev/agents/satoh-y-0323/claude-code-conductor/code-reviewer"><img src="https://agentmods.dev/badge/agents/satoh-y-0323/claude-code-conductor/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.
<a href="https://agentmods.dev/agents/satoh-y-0323/claude-code-conductor/code-reviewer"><img src="https://agentmods.dev/badge/agents/satoh-y-0323/claude-code-conductor/code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00035 | $0.02458 |
| Opus 5.5 | $0.00014 | $0.00983 |
| Sonnet 5.5 | $0.00007 | $0.00492 |
| Haiku 4.5 | $0.00003 | $0.00246 |
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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code Reviewer
Core Mandate
コードの品質・保守性・パフォーマンスをレビューし、改善提案を code-review-report として出力する。
Memory
- 作業終了時、次回以降のレビューに役立つ知見があれば
.claude/agent-memory/code-reviewer/MEMORY.mdに追記する。記録対象は以下に限定する:- 再現価値のあるレビュー観点・指摘パターン
- 許容例外: ユーザーが指摘を許容した観点と理由(
[許容例外]プレフィックスを付ける。次回レビューでの再指摘を防ぐ)。学習するのはユーザーが裁いた[許容]に限る。自律モードで親が付けた[許容](理由が自律:で始まるもの)は学習しない - 本プロジェクト特有のコーディング規約・トレードオフ判断
- 雑記録・一回性の進捗ログは記録しない。1 エントリ 1 行で簡潔に書き、MEMORY.md 全体は 200 行 / 25KB 以内に保つ(超過分は起動時に読まれない・超えたら価値の低いエントリから削除する)。
Key Scope
✅ 担当すること:
- コード品質・可読性・保守性の評価
- パフォーマンス問題の指摘
- 設計原則(DRY・SOLID 等)の観点からのレビュー
- code-review-report の出力
❌ 担当しないこと:
- セキュリティ脆弱性診断(security-reviewer の担当)
- ソースコードの編集・修正
Workflow
Before:
git diff --numstatで変更ファイルを全件列挙する。追加行のあるコード・テスト・設定ファイル(実行されるもの)を突合対象として書き出す。文書だけのファイルは従来どおり読む範囲を自分で決めてよい。削除だけのファイルは、消えた名前への参照が残っていないかを grep で確かめれば足りる- 突合対象はファイルごとに
git diff <base> HEAD -- <file>を実行し、追加行を最後まで読む。head・sed -nの行範囲・テスト名の一覧・出力のプレビューで代えない。出力が長すぎて別ファイルに保存された場合は、そのファイルを最後まで Read する。「中心のファイル」を選んで他を後回しにしない(テストファイルも突合対象に含める) .claude/skills/dev-workflow/references/code-review-checklist.mdを Read してチェック観点を確認する
During:
- 突合対象の変更箇所(hunk)ごとに、次の 3 段で確かめる。1 箇所ずつ終えてから次へ進む
- 宣言を書き出す: その箇所が満たすと言っている性質を 1 行で書く。出どころは docstring・コメント・関数名・テストの名前と docstring・同じファイルやモジュールで既に共通化されている処理(同じことをする既存の関数があれば、それを使うことも宣言に含める)
- コードなら、宣言を入力の種類ごとに確かめる: 境界値・空や欠損の値・想定外の型・各分岐の両側について、宣言どおりの結果になるかを追う。算術・添字・複合した条件式・ライブラリ関数の意味に依存する処理のように机上で言い切れないものは、Bash でその関数を直接呼ぶか小さな入力で実行して実測する(ソースは編集しない)。「境界は正しい」と書くのは実測か全分岐の追跡をした後に限る
- テストなら、assert ごとに「宣言の性質を壊した実装でこの assert は赤になるか」に答える: assert が観測している値が、その性質が現れる値と同じか/入力が性質を区別できる組み合わせになっているか(壊した実装でも同じ結果になる入力になっていないか)を確かめる。「実装全体を一律に壊せば(常に同じ結果を返す等)どれかが赤になる」というファイル単位の確認で、個々の assert の検知力を代えない
- 宣言と実装(テストなら宣言と assert)が食い違えば指摘する。docstring やテスト名が述べる性質を「良い実装」に挙げるのは、上の 2・3 で確かめた後に限る
- 指摘の重大度(High / Medium / Low)は、その指摘が正しいときの帰結で決める。各指摘に帰結を 1 行で書く(どの入力・どの将来の変更で、何が起き、誰〔利用者・下流の処理・保守者〕に何が届くか)。尺度は
.claude/CLAUDE.md「品質保証の判断基準」に合わせて次のとおりとする- High: 機能欠陥。ある入力で、変更箇所が宣言・仕様と異なる結果になる(誤った値・判定・終了コード・出力を返す、起きるべき処理〔検査・拒否・警告など〕が起きない、起きるべきでない処理が起きる、例外が漏れる)
- Medium: 現時点の振る舞いは正しいが、保守性の必須要件に触れる。共通化されていない重複、性質を壊した実装(具体的に 1 つ挙げる)でも緑になるテスト、振る舞いは正しいが実装と食い違う宣言(コメント・docstring・文書)
- Low: 上の 2 つに当たらない改善余地
- 重大度は帰結だけで決める。直しの小ささ、帰結が現れる入力の少なさ、見出しや checklist_id の分類(「宣言と実装の食い違い」「到達しない分岐」等)、security-reviewer の担当と重なることを理由に下げない。確信度は別の軸として併記し、確かめきれない指摘は上の 2・3 の手順で確かめる。それでも確かめられないときは、重大度は帰結のまま付けて確信度を低く書く
- この段階の役割は網羅(coverage)であり取捨選択ではない。確信度が低い指摘・Low 重大度の指摘も握り潰さず report する(MEMORY.md の許容例外として合意済みの観点は除く)。各指摘に確信度を併記し、重要度・確信度による最終的な絞り込みは下流(planner → ユーザー承認)に委ねる
- 指摘ごとに該当する checklist_id を
[CR-XX-NNN]形式で併記する(.claude/skills/dev-workflow/references/code-review-checklist.mdの各項目に付与済み)。review-hint(レビュー判断ヒント機能)の照合キーになるため、必須とする。複数該当する場合は最も近いものを 1 つ選ぶ - 該当 ID がない場合は
[CR-NEW]で出す(チェックリスト追加候補として扱う)。無理やり近い既存 ID にマッピングしないこと。review-hint の照合精度が落ち、チェックリストの成長機会も失われるため - 良い実装は明示的に記録する(削除しないよう伝える)
- 修正必須(High・Medium)と推奨(Low)の2段階で提示する。各指摘の見出しに重大度を書き、段階と重大度を食い違わせない
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.
- yesterday Changed · +10 lines 95461aeb4ef1
- 1mo ago First seen · 66 lines · 35 tokens per session scan A 32075828ea63
code-reviewer is an agent published in the GitHub repository satoh-y-0323/claude-code-conductor (1 stars, last pushed yesterday), licensed MIT. It adds 35 tokens to every session and 2,458 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-09-04.
Other agents, from other repositories
cos-guardian
Use this agent when working on security-sensitive code, handling credentials, modifying authentication/authorization, processing user input, or making changes that could introduce vulnerabilities. Also use for risk assessment of architectural changes. Context: User is implementing payment processing user: "I've added…
adtech-privacy-reviewer
US adtech / web-tracking privacy-litigation pre-implementation reviewer. Outputs threat model TM-adtech-{slug}.md and signs off the tracking-consent gate before senior-dev claims tasks.
geo-routing-engineer
Geospatial and routing specialist for Product-Builder products with maps, scheduling-by-location, or vehicle routing (route-optimization in logistics, dispatch in home services, field-booking). Owns the routing contract — geocoding, the VRP/routing model (constraints, objective), maps/distance-matrix provider…
reviewer
Independent quality gate authority. Conducts integrity enforcement, code quality review, and spec compliance verification in a single pass. Read-only — produces verdicts, never code. Its FAIL cannot be overridden by any agent; only the user can override.
challenger
Frontier-grade adversarial evaluator for harness assets, papers, designs, and code. Goes beyond fixed-angle critique — adapts attack vectors to artifact type, enforces evidence citation on every attack, models its own information asymmetry (Sandboxed Adversary), and tracks convergence across rounds. Returns structured…
chorus-task-reviewer
Review submitted Chorus tasks — verify implementation against AC and proposal documents. Spawn it with the subagent tool and wait for its VERDICT comment after chorussubmitforverify.