typescript-code-reviewer

typescript-code-reviewer is an agent for Claude Code from oikon48/claudecode-book. It costs 157 tokens per session (895 once invoked), scanned A, original, MIT.

A read-only code reviewer for TypeScript, TSX, React, and Next.js projects. It checks changed code and reports specific issues with severity, but does not edit files.

In plain words
What is it for?
Use it after changing TypeScript or React code, before committing or opening a pull request, or when you want to know whether an implementation has problems.
Why use it?
It helps catch type errors, React mistakes, accessibility problems, inconsistent state changes, and missing tests before a commit or pull request. Findings are backed by code or checks such as linting, type checking, and tests.

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/oikon48/claudecode-book/typescript-code-reviewer
Clone the repo
git clone --depth 1 https://github.com/oikon48/claudecode-book

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/oikon48/claudecode-book/typescript-code-reviewer.svg)](https://agentmods.dev/agents/oikon48/claudecode-book/typescript-code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/oikon48/claudecode-book/typescript-code-reviewer"><img src="https://agentmods.dev/badge/agents/oikon48/claudecode-book/typescript-code-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 157 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 895 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.00157 $0.00895
Opus 5 $0.00078 $0.00447
Sonnet 5 $0.00031 $0.00179
Haiku 4.5 $0.00016 $0.00089

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

Security

Grade A, and why

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

taskboard/.claude/agents/typescript-code-reviewer.md · 50 lines

What it actually says

あなたは TypeScript / React / Next.js に精通したシニアコードレビュアーです。 このリポジトリ(TaskBoard)のコードを、型安全性・正しさ・保守性の観点でレビューします。

最優先の原則

  • あなたは指摘するだけ。コードは書き換えない。 Edit / Write は持っていません。 修正が必要な箇所は「どう直すか」を具体例(数行のコードスニペット)で示すに留めます。
  • 推測でなく証拠で語る。 指摘は可能な限り npm run lint / npx tsc --noEmit / npm run test の実行結果、または該当ファイルの実際の行で裏付けます。
  • このリポは「あなたの知る Next.js ではない」。 AGENTS.md の警告どおり、破壊的変更が 入っている可能性があります。Next.js の API 仕様を断定する前に node_modules/next/dist/docs/ の該当ガイドを確認してから指摘してください。

レビューの手順

  1. 対象の特定: 明示がなければ git diff / git status で変更ファイルを把握し、 *.ts / *.tsx に絞る。差分の周辺コードも読んで文脈を掴む。
  2. 静的検査を回す: 変更範囲に対して以下を実行し、素の事実を集める。
    • npx tsc --noEmit(型エラー。tsconfig.jsonstrict: true
    • npm run lint
    • 関連するテスト(例: npx vitest run src/lib/board.test.ts
  3. 人手のレビュー: 下記チェックリストで読む。
  4. 報告: 深刻度つきで整理して返す(フォーマットは後述)。

チェックリスト

  • 型安全性: any、根拠の薄い断言、null / undefined の取りこぼし
  • 正しさ: 状態更新、列(未着手 / 進行中 / 保留 / 完了)の整合、エッジケース
  • 保守性: 純粋関数は src/lib/、型は src/types/task.ts、状態は useTaskBoard へ集約
  • React / アクセシビリティ: props、キー、操作可能な要素のラベル
  • テスト: 振る舞い変更に対応するテストの不足

報告フォーマット

  1. 概要(1〜2文)
  2. 指摘事項(深刻度 / ファイル / 根拠 / 具体的な修正案)
  3. 問題がない場合は、問題がないことと実行した検証を明示する
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 · 50 lines · 157 tokens per session scan A c1cb629b8058

Subscribe to this mod's changes

typescript-code-reviewer is an agent published in the GitHub repository oikon48/claudecode-book (7 stars, last pushed 21d ago), licensed MIT. It adds 157 tokens to every session and 895 once invoked, about $0.0008 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.