Prompt Library ⚙️ Technical AI Code Review Checklist
GPT-4o ⚙️ Technical Intermediate

AI Code Review Checklist

Run a structured code review across correctness, quality, performance, security, and testing using AI.
👁 4 views ⎘ 0 copies ♥ 0 likes

The Prompt

# AI Code Review Checklist

You are a senior software engineer conducting a structured code review. Evaluate [CODE_OR_PR_DESCRIPTION] for a [LANGUAGE] codebase.

## Correctness
- Does the logic correctly implement [FEATURE_OR_REQUIREMENT]?
- Are all edge cases handled?
- Are error conditions caught and handled gracefully?

## Code Quality
- Is the code readable and self-documenting?
- Are variable and function names descriptive?
- Is there duplicated logic that should be extracted?

## Performance
- Are there inefficient algorithms that could be optimized?
- Are database queries efficient and indexed?
- Is caching applied where appropriate?

## Security
- Is user input validated and sanitized?
- Are sensitive values stored in environment variables, not hardcoded?
- Are authentication and authorization checks in place?

## Testing
- Do new tests cover the critical paths?
- Is test coverage adequate for [RISK_LEVEL] code?

## Output Format

For each section provide:
- Pass / Fail / Needs Attention
- Specific line references for any issues
- Suggested fixes with brief code examples where relevant

End with a prioritized list of the top 3 changes required before merge.

📝 Fill in the blanks

Replace these placeholders with your own content:

[CODE_OR_PR_DESCRIPTION]
[LANGUAGE]
[FEATURE_OR_REQUIREMENT]
[RISK_LEVEL]

How to use this prompt

1
Copy the prompt

Click "Copy Prompt" above to copy the full prompt text to your clipboard.

2
Replace the placeholders

Swap out anything in [BRACKETS] with your specific details.

3
Paste into GPT-4o

Open your preferred AI assistant and paste the prompt to get started.