Claude Code can review pull requests and analyze code for bugs, security issues, and improvements — directly in the terminal.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/killlowkey/claude-code/llms.txt
Use this file to discover all available pages before exploring further.
Reviewing a pull request
The/review command reviews a GitHub pull request. It uses gh pr list and gh pr diff under the hood, so you need the GitHub CLI installed and authenticated.
Run /review with no arguments to pick from open PRs interactively:
- Fetch the PR details and diff via
gh pr viewandgh pr diff - Analyze the changes for code quality, correctness, and potential issues
- Present a structured review with an overview, specific suggestions, and risk notes
What Claude checks
Claude’s PR review covers:- Code correctness — Logic errors, edge cases, null handling
- Security — Common vulnerability patterns, hardcoded secrets
- Performance — Inefficient patterns, potential bottlenecks
- Test coverage — Whether the changes are adequately tested
- Project conventions — Consistency with the surrounding codebase style
Reviewing PR comments
The/pr_comments command fetches open GitHub PR review comments and displays them with context:
Ad-hoc code review
You can also ask Claude to review code directly in conversation without using/review:
gh CLI workflow.
Typical review workflow
/review requires the GitHub CLI (gh) to be installed and authenticated. Run gh auth status to check. If you don’t have gh, use ad-hoc review by describing the code you want reviewed directly.