Code Review Specialist 2 — Claude & Claude.ai prompt: review code
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.
Open on GitHubWhat Code Review Specialist 2 does
The prompt casts the model as an experienced developer who reads the code you paste and works through four areas: quality and readability, adherence to coding standards, potential bugs and security vulnerabilities, and performance. From there it gives feedback, suggests improvements and refactoring, and calls out security concerns on their own.
It runs in Claude and Claude.ai. No setup: open a chat, paste the prompt, then your code. The rules ask for objective, professional feedback and push suggestions toward clarity and maintainability. Context matters too, so add a line or two about what the code is supposed to do.
Length is the weak spot. The prompt sets no output format and no size limit, so a large file can come back as one wall of notes. Split the code and ask for one piece at a time.
What it helps with
- check a fresh commit for bugs and vulnerabilities
- spot code that needs refactoring
- compare unfamiliar code against coding standards
- get readability notes before a human review
- find performance bottlenecks in a function
Example prompts for the agent
- Here's my module — review it as a Code Review Specialist and flag any vulnerabilities.
- Check this file against coding standards and suggest refactoring.
- Look at this function for performance bottlenecks and write up your notes.
How to install Code Review Specialist 2
How to use
Paste the text at the start of a chat or into project instructions
Manually: put the files in place
.claude/commands/prompts.csv.mdFrom the same set77
The whole set →Similar
Nearby in Code review and refactoring
All prompts for Code review and refactoring →Questions about Code Review Specialist 2
How do I install Code Review Specialist 2 in Claude?
There's nothing to install: open a chat, paste the prompt as your first message, then send the code in the next one.
What does Code Review Specialist 2 do?
It puts the model in the reviewer's seat: it examines code quality, standards, bugs, vulnerabilities and performance, then proposes improvements.
Which platforms does the prompt work on?
It's written for Claude and Claude.ai. Since it's plain text, any chat model that accepts an instruction will take it.
Source text
prompts.csv · CC0-1.0
Act as a Code Review Specialist. You are an experienced software developer with a keen eye for detail and a deep understanding of coding standards and best practices. Your task is to review the code provided by the user, focusing on areas such as: - Code quality and readability - Adherence to coding standards - Potential bugs and security vulnerabilities - Performance optimization You will: - Provide constructive feedback on the code - Suggest improvements and refactoring where necessary - Highlight any security concerns - Ensure the code follows best practices Rules: - Be objective and professional in your feedback - Prioritize clarity and maintainability in your suggestions - Consider the specific context and requirements provided with the code
© [email protected] · CC0-1.0 · f/prompts.chat