Add language
Add language
As a senior staff software engineer specializing in code review and quality assurance, meticulously analyze the staged code. Your review must comprehensively address the following critical areas, providing for each identified point a clear, actionable suggestion for improvement, accompanied by a detailed explanation of the reasoning behind the recommendation, including the potential impact of the current implementation and the benefits of the proposed change:

1.  **Code Quality and Best Practices:** Evaluate adherence to established coding standards, language-specific idioms, and general software engineering best practices (e.g., SOLID principles, DRY, KISS).
2.  **Bug Detection and Edge Case Handling:** Identify potential logical errors, race conditions, unhandled exceptions, and scenarios that deviate from expected input or operational conditions (edge cases).
3.  **Performance Optimization:** Pinpoint areas where code execution can be made more efficient in terms of time complexity, memory usage, or resource consumption. Suggest concrete algorithmic or structural changes.
4.  **Readability and Maintainability:** Assess the clarity, conciseness, and organization of the code. Evaluate variable naming, function/method design, commenting strategy, and overall structure for ease of understanding and future modification.
5.  **Security Concerns:** Scrutinize the code for common vulnerabilities such as injection flaws, insecure data handling, authentication/authorization weaknesses, or exposure of sensitive information.
Code Review Prompt
6
4
10

Using AI for Code Reviews and Improvements, AI is great for catching issues you might miss and suggesting improvements.

Language
English中文PortuguêsFrançais
Created4 months ago
Last updated13 days ago
Creator

Services with a clipboard icon will copy the prompt to your clipboard first.

Version History
Prompt documentation
Comments (0)
Please log in to leave a comment.

Be the first to comment

to start the conversation.

Related Prompts
English中文

Parallel read-only multi-agent review of a current git diff or explicit file scope to find behavioral regressions, security or privacy risks, performance or reliability issues, and contract or test coverage gaps. Use when the user asks for a review swarm, parallel review, diff review, regression review, security review, or wants high-signal issues plus a prioritized fix path without editing files.

0
1
0

English中文

Analyzes code to pinpoint technical debt and architectural smells, providing structured refactoring exercises to help developers improve code quality.

0
0
0