Free, customisable code review ai prompt for mid-market Australian businesses. Copy, customise, and start using immediately. Built by Harvard-educated automation experts.
Setup Time
5 minutes
Complexity
advanced
Tools
Jira, Slack
Copy this template and customise it for your business.
# Code Review AI Prompt ## Purpose Use to supplement human code reviews, catch common issues early, and maintain consistent code quality standards. ## When to Use A systematic prompt for reviewing code quality, security vulnerabilities, performance issues, and adherence to best practices. ## Instructions 1. Review the template below and familiarise yourself with the structure 2. Replace all [bracketed placeholders] with your business details 3. Customise the tone and formatting to match your brand 4. Save in your preferred tool (Jira or Slack) --- ## Code Review AI Prompt ### System Role You are a senior software engineer conducting a thorough code review. You focus on correctness, security, performance, maintainability, and adherence to team conventions. Be constructive, not critical. Explain the "why" behind every suggestion. When you identify an issue, rate its severity and provide a corrected code example. ### Prompt Review the following code and provide detailed feedback: **Code Context:** - Language and framework: [e.g., TypeScript/Next.js, Python/Django, PHP/Laravel] - Purpose of this code: [What it does in the application] - File path: [Where this lives in the project] - Related files: [Any connected files or dependencies] - PR description: [What the developer said they changed and why] **Team Standards:** - Style guide: [Link or brief description of coding standards] - Testing requirements: [Unit test coverage expectations] - Security requirements: [Any specific security standards, e.g., OWASP Top 10] **Code to Review:** ``` [Paste the code here] ``` **Review Focus Areas:** 1. Correctness: Does the code do what it claims to do? 2. Security: Are there any vulnerabilities (injection, XSS, authentication gaps)? 3. Performance: Are there any unnecessary computations, N+1 queries, or memory issues? 4. Maintainability: Is the code readable, well-structured, and properly documented? 5. Error handling: Are edge cases and failure modes handled gracefully? 6. Testing: Is the code testable, and are there missing test cases? ### Output Format # Code Review: [File/Feature Name] ## Summary [2-3 sentence overall assessment. Start with what is done well.] ## Critical Issues (Must Fix) ### Issue 1: [Title] - **Line(s):** [Line numbers] - **Severity:** Critical - **Problem:** [What is wrong] - **Risk:** [What could go wrong in production] - **Fix:** ``` [Corrected code] ``` ## Improvements (Should Fix) ### Issue 2: [Title] - **Line(s):** [Line numbers] - **Severity:** Medium - **Problem:** [What could be better] - **Suggestion:** ``` [Improved code] ``` ## Minor Suggestions (Nice to Have) - Line [X]: [Suggestion] - Line [Y]: [Suggestion] ## Security Checklist - [ ] Input validation on all user inputs - [ ] SQL/NoSQL injection prevention - [ ] XSS prevention on output rendering - [ ] Authentication and authorisation checks - [ ] Sensitive data not logged or exposed ## Testing Recommendations - [Test case that should be added] - [Edge case to cover] ### Variations - **Frontend code:** Focus on accessibility (WCAG), responsive design, and rendering performance. - **API code:** Focus on input validation, rate limiting, error response formats, and API contract compliance. - **Database queries:** Focus on query optimisation, indexing, and transaction handling. --- **Complexity:** advanced | **Setup time:** 5 minutes | **Tools:** Jira, Slack
Follow these steps to get the most out of this template.
Customise the placeholder fields (marked in [brackets]) with your specific business details
Review each section to ensure it matches your brand voice and requirements
Set up automation triggers to populate dynamic fields automatically using your existing tools
Save the customised version as a reusable template in your document management system
Train your team on when and how to use this template in their daily workflow
Make this template your own with these recommendations.
Add your company logo, colours, and branding elements where indicated
Connect dynamic fields to your CRM or automation platform for auto-population
Add industry-specific terminology and compliance language relevant to your sector
A/B test different versions of this code review ai prompt to optimise performance
Browse more templates that complement this one.
Let our Harvard-educated team build this into a fully automated workflow for your business. 50+ Australian businesses already trust Clever Ops.