Agent skill

review-pr

Comprehensive PR review with code analysis and feedback

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/review-pr-sasamuku-dotfiles-2

SKILL.md

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.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results