AI Code Review Assistant Setup
Set up an AI-powered code review assistant with a system prompt, review criteria, and output format for your codebase.
The Prompt
Make it yours
Fill these in and the prompt rewrites itself below — then Copy or Run sends your version, not the template.
# AI Code Review Assistant Setup You are a senior software engineer. Help me configure an AI code review assistant for a [LANGUAGE] codebase that follows [STYLE_GUIDE] conventions. ## Codebase Context Language: [LANGUAGE] Framework or stack: [FRAMEWORK] Style guide: [STYLE_GUIDE] (e.g., PEP 8, Airbnb, Google) Team size: [TEAM_SIZE] engineers Most common issues in past reviews: [COMMON_ISSUES] ## Review Criteria Configure the assistant to check for: 1. **Correctness** — logical bugs, off-by-one errors, null pointer risks 2. **Security** — injection vulnerabilities, exposed secrets, insecure defaults 3. **Performance** — unnecessary loops, N+1 queries, memory leaks 4. **Readability** — naming clarity, function length, comment quality 5. **[CUSTOM_CRITERION]** — specific to [FRAMEWORK] ## System Prompt Write a production-ready system prompt for the code review assistant that includes all criteria above and instructs it to output findings as a structured list with severity (Critical / Warning / Suggestion) and a one-line fix for each finding. ## Review Template Write the input template I'll use to submit code for review: - File path: [FILE_PATH] - Diff or full file: [CODE] - Context: [WHAT_THIS_CODE_DOES] ## Example Output Show an example review output for a [LANGUAGE] function with [NUMBER] deliberately introduced bugs.
How to use this prompt
We open ChatGPT, Claude, Gemini, Perplexity, Grok or Copilot with this prompt in the box, ready for you to press Enter — and copied to your clipboard as a backup. Pick your AI once and we remember it.
Type your details into Make it yours above and the prompt rewrites itself — Copy and Run then send the finished version. We remember the generic answers, so the next prompt arrives part-filled.
This prompt is tuned for GPT-4o, but it works well in any of them. Prefer to do it by hand? Copy to clipboard is always there too.