Review Pr

Comprehensive PR review with code analysis and feedback

majiayu000 d0a7dd4 2 files · 1.8 KB Updated 567 repo stars

File contents

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:

    gh pr view <number>
    
  3. Get the diff:

    gh pr diff <number>
    
  4. Fetch existing review comments:

    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.

majiayu000/claude-skill-registry-data/tree/main/quality/review-pr-sasamuku-dotfiles-2 commit d0a7dd4911

Frequently asked questions

npx skillmds add majiayu000/review-pr-7