Skip to main content
prompt GP ChatGPT

Code Review Expert — Claude & Claude.ai prompt: what it does

A prompt that turns a chat into a reviewer: it checks code for quality, performance, security and best practices. Useful before you commit.

Open on GitHub

What Code Review Expert does

The prompt sets up the role of an experienced developer and asks for a review across four areas: code quality and style, performance, security vulnerabilities, and compliance with best practices. You get detailed feedback, suggestions for improvement, and a heads-up on possible bugs.

It uses placeholders: ${language} for the programming language, ${framework} for the framework if there is one, and ${focusArea:general} for a specific area such as performance or security. general is the default, so an untouched prompt reviews the code as a whole.

The rules ask for constructive, actionable feedback and tell the model to respect the language and framework you provide, so the review stays inside your stack. For Claude the repository ships .claude/commands/prompts.csv.md; in Claude and Claude.ai you paste the prompt into the chat.

What it helps with

  • review your own code before a commit and spot weak spots
  • find security holes in a snippet before it reaches the repo
  • get suggestions for a slow function or query
  • check whether the code follows accepted practices
  • review unfamiliar code written in a framework you rarely touch

Example prompts for the agent

  • Review this code for security: ${language} is Python, ${framework} is Django
  • Do a review of this function, ${focusArea} is performance
  • Check this module for quality and style, language is TypeScript

How to install Code Review Expert

How to use

Paste the text at the start of a chat or into project instructions

Questions about Code Review Expert

How do I install Code Review Expert in Claude?

There is no install step: paste the prompt into the chat as a normal message and fill in ${language}, ${framework} and ${focusArea}.

What does Code Review Expert do?

It reviews the code you send across quality and style, performance, vulnerabilities and best practices, then returns feedback and suggestions for improvement.

Do I have to specify the language and framework?

Yes. The prompt relies on ${language} and ${framework}, while ${focusArea:general} sets the review focus. Without them the review falls back to general rules.

Source text

prompts.csv · CC0-1.0
Act as a Code Review Expert. You are an experienced software developer with extensive knowledge in code analysis and improvement.

Your task is to review the code provided by the user, focusing on areas such as:
- Code quality and style
- Performance optimization
- Security vulnerabilities
- Compliance with best practices

You will:
- Provide detailed feedback and suggestions for improvement
- Highlight any potential issues or bugs
- Recommend best practices and optimizations

Rules:
- Ensure feedback is constructive and actionable
- Respect the language and framework provided by the user

${language} - Programming language of the code
${framework} - Framework (if applicable)
${focusArea:general} - Specific area to focus on (e.g., performance, security)

© [email protected] · CC0-1.0 · f/prompts.chat

Similar prompts

All prompts for Code review and refactoring →

From the same set77

The whole set →
Commit Message Preparation This prompt shapes Git commit messages around Conventional Commits, with a type, scope, subject, body, and optional footer. Use it when reviewing a diff. GP ChatGPT ★ 174,597repo stars Sentry Bug Fixer A prompt that turns a chat model into a Sentry debugging assistant: read the report, rank the bug, propose a fix, verify it. GP ChatGPT ★ 174,597repo stars Code Review Specialist 2 A prompt that turns a chat model into a code reviewer: it checks readability, bugs, security holes and performance. Handy when you want a second pair of eyes on a commit. GP ChatGPT ★ 174,597repo stars File Analysis API with Node.js and Express A prompt that adds file analysis to an Express API while keeping the response format untouched. GP ChatGPT ★ 174,597repo stars ESP32 UI Library Development A prompt that puts the model in an embedded systems role and walks it through building a UI library for ESP32 on a fixed stack. GP ChatGPT ★ 174,597repo stars Bug Discovery Code Assistant Turns a chat model into a code reviewer: it hunts logical, syntax and runtime errors and suggests fixes. Handy when you need a second pass over an unfamiliar file. GP ChatGPT ★ 174,597repo stars Deep Copy Functionality A prompt that explains shallow versus deep copying and shows how to duplicate objects without leaving shared references behind. GP ChatGPT ★ 174,597repo stars Developer Work Analysis from Git Diff and Commit Message This prompt reviews a git diff and commit message, then summarizes the change scope, possible issues, key modifications, and recommendations. GP ChatGPT ★ 174,597repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor