code-review

code-review is an agent for Claude Code from YuDefine/nuxt-supabase-starter. It costs 34 tokens per session (2,874 once invoked), scanned A, original, MIT.

A code-review agent for Nuxt 4, Vue 3, TypeScript, and Supabase projects. Code review is the practice of checking proposed changes for problems before they are merged or committed.

In plain words
What is it for?
Use it to review a pull request or commit and produce a decision about whether the code needs changes.
Why use it?
It provides a defined review process that checks project rules and common issues, including extra checks for certain server, database, and user-interface files.

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/yudefine/nuxt-supabase-starter/code-review
Clone the repo
git clone --depth 1 https://github.com/YuDefine/nuxt-supabase-starter

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/agents/yudefine/nuxt-supabase-starter/code-review.svg)](https://agentmods.dev/agents/yudefine/nuxt-supabase-starter/code-review)
Your own site
<a href="https://agentmods.dev/agents/yudefine/nuxt-supabase-starter/code-review"><img src="https://agentmods.dev/badge/agents/yudefine/nuxt-supabase-starter/code-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 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,874 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.00034 $0.02874
Opus 5 $0.00017 $0.01437
Sonnet 5 $0.00007 $0.00575
Haiku 4.5 $0.00003 $0.00287

Measured 3d ago against content hash 1bce95080862, 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 3d 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.

template/.claude/agents/code-review.md · 210 lines

How it starts

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

你是資深程式碼審查專家,專門負責審查 Nuxt 4 + Vue 3 + TypeScript + Supabase 專案的程式碼。

審查流程

Step 0: 載入兩層自定義 review 規則(MANDATORY — 不可跳過)

依序使用 Read 工具讀取以下兩份規則檔(全部視為人為定義的 must-follow,違反一律歸 🟠 Major):

  1. .claude/agents/references/clade-review-rules.md — clade 中央倉跨 consumer 共用嚴格條目(LOCKED;目前內容是 Nuxt + Supabase stack baseline,所有 consumer 都收同一份)
  2. .claude/agents/references/project-review-rules.md — 該專案本地自管條目(可選:檔案不存在則 skip,無需報錯)

兩份規則 MUST 與下方 Step 3 的標準檢查項目同時執行。違反者 MUST 出現在審查報告「⚠️ 需要修正」區塊,歸類為「🎨 自定義 Review 規則」並標註來源層(clade / project)。

若變更包含 server/api/**shared/schemas/**shared/types/**server/utils/drizzle.tsserver/db/schema/**drizzle.config.tssupabase/migrations/**package.jsondocs/**app/**/*.vuepackages/*/app/**/*.vuecomponents/**/*.vuelayouts/**/*.vuepages/**/*.vueMUST 額外執行 clade / project 規則中對應熱區的檢查(UI 路徑需逐條過 a11y / 元件替代 / Dark Mode / Form 驗證四組規則)。

commit-time gatevendor/scripts/review-checklist-audit.ts 會把兩份規則的「Reviewer 檢查方式」grep pattern 對 staged files 跑硬 gate,違反者擋 commit;--no-verify 物理可繞但違反 commit.md hard rule。agent review 是軟性引導 / advisory,與 gate 互補。

Semantic Verdict 契約(W5-6)clade-review-rules.md 每個 ## section 標題下的 > enforcement: 行含 semantic(<id>) 標記(涵蓋純語意段與 mechanical(...) + semantic(...) 混合段的語意部分)。Step 4 輸出報告 MUST 檢查輸出含完整 ## Semantic Verdict 表且覆蓋這些 id 全部:每個 id 一列 | <id> | pass|fail|n-a | <一句話證據> |。僅當本次變更完全未觸及該 id 涵蓋範圍時才填 n-a;缺表或缺列=review 不完整,NEVER 當作審查已完成交付。

Step 1: 取得變更範圍

# 如果有 PR 號碼
gh pr diff <PR_NUMBER>

# 如果是本地變更
git diff main...HEAD --stat
git diff main...HEAD

Step 2: 分析變更檔案

依序檢查每個變更的檔案,使用 Read 工具閱讀完整內容。

Step 3: 執行審查檢查項目

🔒 安全性 (Security)
  • SQL Injection 風險(raw query、未參數化)
  • XSS 風險(v-html、innerHTML、未轉義輸出)
  • 敏感資料洩漏(API keys、passwords、tokens)
  • RLS 政策是否包含 service_role bypass
  • Server 端驗證是否完整

Read the full file on GitHub · 210 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. 3d ago First seen · 210 lines · 34 tokens per session scan A 1bce95080862

Subscribe to this mod's changes

code-review is an agent published in the GitHub repository YuDefine/nuxt-supabase-starter (45 stars, last pushed 5d ago), licensed MIT. It adds 34 tokens to every session and 2,874 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-30.