code-review-and-quality

code-review-and-quality is a skill for Claude Code from vinvcn/addyosmani-agent-skills-zh. It costs 53 tokens per session (3,581 once invoked), scanned A, original, MIT.

A code-review guide for checking changes across correctness, readability, architecture, security, and performance before they are merged.

In plain words
What is it for?
Use it after implementing features, fixing bugs, refactoring code, or reviewing a pull request or another agent's changes.
Why use it?
It provides a structured review so bugs, unclear code, unsafe changes, and design problems are less likely to reach the main codebase.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agent-skills plugin — 23 skills, 8 commands, 3 agents, 1 hook shipped together

Good fit Use it after implementing features, fixing bugs, refactoring code, or reviewing a pull request or another agent's changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vinvcn/addyosmani-agent-skills-zh/code-review-and-quality
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 vinvcn/addyosmani-agent-skills-zh --skill code-review-and-quality
Clone the repo
git clone --depth 1 https://github.com/vinvcn/addyosmani-agent-skills-zh

Made for: Claude Code.

Or install agent-skills, the plugin that ships this one along with the rest of its 23 skills, 8 commands, 3 agents, 1 hook.

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-and-quality

README.md
[![agentmods](https://agentmods.dev/badge/skills/vinvcn/addyosmani-agent-skills-zh/code-review-and-quality/github.svg)](https://agentmods.dev/skills/vinvcn/addyosmani-agent-skills-zh/code-review-and-quality)
Your own site
<a href="https://agentmods.dev/skills/vinvcn/addyosmani-agent-skills-zh/code-review-and-quality"><img src="https://agentmods.dev/badge/skills/vinvcn/addyosmani-agent-skills-zh/code-review-and-quality/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 code-review-and-quality

Your own site · 80×15
<a href="https://agentmods.dev/skills/vinvcn/addyosmani-agent-skills-zh/code-review-and-quality"><img src="https://agentmods.dev/badge/skills/vinvcn/addyosmani-agent-skills-zh/code-review-and-quality.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,581 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.00053 $0.03581
Opus 5 $0.00026 $0.01791
Sonnet 5 $0.00011 $0.00716
Haiku 4.5 $0.00005 $0.00358

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

Security

Grade A, and why

code-review-and-quality 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 12d 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.

skills/code-review-and-quality/SKILL.md · 348 lines

How it starts

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

代码审查和质量

概览

带质量门禁的多维度代码审查。每个变更在合并前都必须经过审查,没有例外。审查覆盖五个轴:正确性、可读性、架构、安全性和性能。

批准标准: 当一个变更明确改善了整体代码健康度时,就批准它,即使它并不完美。完美代码不存在,目标是持续改进。不要因为它和你自己的写法不完全一致就阻止它。如果它改善了代码库并遵循项目约定,就批准它。

何时使用

  • 合并任何 PR 或变更之前
  • 完成功能实现之后
  • 当另一个 agent 或模型产出了你需要评估的代码时
  • 重构现有代码时
  • 修复任何 bug 之后(同时审查修复和回归测试)

五轴审查

每次审查都从这些维度评估代码:

1. 正确性

代码是否做了它声称要做的事?

  • 是否符合 spec 或任务要求?
  • 是否处理了边界情况(null、empty、边界值)?
  • 是否处理了错误路径(不只是 happy path)?
  • 是否通过所有测试?测试是否真的在测试正确的事情?
  • 是否存在 off-by-one 错误、竞态条件或状态不一致?

2. 可读性和简单性

另一个工程师(或 agent)能否在作者不解释的情况下理解这段代码?

  • 命名是否具有描述性,并与项目约定一致?(没有缺少上下文的 tempdataresult
  • 控制流是否直接清晰(避免嵌套三元表达式、深层 callback)?
  • 代码组织是否符合逻辑(相关代码放在一起,模块边界清晰)?
  • 是否有应该简化的“聪明”技巧?
  • 能否用更少的行数完成?(100 行足够却写了 1000 行就是失败)
  • 抽象是否配得上它带来的复杂度?(不要在第三个用例之前泛化)
  • 注释是否有助于澄清非显而易见的意图?(但不要注释显而易见的代码。)
  • 是否存在死代码痕迹:no-op 变量(_unused)、向后兼容 shim,或 // removed 注释?

3. 架构

这个变更是否适合系统设计?

  • 它遵循现有模式,还是引入了新模式?如果是新模式,是否有充分理由?
  • 是否保持了清晰的模块边界?
  • 是否存在应该共享的代码重复?
  • 依赖流向是否正确(没有循环依赖)?
  • 抽象层级是否合适(不过度工程化,也不过度耦合)?

4. 安全性

详细安全指导见 security-and-hardening。这个变更是否引入了漏洞?

  • 用户输入是否经过验证和清理?
  • secrets 是否没有出现在代码、日志和版本控制中?
  • 是否在需要的位置检查了认证/授权?
  • SQL 查询是否参数化(没有字符串拼接)?
  • 输出是否经过编码以防止 XSS?
  • 依赖是否来自可信来源,且没有已知漏洞?
  • 来自外部来源的数据(API、日志、用户内容、配置文件)是否被当作不可信数据处理?
  • 外部数据流在进入逻辑或渲染之前,是否已在系统边界验证?

5. 性能

详细 profiling 和优化指导见 performance-optimization。这个变更是否引入了性能问题?

  • 是否有 N+1 查询模式?
  • 是否有无界循环或不受约束的数据获取?
  • 是否有本应异步的同步操作?
  • UI 组件是否存在不必要的 re-renders?
  • 列表 endpoint 是否缺少 pagination?
  • hot paths 中是否创建了大型对象?

变更大小

小而聚焦的变更更容易审查、更快合并,也更安全部署。目标大小如下:

~100 lines changed   → Good. Reviewable in one sitting.
~300 lines changed   → Acceptable if it's a single logical change.
~1000 lines changed  → Too large. Split it.

什么算“一个变更”: 一个自包含的修改,只解决一件事,包含相关测试,并且提交后系统仍可运行。它是一个功能的一部分,而不是整个功能。

变更过大时的拆分策略:

策略 做法 何时使用
Stack 先提交一个小变更,再基于它开始下一个变更 顺序依赖
By file group 对需要不同审查者的文件组拆分变更 横切关注点
Horizontal 先创建共享代码/stubs,再接入消费者 分层架构
Vertical 将功能拆成更小的 full-stack 切片 功能开发

Read the full file on GitHub · 348 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. 12d ago First seen · 348 lines · 53 tokens per session scan A 969f684fc0a2

Subscribe to this mod's changes

code-review-and-quality is a skill published in the GitHub repository vinvcn/addyosmani-agent-skills-zh (31 stars, last pushed 4mo ago), licensed MIT. It adds 53 tokens to every session and 3,581 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

code-review-and-quality

Conducts multi-axis code review with hard rules against rubber-stamping and diff-only tunnel vision. Use before merging any change, whether written by yourself, another agent, or a human. Triggers on "review this", "is this ready to merge", or any completed implementation awaiting approval.

borhen68/SkillEngine · 63 tokens

doubt-driven-development

Subjects every non-trivial decision to a fresh-context adversarial review before it stands. Use when correctness matters more than speed, when working in unfamiliar code, when stakes are high (production, security-sensitive logic, irreversible operations), or any time a confident output would be cheaper to verify now…

borhen68/SkillEngine · 67 tokens

code-simplification

Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity.

borhen68/SkillEngine · 51 tokens

code-review-and-quality

Conducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch.

addyosmani/agent-skills · 51 tokens

doubt-driven-development

Subjects every non-trivial decision to a fresh-context adversarial review before it stands. Use when you want every assumption cross-examined before proceeding, when stress-testing a plan for hidden failure modes, when correctness matters more than speed, when working in unfamiliar code, when stakes are high…

addyosmani/agent-skills · 96 tokens

code-simplification

Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity.

addyosmani/agent-skills · 51 tokens