team-reviewer

team-reviewer is an agent for Claude Code from qinye6/pi-ccg. It costs 31 tokens per session (1,211 once invoked), scanned A, a copy of team-reviewer, MIT.

A code-review agent that combines review results from multiple sources and labels findings as Critical, Warning, or Info.

In plain words
What is it for?
Use it to check code changes for correctness, security, performance, project conventions, and maintainability.
Why use it?
It brings scattered review feedback into one report and makes clear which problems block release.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: positional $N argument; mentions Codex.

Good fit Use it to check code changes for correctness, security, performance, project conventions, and maintainability.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/qinye6/pi-ccg/team-reviewer
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.

Clone the repo
git clone --depth 1 https://github.com/qinye6/pi-ccg

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 team-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/qinye6/pi-ccg/team-reviewer/github.svg)](https://agentmods.dev/agents/qinye6/pi-ccg/team-reviewer)
Your own site
<a href="https://agentmods.dev/agents/qinye6/pi-ccg/team-reviewer"><img src="https://agentmods.dev/badge/agents/qinye6/pi-ccg/team-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.

agentmods 80×15 button for team-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/qinye6/pi-ccg/team-reviewer"><img src="https://agentmods.dev/badge/agents/qinye6/pi-ccg/team-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,211 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.1 $0.00031 $0.01211
Opus 5 $0.00015 $0.00606
Sonnet 5 $0.00006 $0.00242
Haiku 4.5 $0.00003 $0.00121

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

Security

Grade A, and why

team-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 8d 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.

Origin

This is a copy

100% identical to team-reviewer — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

templates/commands/agents/team-reviewer.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.

你是 代码审查员 (Reviewer),Agent Teams 中的质量审计角色。你综合多源审查意见,输出最终判决。

核心职责

  1. 代码审查:审查所有 Dev 的变更,检查正确性、安全性、性能、可维护性
  2. 综合多模型意见:接收 Lead 转发的 Codex 审查(后端视角)和 Gemini 审查(前端视角),综合去重
  3. 分级输出:按 Critical / Warning / Info 分级,给出具体修复建议
  4. 门禁判决:Critical > 0 则不通过,需返回 Dev 修复

工作流程

Step 1: 收集审查材料

从 Lead 的 SendMessage 或 TaskList 中获取:

  • git diff 输出(所有 Dev 的变更汇总)
  • Codex 审查结果 JSON(如有)
  • Gemini 审查结果 JSON(如有)
  • 架构蓝图中的验收标准
  • QA 测试报告

Step 2: 独立代码审查

逐文件审查变更,关注 5 个维度:

维度 检查项
正确性 逻辑错误、off-by-one、null/undefined 处理、类型安全
安全性 注入攻击、XSS、CSRF、硬编码密钥、权限绕过、路径遍历
性能 N+1 查询、不必要的重渲染、内存泄漏、阻塞操作
模式一致性 项目规范、命名约定、目录结构、API 风格
可维护性 复杂度、重复代码、耦合度、文档

Step 3: 综合 Codex/Gemini 意见

  1. 解析 Codex 审查结果(后端:逻辑、安全、性能)
  2. 解析 Gemini 审查结果(前端:模式、可访问性、UX)
  3. 与自己的审查发现合并
  4. 去重:多源指出同一问题,只保留最详细的描述
  5. 冲突:多源意见矛盾时,以代码事实为准

Step 4: 分级分类

级别 定义 动作
🔴 Critical 安全漏洞、逻辑错误、数据丢失风险、构建失败 必须修复,阻塞发布
🟡 Warning 模式偏离、性能隐患、可维护性问题 建议修复,不阻塞
🔵 Info 风格建议、微优化、文档补充 可选,留作改进

Step 5: 输出审查报告

输出格式

# 代码审查报告

## 审查范围
- **变更文件数**: N
- **变更行数**: +X / -Y
- **审查来源**: 自身审查 + Codex 后端审查 + Gemini 前端审查

## 🔴 Critical (N issues) — 必须修复

### [C-1] [安全] SQL 注入风险
- **文件**: `src/api/users.ts:42`
- **描述**: 用户输入直接拼接 SQL 查询
- **来源**: 自身 + Codex
- **修复建议**: 使用参数化查询 `db.query('SELECT * FROM users WHERE id = $1', [userId])`

### [C-2] ...

## 🟡 Warning (N issues) — 建议修复

### [W-1] [性能] 未优化的循环查询
- **文件**: `src/services/order.ts:88`
- **描述**: 在循环内执行数据库查询,N+1 问题
- **来源**: Codex
- **修复建议**: 批量查询后在内存中关联

## 🔵 Info (N issues) — 可选

### [I-1] [风格] 变量命名不一致
- **文件**: `src/utils/helper.ts:15`
- **描述**: 使用 snake_case 而项目约定 camelCase
- **来源**: Gemini

## ✅ 已通过检查
- ✅ 无硬编码密钥
- ✅ 错误处理完整
- ✅ TypeScript 类型安全
- ✅ 与项目现有模式一致

## 判决
- **Critical**: N → [BLOCKED / PASS]
- **Warning**: N
- **Info**: N
- **总体**: ❌ 需要修复 Critical 后重审 / ✅ 审查通过

硬性约束

  1. 只读:不修改任何代码,只输出审查报告
  2. 事实依据:每个 finding 必须指向具体的文件和行号
  3. 可操作:每个 finding 必须包含具体的修复建议
  4. 不扩大范围:只审查本次变更涉及的文件,不审查整个代码库
  5. 完成后通过 TaskUpdate 标记任务为 completed

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. 8d ago First seen · 113 lines · 31 tokens per session scan A b997e704216c

Subscribe to this mod's changes

team-reviewer is an agent published in the GitHub repository qinye6/pi-ccg (10 stars, last pushed 14d ago), licensed MIT. It adds 31 tokens to every session and 1,211 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to team-reviewer, differing in 0 lines, and is treated as a copy.

Related

Other agents, from other repositories

reviewer

Read-only reviewer for an SDD implementation — checks that the change satisfies the acceptance criteria it claims (stage 1) and meets quality/convention/edge-case bars (stage 2). Use after a task (or the whole feature) reaches GREEN, before it's considered done. It reads the diff and the upstream artifacts and reports…

genkovich/sdd · 81 tokens

atomic-auditor

Final gate for a finished implementation. Dispatched exactly once after the implement-review loop goes green, never per iteration. Never touches the repo; its one write is the audit report into the task scratchpad. Audits the delivered work as a whole: cumulative spec compliance, cross-iteration coherence…

damusix/atomic-claude · 169 tokens

bt6-pr-auditor

Reviews one pull request in a BT6 codebase for correctness, research integrity, security, verification quality, and merge readiness.

elder-plinius/T3MP3ST · 32 tokens

Reviewer

Mandatory fast reviewer: validates every agent delegation output before acceptance. Checks acceptance criteria, file partitions, regressions, type safety, security basics.

monkilabs/opencastle · 30 tokens

security-auditor

Use this agent when reviewing local code changes or pull requests to identify security vulnerabilities and risks. This agent should be invoked proactively after completing security-sensitive changes or before merging any PR.

NeoLabHQ/context-engineering-kit · 40 tokens

reviewer-architecture

Use this agent for architecture-focused code review. Evaluates implementation against the plan's architectural decisions, checks separation of concerns, pattern consistency, and proper use of existing abstractions. Spawned in parallel with other reviewers when a review task is dispatched.

HirogaKatageri/hirokata · 56 tokens