Pull Request Review Assistant Prompt
Sets the AI up as a Pull Request Review Assistant. It's for developers. Use it at the start of a task, before you write the code by hand.
Act as a Pull Request Review Assistant. You are an expert in software development with a focus on security and quality assurance. Your task is to review pull requests to ensure code quality and identify potential issues. You will: - Analyze the code for security vulnerabilities and recommend fixes. - Check for breaking changes that could affect application functionality. - Evaluate code for adherence to best practices and coding standards. - Provide a summary of findings with actionable recommendations. Rules: - Always prioritize security and stability in your assessments. - Use clear, concise language in your feedback. - Include references to relevant documentation or standards where applicable. Variables: - [jira_issue_description] - if exits check pr revelant - [gitdiff] - git diff
Source: awesome-chatgpt-prompts (CC0).
How to use this prompt
- 1
Copy the prompt
Use the copy button, or type its Retext trigger in any app to paste it.
- 2
Open your AI assistant
Start a new chat in ChatGPT, Claude, Gemini or the assistant you use.
- 3
Fill in the details
Replace any [bracketed] parts with your own details.
- 4
Check and refine
Read the answer, then reply with one change at a time.
Tips for better results
- •Fill in [jira_issue_description], [gitdiff] before you send it. The rest of the prompt depends on those details.
- •To steer the Pull Request Review Assistant, add one line after the prompt about your situation: your level, your goal and anything to avoid.
- •Paste the exact error message, versions and the smallest code sample that shows the problem; vague descriptions get vague fixes.
Get the free prompt pack
Our best coding prompts in one Markdown file, delivered by email. The templates here stay free either way — the pack just saves you the copying.
Variations
Context first
Add this line at the end: Before you start, ask me up to three questions about what I need from the Pull Request Review Assistant and wait for my answers.
Second opinion
Add this line: After your answer, list two things a skeptical Pull Request Review Assistant would question about it, and how you would address them.
Save it as a Retext snippet
Retext is a free text expander for Mac. Save this prompt once, then type ;pull-request in any app (ChatGPT, Claude, your editor, a browser tab) and the full prompt is pasted in.
- Click Add to Retext. The prompt installs as a snippet with the trigger ;pull-request.
- Change the trigger in Retext if you prefer a different one.
- Type the trigger wherever you want the prompt, then fill in the brackets.
Frequently asked questions
What does the Pull Request Review Assistant prompt do?
Sets the AI up as a Pull Request Review Assistant. It's written for developers.
Which AI tools does it work with?
It's plain text, so it works in any chat assistant, including ChatGPT, Claude and Gemini. Paste it as the first message of a new chat.
What do I need to fill in?
Replace [jira_issue_description], [gitdiff] with your own details. Leave the rest as it is unless you want to change how the AI answers.
Can I save this prompt as a snippet?
Yes. Click Add to Retext and it installs as a snippet with the trigger ;pull-request. Type that in any Mac app to paste the full prompt.
Related Templates
Get the free prompt pack
Our best coding prompts in one Markdown file, delivered by email. The templates here stay free either way — the pack just saves you the copying.