Home
← Back to templates
Code review comment
Programming
Get structured review feedback on a piece of code.
Related technique:Role prompting
Act as a senior backend engineer. Review this code and write review comments. Input: [a function that fetches user data and writes it to a cache with no error handling] Focus on: error handling, edge cases. Tone: Direct.
Expected output
A list of specific review comments (not a rewritten version of the code), each pointing at a concrete issue or suggestion.
Usage tips
- Paste the actual code/diff in Input, not a description of what it does — reviews need the real thing.
- Narrow Focus to 1-2 concerns (e.g. "security" or "readability") for a sharper review than asking for everything at once.
Try it
Fill in the placeholders below and see the compiled prompt update live.
Who or what is the model acting as?
The material to work from.
Rules, limits or things to avoid.
The tone of voice to use.
- 17
- Words
- 118
- Characters
- 0/4
- Placeholders filled
- 1 min
- Reading time
Quality score6
- Completeness0
- Clarity0
- Context0
- Specificity0
- Constraints0
- Format0
- Output0
- Constraints note0
- Success criteria0
- Scope focus100
- Verification step0
- Negative example0
- Confidence0
- Placeholder syntax100
- Markdown structure0
Suggestions
- Fill in the remaining placeholders.
- Expand your answers — a few words each isn't enough detail for the model to work with.
- Add background context so the model understands the situation.
Act as {{ROLE}}. Review this code and write review comments.
Input: {{INPUT}}
Focus on: {{CONSTRAINTS}}
Tone: {{TONE}}
AI Assistant