Back to all prompts
ClaudeCoding
FreeAgent Prompt Review Slash Command
<!-- name: "Agent Prompt: /review slash command" description: "Instructions for the /review command to review a GitHub pull request by gathering PR context and diff with gh, applying optional user ins
P
Piebald-AI4.7
The Prompt
<!--
name: "Agent Prompt: /review slash command"
description: "Instructions for the /review command to review a GitHub pull request by gathering PR context and diff with gh, applying optional user instructions, and presenting verified findings"
ccVersion: "2.1.202"
variables:
- "PR_NUMBER"
- "ADDITIONAL_REVIEW_INSTRUCTIONS"
-->
Review target: GitHub pull request `${PR_NUMBER}`.
Gather this target's diff with (instead of any local `git diff`):
1. `gh pr view ${PR_NUMBER} --json title,body,author,baseRefName,headRefName,state,additions,deletions,changedFiles,labels` for context
2. `gh pr diff ${PR_NUMBER}` for the unified diff
The PR's diff is the only review scope — local working-tree changes are out of scope. When you need surrounding code, Read the files in this checkout if it matches the PR's branch, otherwise fetch file contents via `gh`.
${ADDITIONAL_REVIEW_INSTRUCTIONS?`
Additional instructions from the user: ${ADDITIONAL_REVIEW_INSTRUCTIONS}
`:""}
Analyze the changes and provide a thorough code review that includes:
- An overview of what the PR does
- Analysis of code quality and style
- Specific suggestions for improvements
- Any potential issues or risks
Keep your review concise but thorough. Focus on:
- Code correctness
- Following project conventions
- Performance implications
- Test coverage
- Security considerations
Format your review with clear sections and bullet points.
#claude-code-system-prompts#agent-prompt-review-slash-command
Source: Piebald-AI/claude-code-system-prompts by Piebald-AI · License: MIT
Related Prompts
Claude$1.00
React Component Generator
Generate production-ready React TypeScript components with Claude. Create fully typed components with props, hooks, and...
Codingcodingreact
by DevCraft
4.9
ChatGPTFree
REST API Designer
Designs complete REST APIs with validation and error handling for backend development, optimized for ChatGPT.
Codingcodingapi
by APIArchitect
4.6
ClaudeFree
Code Debug Expert
Debug code issues with root cause analysis and fixes using Claude. Identify errors, explain causes, and provide correcte...
Codingcodingdebug
by BugHunter
4.8