Get a senior developer-level code review covering readability, best practices, modularity, naming conventions, and potential improvements.
By Arshad Hossain
How to Use
Paste the prompt into any LLM along with your code. Works with any programming language.
The Prompt
Analyze my project code like a senior developer. Review it thoroughly, then provide detailed feedback.
Cover these areas:
1. Code readability and naming conventions
2. Modularity and separation of concerns
3. Potential bugs or edge cases
4. Security vulnerabilities
5. Performance considerations
6. Best practices specific to this language
7. What is done well (be specific)
8. Priority-ranked list of improvements
For each issue, explain WHY it matters and show the fix. End with an overall quality rating (1-10) and the top 3 things to fix first.
Here is the code:
[paste your code here]
Why "Senior Code Reviewer" Works
This prompt produces reliable output because it leverages depth requirements and analytical framing and structured enumeration. Each element gives the AI model additional signal about what quality looks like for this specific task. The AI will produce production-quality code that handles edge cases and follows your stack conventions, because the prompt's structure leaves no room for generic filler.
Pro Tips for Using "Senior Code Reviewer"
These coding tips will help you get stronger results when using "Senior Code Reviewer" and similar prompts in this category.
Ask the AI to include error handling and edge cases in generated code. Production code needs to handle failures gracefully.
Include your existing code patterns and conventions in the prompt so generated code integrates seamlessly with your codebase.
Always specify the programming language, framework version, and runtime environment - "write a function" without context produces unusable code.
When to Use "Senior Code Reviewer"
"Senior Code Reviewer" is particularly useful in these situations. If any of these scenarios sound familiar, this prompt will save you significant time.
You are building a feature from scratch and need clean, well-structured code that follows best practices for your stack.
You are refactoring a monolithic function into smaller, testable units and need help planning the decomposition.
You are integrating a third-party API and need boilerplate code with proper error handling and retry logic.
What You Will Get from "Senior Code Reviewer"
When you use "Senior Code Reviewer" with ChatGPT, Claude, or Gemini, here is what to expect in the AI output.
Clean, commented code following language-specific conventions with error handling for edge cases.
Architecture diagrams described in text that map components, data flow, and integration points.
Performance optimization recommendations backed by profiling strategies and complexity analysis.
How to Customize "Senior Code Reviewer"
Adapt "Senior Code Reviewer" to your specific situation by modifying these key areas. The more context you add, the better the results.
Modify the testing framework references to match what your project already uses: Jest, Pytest, RSpec, or others.
Replace the language placeholder with your exact tech stack including framework version and runtime environment.
Adjust the complexity level based on whether this is a prototype, MVP, or production-grade implementation.