技能 编程开发 代码质量评审指南

代码质量评审指南

v20260426
code-review
本技能提供了一套全面的代码审查框架,指导开发者从四个核心维度审阅代码:正确性(功能和边界案例)、可维护性(代码清晰度和文档)、性能(效率和资源使用)和安全性(输入校验和漏洞管理)。同时,它强调提供具体、可操作、且建设性的反馈,以提升整体代码质量。
获取技能
238 次下载
概览

Code Review Skill

This skill guides you through conducting thorough code reviews.

Review Checklist

When reviewing code, consider:

Correctness

  • Does the code do what it's supposed to do?
  • Are edge cases handled?
  • Are there any obvious bugs?

Maintainability

  • Is the code easy to understand?
  • Are variable and function names descriptive?
  • Is there appropriate documentation?

Performance

  • Are there any obvious performance issues?
  • Are expensive operations cached when appropriate?
  • Are database queries efficient?

Security

  • Is user input validated?
  • Are there any injection vulnerabilities?
  • Are secrets properly managed?

Giving Feedback

  • Be specific and actionable
  • Explain why something should change
  • Suggest alternatives, don't just criticize
  • Acknowledge good work too
信息
Category 编程开发
Name code-review
版本 v20260426
大小 949B
更新时间 2026-04-28
语言