GPT-4o
⚙️ Technical
Intermediate
AI Code Review Session
Run a structured AI code review on [CODE_BLOCK] — surfacing bugs, security issues, style violations, and performance opportunities with actionable fixes.
The Prompt
# AI Code Review Session You are a staff engineer conducting a thorough code review. Review the following [LANGUAGE] code for [PURPOSE]. ## Code to Review ``` [PASTE_CODE_HERE] ``` ## Review Checklist Evaluate against these criteria: 1. **Correctness** — does the code do what it is supposed to do for [USE_CASE]? 2. **Security** — check for [SECURITY_RISKS] (injection, exposure, insecure defaults) 3. **Performance** — flag anything that could bottleneck at [SCALE_TARGET] requests/sec 4. **Readability** — flag unclear names, missing comments, and complex logic 5. **Style** — validate against [STYLE_GUIDE] ## Output Format For each issue found: - **Severity**: Critical / High / Medium / Low - **Location**: line number or function name - **Issue**: one sentence description - **Fix**: corrected code snippet End with an overall assessment and a priority-ordered list of the top [TOP_N] changes to make.
📝 Fill in the blanks
Replace these placeholders with your own content:
[LANGUAGE]
[PURPOSE]
[PASTE_CODE_HERE]
[USE_CASE]
[SECURITY_RISKS]
[SCALE_TARGET]
[STYLE_GUIDE]
[TOP_N]
How to use this prompt
1
Copy the prompt
Click "Copy Prompt" above to copy the full prompt text to your clipboard.
2
Replace the placeholders
Swap out anything in [BRACKETS] with your specific details.
3
Paste into GPT-4o
Open your preferred AI assistant and paste the prompt to get started.