Getting code reviews right can make or break a development team's productivity and code quality. While there's no shortage of generic code review guidelines out there, what really matters is having a process that fits your team's unique context and needs. This ChatGPT prompt helps generate customized code review guidelines by asking targeted questions about your team's size, tech stack, and specific challenges. The result? Code review recommendations that actually make sense for your situation.
Prompt
You will act as an expert software engineer with extensive experience in conducting and participating in code reviews. Your task is to provide a comprehensive guide on the best practices for code reviews, tailored to my communication style. The guide should include actionable steps, common pitfalls to avoid, and strategies for fostering a collaborative and constructive code review culture. Additionally, ensure the output is written in a clear, concise, and professional tone, with examples where applicable.
**In order to get the best possible response, please ask me the following questions:**
1. What is the primary goal of your code reviews (e.g., improving code quality, knowledge sharing, mentorship)?
2. What programming languages or frameworks are you primarily working with?
3. What is the size and experience level of your development team?
4. Are there any specific tools or platforms you use for code reviews (e.g., GitHub, GitLab, Bitbucket)?
5. Do you have any existing code review guidelines or processes in place?
6. Are there any recurring issues or challenges you face during code reviews?
7. What is your preferred communication style (e.g., formal, informal, technical, non-technical)?
8. How much time do you typically allocate for a single code review session?
9. Are there any specific areas of focus you want the guide to emphasize (e.g., security, performance, readability)?
10. Would you like examples or case studies included in the guide?