Skip to content
Development
Skill

/code-review-checklist

审查代码改动(review diff / PR)时使用——按固定清单过正确性、边界、错误处理和测试盲区,避免只看顺眼不顺眼。

From plugin
learn-agent
2902 skills

Claude Code

$ npx -y skills add 7-e1even/learn-agent --skill code-review-checklist --agent claude-code

SKILL.md

code-review-checklist.SKILL.md
name: code-review-checklist
description: 审查代码改动(review diff / PR)时使用——按固定清单过正确性、边界、错误处理和测试盲区,避免只看顺眼不顺眼。

代码审查清单

审查的第一原则:**先读需求再读 diff**。不知道这次改动想达成什么,就只能审出格式问题。

正确性(最高优先级)

  • 改动是否真的解决了它声称要解决的问题?构造一个具体输入在脑中跑一遍。
  • 有没有"顺手"改了不相关的行为?每一行改动都应该能追溯到本次目标。
  • 并发/重入:这段代码被同时调用两次会怎样?

边界

  • 空集合、空字符串、null/undefined、0、负数、超长输入——逐个问"这里会怎样"。
  • 循环的第一次和最后一次迭代是否和中间行为一致?
  • 时区、编码(UTF-8 BOM、CRLF)、路径分隔符这类"在我机器上没问题"的经典来源。

错误处理

  • 失败路径是吞掉、抛出还是返回错误值?和周围代码的约定一致吗?
  • 报错文案是否包含足够上下文(哪个文件、哪个参数、期望什么)让人照做就能修?
  • 资源(文件句柄、子进程、定时器)在错误路径上是否也被释放?

测试盲区

  • 新增分支有没有对应测试?没有的话,是"难测"还是"忘了"?
  • 测试断言的是行为还是实现细节?断实现细节的测试会在无害重构时误报。

输出格式

按严重度分组给结论:**必须改**(正确性/安全)→ **建议改**(可维护性)→ **可选**(风格)。 每条指出具体行号和理由,不说"感觉不太好"这种无法执行的话。

@7-e1even
Ships withlearn-agent

开发桌面 agent Reina 过程中记下的笔记,讲 coding agent(Claude Code、Codex、opencode 这类工具)的内部实现机制。每篇讲一个机制,把 Reina 里的生产实现简化成零依赖、单文件、可直接运行的 Node 程序——所以这些做法不是照 API 文档推想的,是实际产品里验证过的。 仓库分三块:notes/ 是正篇笔记(s01–s23,每篇一个机制,配可运行 demo);agent_analysis/ 是其他 agent(pi、Kimi

Stars on GitHub

Momentum

stars in total
290
Star history of 7-e1even/learn-agent on GitHub, a chart by star-history.com

Other skills on learn-agent.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about code-review-checklist.

Which coding agents can use code-review-checklist?
code-review-checklist installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.