SuperAPI AI Directory

code-review

Coding & development

View repository

Updated 10-16 04:46

About this skill

Code Review

Dependency specifications

#[[file:../rules/review-base.md]] #[[file:../rules/coding-standards.md]] #[[file:../rules/web-standards.md]]

Steps

For each step, output the title first, then output the result

  • Logic correctness: Check whether the logic meets the requirements and whether boundary conditions have been handled (null values, extreme values, abnormal inputs)
  • Specification compliance: Check item by item according to coding-standards and output the result of each check; for web projects, also check web-standards
  • Security check: Check whether sensitive information is hardcoded and whether user input is validated
  • Documentation synchronization: If a public module has been modified, check whether the usage documentation and demo entry page have been updated accordingly
  • Code cleanliness: Check for dead code such as unused variables, functions, imports, etc.
  • No duplication: Check for duplicate logic and code, and whether reusable parts have been extracted
  • Readability: Check whether naming is clear, whether functions and classes have comments, and whether complex logic has process explanations