Prompt
AI-Powered Code Review Feedback Generator
This prompt helps developers receive comprehensive, constructive code review feedback on their pull requests or code snippets.

- Sample type
- Prompt
- Products
- Microsoft 365 Copilot
- Created
- Updated
Sample documentation
How to use this sample

Summary
This prompt helps developers receive comprehensive, constructive code review feedback on their pull requests or code snippets. It analyzes code quality, security vulnerabilities, performance issues, and best practices compliance.
Prompt đĄ
Review the following code and provide detailed feedback including:
- Code quality assessment (readability, maintainability, complexity)
- Security vulnerabilities or concerns
- Performance optimization opportunities
- Best practices compliance
- Suggested improvements with code examples
- Overall code rating (1-10)
Format the output with clear sections and prioritize issues by severity (Critical, High, Medium, Low).
Code to review: {Paste_Your_Code_Here}
Programming language: {Specify_Language}
Description âšī¸
This prompt analyzes code submissions and provides comprehensive feedback covering quality, security, performance, and best practices. It helps developers improve their code before merging and maintains high code standards across teams.
Contributors đ¨âđģ
Version history
| Version | Date | Comments |
|---|---|---|
| 1.0 | Oct 31, 2024 | Initial release |
Instructions đ
- Make sure you have Copilot for Microsoft 365 in your tenant
- Open the Microsoft Teams app
- Open the Copilot app within Teams
- Paste the prompt in the Copilot app
- Replace {Paste_Your_Code_Here} with your actual code
- Specify the programming language
Improvise Usage đ
- Add specific focus areas (e.g., "Focus on security" or "Focus on performance")
- Request comparison with industry standards
- Ask for refactoring suggestions
- Request documentation improvements
Prerequisites
Help
We do not support samples, but this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues.
You can try looking at issues related to this sample to see if anybody else is having the same issues.
If you encounter any issues using this sample, create a new issue.
Finally, if you have an idea for improvement, make a suggestion.
Disclaimer
THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
Learn more
References
Background and supporting resources provided by the contributor.