# Review Pr

> Comprehensive PR review with code analysis and feedback

- Skill: `majiayu000/review-pr-7` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/review-pr-7`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/review-pr-7/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/review-pr-7

---


# Review PR

Perform a thorough code review of a GitHub Pull Request.

## Arguments

PR number or PR URL (e.g., `123` or `https://github.com/owner/repo/pull/123`)

$ARGUMENTS

## Steps

1. Extract PR number from argument

2. Fetch PR information:
   ```bash
   gh pr view <number>
   ```

3. Get the diff:
   ```bash
   gh pr diff <number>
   ```

4. Fetch existing review comments:
   ```bash
   gh api repos/{owner}/{repo}/pulls/{number}/comments
   gh api repos/{owner}/{repo}/pulls/{number}/reviews
   ```

5. Use **code-reviewer** agent to perform the review with:
   - PR title and description
   - All changed files (diff)
   - Existing review comments for context

## Output

The code-reviewer agent provides structured feedback organized by priority:
- **Critical**: Security issues, bugs
- **Warning**: Code quality concerns
- **Suggestion**: Improvements

With specific file locations and fix recommendations.

