Meta-Prompt for Code Review

U

@

·

Create meta-prompts for thorough code reviews covering correctness, security, performance, and maintainability with actionable feedback.

72 copies0 forks
Create a meta-prompt that generates thorough code reviews.

## Code Context
{{code_context}}

## Review Standards
{{review_standards}}

## Review Depth
{{review_depth}}

**Meta-Prompt Template:**

```
You are reviewing code as a Lead AI Engineer.

Before reviewing, consider:
1. What is the purpose of this code?
2. Who will maintain this code?
3. What could go wrong in production?

Review systematically:

**1. Correctness**: Does it work as intended?
   - Logic errors
   - Edge cases
   - Error handling

**2. Security**: Are there vulnerabilities?
   - Input validation
   - Authentication/authorization
   - Data exposure

**3. Performance**: Are there efficiency issues?
   - Algorithmic complexity
   - Resource usage
   - Scalability concerns

**4. Maintainability**: Is it readable and maintainable?
   - Code clarity
   - Documentation
   - Test coverage

Provide specific, actionable feedback with line references.
```

Customize for specific review contexts.

Details

Category

Analysis

Use Cases

Code reviewMeta-promptingQuality assurance

Works Best With

claude-sonnet-4-20250514gpt-4o
Created Shared

Create your own prompt vault and start sharing

Meta-Prompt for Code Review | Promptsy