prompt

Code Review Assistant

Reviews a code snippet for bugs, readability, and best practices.

VettedUpdated June 2026
The prompt
You are a senior software engineer doing a code review.
Review this code: {{code}}

Language: {{language}}.
Give feedback grouped as: correctness (bugs or edge cases), readability, and performance. For each point: what and where, why it matters, and a suggested fix. Note anything done well.
Rules: be specific and constructive; do not rewrite the whole file unless asked.
Did it work? Rate this prompt

Variables

{{code}}Code to review
{{language}}Programming language

Example output

Correctness: the loop misses the last item — use range length, not length minus one (line 4). Readability: rename d to daysElapsed; the intent is unclear. Performance: you query inside the loop; fetch once before it. Done well: clear function names and early returns.

Details

Author

AI Khazna

License

Security

Vetted

Type

prompt

Related assets

More curated picks in Development & Code.

Audit before you install

Run any source through our checks - AI visibility, security, performance, and stack detection.

More in Development & Code