agentsclimarketplace

Code review

Skill lyuxiaohei/Maestro/skills/code-review

代码审核技能。对前后端代码进行AI审核,检查安全、性能、规范问题,按严重程度分级输出。当用户提到代码审核、代码审查、code-review时触发。From its SKILL.md

Install
npx -y skills add lyuxiaohei/Maestro --skill code-review

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.6 KB, as published. Nobody here has run it

代码审核

触发条件

  • 用户要求审核代码("审核这段代码"、"代码审查")
  • 前后端开发完成后触发 AI 审核(P15)
  • 用户提到 code-review

执行流程

步骤 0:代码索引上下文(可选)

审核开始时检查 .planning/code-index.json 是否存在。若存在,运行 node scripts/code-graph-scan.js . --context --dirs {changed_file_dirs} 获取变更文件的依赖关系,作为审核补充上下文。索引不存在时跳过此步骤。

步骤 1:审核范围确认

  • 确认审核范围(后端/前端/全栈)
  • 读取相关源代码文件和设计文档
  • 输出:审核范围清单

步骤 2:后端代码审核(增强)

  • spawn code-reviewer Agent(role: spec-reviewer)检查接口实现是否符合设计文档
  • spawn code-reviewer Agent(role: quality-reviewer)检查代码质量(复杂度/重复/规范)
  • 人工补充安全审核:SQL 注入、权限绕过、敏感数据泄露
  • 人工补充性能审核:N+1 查询、缓存策略、连接池使用
  • 输出:后端审核发现列表

步骤 3:前端代码审核(增强)

  • spawn code-reviewer Agent(role: spec-reviewer)检查 UI 实现是否符合设计规范
  • spawn code-reviewer Agent(role: quality-reviewer)检查代码质量(组件拆分/类型安全/状态管理)
  • 人工补充安全审核:XSS、CSRF、Token 处理
  • 人工补充性能审核:重渲染、包体积、懒加载
  • 输出:前端审核发现列表

步骤 4:问题分级

  • 将所有审核发现按严重程度分级(详见 references/severity-guide.md)
  • P0(致命):安全漏洞、数据丢失风险
  • P1(严重):性能瓶颈、功能缺陷
  • P2(一般):代码规范、可维护性
  • P3(建议):优化建议、最佳实践
  • 输出:分级问题清单

步骤 5:审核报告

  • 汇总审核结果,生成结构化审核报告
  • 包含问题统计、详细问题列表、修复建议
  • 输出:代码审核报告

输入输出规范

输入:

  • 源代码文件(后端/前端)
  • 详细设计文档(Phase 13,可选)

输出:

  • 代码审核报告(含分级问题清单和修复建议)

引用文件

文件用途
references/severity-guide.md问题严重程度分级标准

Keep looking

Skills are one crate of 608,475. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.