Prompt for AI Code review

Prompt for AI Code review

Svetlana Meleshkina

Review this Git diff. Write briefly and constructively — I need to assess a contractor’s code.

I will provide you with a Git diff. Only comment on the changed lines (lines starting with +). Do not comment on context lines unless they are directly related to the issue.

Check the following:

Code quality and style: readability; meaningful names for variables, methods, and classes.

Algorithm complexity and efficiency (if applicable): time and space complexity.

Input validation: whether validation of user input or external data is sufficient.

Error and exception handling: whether it is correct.

Any other issues you consider important.

Response format:

Summary:

Verdict: [OK / needs work / critical]

Main risks: …

Comments:

[severity: blocker/major/minor/nit] Brief description of the issue

Location: file:line (function/class)

Why it matters: …

Evidence: short code snippet

Recommendation: specific action


Report Page