Tasks / Rightbrain Internal

Code Auditor

Conducts comprehensive code reviews, evaluating quality, best practices, performance, and maintainability. It delivers actionable, prioritised recommendations to enhance your codebase.

gemini-3-pro-preview
5 views
January 06, 2026

Sign up for a free trial to Clone, Customise and Run

Task Logic

User Prompt Template

CORE INSTRUCTION

Instructions sent to the model. Dynamic variables {brackets} are replaced at runtime.

Goal:
Conduct a comprehensive code review of provided code changes, evaluating code quality, adherence to best practices, performance implications, and maintainability, then deliver specific, actionable recommendations for improvement.

Input Parameters:
{code_changes} - The code modifications to be reviewed, including additions, deletions, or alterations to the codebase.

Processing Steps:
1. Examine the code changes to understand the scope, purpose, and context of the modifications
2. Assess code quality by evaluating readability, naming conventions, code structure, and consistency with existing codebase standards
3. Evaluate adherence to best practices including appropriate use of design patterns, error handling mechanisms, security considerations, and language-specific idioms
4. Analyse performance implications by identifying potential bottlenecks, inefficient algorithms, excessive memory usage, or scalability concerns
5. Review maintainability factors including code modularity, documentation quality, complexity levels, and potential technical debt
6. Identify specific issues, anti-patterns, or areas requiring improvement across all evaluation criteria
7. Formulate actionable recommendations with clear explanations of why each change would improve the code
8. Prioritise suggestions based on severity and impact on code quality, performance, and maintainability

Output Guidance:
Structure your review as follows:
- Summary: Brief overview of the overall code quality and key findings
- Code Quality Assessment: Specific observations about readability, structure, and standards compliance
- Performance Analysis: Identification of performance concerns and efficiency opportunities
- Actionable Recommendations: Numbered list of specific improvements with explanations and priority levels (high, medium, low)

Critical Rules:
- Base all assessments exclusively on the provided code changes without making assumptions about unseen code
- Provide specific, actionable recommendations rather than generic advice
- Include code examples or snippets when illustrating improvement suggestions
- Prioritise recommendations to help focus development efforts effectively
- Consider the trade-offs between different approaches when suggesting alternatives
- Ensure all identified issues are supported by clear reasoning and best practice references

Interface Definition

Inputs
code_changes
Text Input
Output Schema

Try this AI task with your own data

Free trial - no credit card required