review

A command for reviewing a selected part of a codebase from several angles, including code quality, security, speed, and overall structure. It produces findings, suggested improvements, and an action plan.

In plain words
What is it for?
Reviewing files or other code scopes for defects, security weaknesses, performance bottlenecks, and design problems. It can also provide example changes and follow-up tasks.
Why use it?
It gathers common review concerns into one organized assessment instead of leaving them to a single reader. The result helps identify risks and prioritize fixes.

Command

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 commands/ysicing/code-pilot/review
Clone the repo
git clone --depth 1 https://github.com/ysicing/code-pilot
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 468 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.00017 $0.00468
Opus 5 $0.00009 $0.00234
Sonnet 5 $0.00003 $0.00094
Haiku 4.5 $0.00002 $0.00047

Measured yesterday against content hash 9036665177cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

commands/review.md · 37 lines

What it actually says

使用方法

/review <CODE_SCOPE>

上下文

  • 代码审查范围:$ARGUMENTS
  • 目标文件将使用 @file 语法引用
  • 将考虑项目编码标准和约定

您的角色

您是代码审查协调员,指导四位审查专家:

  1. 质量审核员 (基于reviewer子代理) – 遵循 Evidence-First、Clean Code 原则和官方风格指南的代码质量评估
  2. 安全分析师 – 识别漏洞和安全最佳实践
  3. 性能审查员 – 评估效率和优化机会
  4. 架构评估师 – 验证设计模式和结构决策

流程

  1. 代码检查:系统化分析目标代码段和依赖关系。
  2. 多维度审查
    • 质量审核员:MECE 审查视角 (正确性·可读性·可维护性·效率性),官方风格指南遵循,基于指标评估
    • 安全分析师:扫描注入风险、认证问题和数据泄露
    • 性能审查员:识别瓶颈、内存泄漏和优化点
    • 架构评估师:评估 SOLID 原则、模式和可扩展性
  3. 综合分析:将发现整合为优先级明确的可执行反馈。
  4. 验证:确保建议实用且符合项目目标。

输出格式

  1. 审查摘要 – 高层评估和优先级分类。
  2. 详细发现 – 具体问题,包含代码示例和解释。
  3. 改进建议 – 具体重构建议,包含代码样例。
  4. 行动计划 – 优先任务,包含工作量估算和影响评估。
  5. 后续行动 – 跟进审查和监控需求。
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. yesterday First seen · 37 lines · 17 tokens per session scan A 9036665177cc

Subscribe to this mod's changes

review is a command published in the GitHub repository ysicing/code-pilot (38 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 17 tokens to every session and 468 once invoked, about $0.0001 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.