metago-code-review-deep

metago-code-review-deep is a skill for Claude Code, Codex from metago-ai/metagolifeform. It costs 95 tokens per session (1,084 once invoked), scanned A, original, MIT.

A detailed code-review process that checks correctness, security, performance, maintainability, and style, then labels findings by severity. Its report includes suggested fixes and a merge decision.

In plain words
What is it for?
Use it for code reviews, pull requests, or pre-commit checks, including reviews of error handling, concurrency, database queries, dependencies, authentication, and sensitive data.
Why use it?
It helps reveal bugs, vulnerabilities, slow code, resource problems, and maintenance issues before they reach a shared codebase.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it for code reviews, pull requests, or pre-commit checks, including reviews of error handling, concurrency, database queries, dependencies, authentication, and sensitive data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/metago-ai/metagolifeform/metago-code-review-deep
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.

Any agent
npx skills add metago-ai/metagolifeform --skill metago-code-review-deep
Clone the repo
git clone --depth 1 https://github.com/metago-ai/metagolifeform

Made for: Claude Code, Codex.

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 metago-code-review-deep

README.md
[![agentmods](https://agentmods.dev/badge/skills/metago-ai/metagolifeform/metago-code-review-deep/github.svg)](https://agentmods.dev/skills/metago-ai/metagolifeform/metago-code-review-deep)
Your own site
<a href="https://agentmods.dev/skills/metago-ai/metagolifeform/metago-code-review-deep"><img src="https://agentmods.dev/badge/skills/metago-ai/metagolifeform/metago-code-review-deep/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 metago-code-review-deep

Your own site · 80×15
<a href="https://agentmods.dev/skills/metago-ai/metagolifeform/metago-code-review-deep"><img src="https://agentmods.dev/badge/skills/metago-ai/metagolifeform/metago-code-review-deep.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,084 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 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.1 $0.00095 $0.01084
Opus 5 $0.00048 $0.00542
Sonnet 5 $0.00019 $0.00217
Haiku 4.5 $0.00010 $0.00108

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

Security

Grade A, and why

metago-code-review-deep 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 11d 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.

packages/dev-kit/skills/metago-code-review-deep/SKILL.md · 104 lines

What it actually says

深度代码审查(metago-code-review-deep)

描述

对代码进行多维度分级审查,检测逻辑错误、安全漏洞、性能问题、可维护性缺陷、风格不一致。输出含修复建议和优先级的结构化报告。

触发条件

  • 用户请求代码审查、PR Review、Code Review 时激活
  • 代码提交前审查(pre-commit hook 场景)
  • metago-decision-lock 协同:开发者任务输出代码时强制触发

核心流程

1. 静态结构分析

  • 文件组织与模块划分是否合理
  • 函数/类职责是否单一
  • 依赖关系是否清晰(无循环依赖)
  • 代码重复度检测(DRY 原则)

2. 逻辑正确性审查

  • 边界条件处理(空值、极值、越界)
  • 异常路径覆盖(错误处理、资源释放)
  • 并发安全(竞态条件、死锁)
  • 算法正确性(时间复杂度、空间复杂度)

3. 安全漏洞审查

  • 注入漏洞(SQL/命令/XSS)
  • 认证授权缺陷
  • 敏感信息泄露(硬编码密钥、日志泄密)
  • 依赖漏洞(已知 CVE)

4. 性能审查

  • 数据库查询效率(N+1、全表扫描)
  • 内存泄漏风险
  • 不必要的同步阻塞
  • 资源未释放(文件句柄、连接池)

5. 可维护性审查

  • 命名清晰度(变量、函数、类)
  • 注释完整度(复杂逻辑、公共 API)
  • 单一职责原则遵循度
  • 开闭原则遵循度

分级标准

级别 含义 处理时机
🔴 Critical 必须立即修复(安全漏洞、数据丢失、崩溃) 阻断合并
🟠 Major 应在合并前修复(逻辑错误、性能严重问题) 阻断合并
🟡 Minor 建议修复(可维护性、风格) 可后续修复
🔵 Info 提示性建议(优化、最佳实践) 仅记录

输出格式

【深度代码审查报告】

文件:path/to/file.ext
审查范围:函数/类/模块
总体评分:XX/100

🔴 Critical(N 项)
  [C-001] 行 XX: 问题描述
    影响:...
    修复建议:...
    依据:...

🟠 Major(N 项)
  [M-001] 行 XX: 问题描述
    影响:...
    修复建议:...

🟡 Minor(N 项)
  [m-001] 行 XX: 问题描述
    建议改进:...

🔵 Info(N 项)
  [i-001] 建议优化:...

审查结论:✅ 通过 / ❌ 需修复后重新审查

与其他技能的协同

  • metago-critique 协同:审查过程应用 L1-L5 批判性分析
  • metago-fact-check 协同:检测虚构 API、不存在的函数(幻觉代码)
  • metago-decision-lock 协同:审查报告需通过决策锁校验
  • metago-problem-trace 协同:问题无限溯源至根本原因
  • metago-security-audit 协同:安全维度联动深度安全审计
  • metago-refactor-suggest 协同:可维护性问题联动重构建议
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. 11d ago First seen · 104 lines · 95 tokens per session scan A 414bfa0d3d2e

Subscribe to this mod's changes

metago-code-review-deep is a skill published in the GitHub repository metago-ai/metagolifeform (4 stars, last pushed 10d ago), licensed MIT. It adds 95 tokens to every session and 1,084 once invoked, about $0.0005 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.