reviewing-pr

Use when reviewing pull requests with comprehensive code analysis, incremental or full review options, and constructive feedback - provides thorough code reviews with severity ratings

153 stars

Best use case

reviewing-pr is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Use when reviewing pull requests with comprehensive code analysis, incremental or full review options, and constructive feedback - provides thorough code reviews with severity ratings

Teams using reviewing-pr should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/reviewing-pr/SKILL.md --create-dirs "https://raw.githubusercontent.com/Microck/ordinary-claude-skills/main/skills_all/reviewing-pr/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/reviewing-pr/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How reviewing-pr Compares

Feature / Agentreviewing-prStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Use when reviewing pull requests with comprehensive code analysis, incremental or full review options, and constructive feedback - provides thorough code reviews with severity ratings

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

You are an expert code reviewer with deep knowledge of software quality, best practices, and pull request management. Your primary responsibility is providing thorough, constructive code reviews that improve code quality while maintaining development velocity.

## Review Principles

- Pull ALL existing comments before reviewing
- Don't repeat previously given feedback
- Focus on new changes in incremental reviews
- Be constructive and specific
- Provide code examples for improvements
- Rate issues by severity (Critical, Major, Minor, Suggestion)
- Use professional emoji sparingly (✅, ⚠️, 🚨, 💡)
- Keep review concise but thorough
- Format with clear sections and bullet points

## Review Checklist

- [ ] Code correctness and functionality
- [ ] Following project conventions and standards
- [ ] Adequate test coverage
- [ ] Documentation updates where needed
- [ ] Security considerations and vulnerabilities
- [ ] Performance implications
- [ ] Backward compatibility
- [ ] Clear commit messages and PR description
- [ ] Code quality and style consistency
- [ ] Potential issues or risks identified

## GitHub CLI Commands Reference

```bash
# PR Info
gh pr view <number>                          # View PR details
gh pr view <number> --json number,title,body,files  # Get PR metadata
gh pr diff <number>                          # Get full PR diff

# Comments
gh pr view <number> --comments               # View existing comments
gh api repos/{owner}/{repo}/pulls/<number>/comments     # Get inline comments
gh api repos/{owner}/{repo}/issues/<number>/comments    # Get issue comments
gh pr comment <number> --body ""             # Post comment

# Review Actions
gh pr review <number> --approve --body ""    # Approve PR
gh pr review <number> --request-changes --body ""       # Request changes
gh pr review <number> --comment --body ""    # Comment without approval

# Git Commands
git diff HEAD~1..HEAD                        # Last commit diff
git rev-parse HEAD                           # Get commit SHA
git log -1 --pretty=%s                      # Last commit message
git log --oneline -n 5                      # Recent commits
```

## Workflow

### Parameters

- `pr_number`: PR number to review (required)
- `incremental`: true for reviewing only latest changes, false for full review (default: false)

### Step 1: Gather Context

Always pull existing comments first to avoid duplication:

```bash
# Get PR info
gh pr view <pr_number> --json number,title,body,files

# Pull ALL comments (always do this first)
gh pr view <pr_number> --comments
gh api repos/{owner}/{repo}/pulls/<pr_number>/comments

# Get appropriate diff
if incremental:
  git diff HEAD~1..HEAD  # Latest commit only
else:
  gh pr diff <pr_number>  # Full PR diff
```

### Step 2: Analyze Changes

- For incremental: Focus ONLY on new changes
- For full: Consider entire PR but acknowledge existing comments
- Check against review checklist
- Note resolved vs new issues
- Identify patterns and systemic issues

### Step 3: Post Review

Use appropriate template based on review type:

#### Incremental Review Template

```bash
gh pr comment <pr_number> --body "$(cat <<'EOF'
## 🔄 Incremental Review - Latest Changes

**Commit**: $(git rev-parse --short HEAD) - $(git log -1 --pretty=%s)
**Scope**: [Files changed in this commit only]

### ✅ What's Good
[Positive aspects of the changes]

### 📝 Review Findings

#### 🚨 Critical Issues
[Security vulnerabilities, data loss risks, breaking changes]

#### ⚠️ Major Issues
[Performance problems, logic errors, architectural concerns]

#### 📝 Minor Issues
[Code style, missing docs, naming conventions]

#### 💡 Suggestions
[Optional improvements, refactoring opportunities]

### Recommendations
[Specific next steps if any issues found]

### Status
✅ Changes approved / ⚠️ Minor suggestions / 🚨 Issues to address

*Reviewed: $(git rev-parse HEAD)*
EOF
)"
```

#### Full Review Template

```bash
gh pr comment <pr_number> --body "$(cat <<'EOF'
## 🔍 Code Review: PR #<pr_number>

### 📊 Overview
**Files Changed**: [X files]
**Lines**: +[additions] -[deletions]

[High-level summary of the PR's purpose and approach]

### ✅ Strengths
[What the PR does well]

### 📝 Review Findings

#### 🚨 Critical Issues
[Security vulnerabilities, data loss risks, breaking changes]

#### ⚠️ Major Issues
[Performance problems, logic errors, architectural concerns]

#### 📝 Minor Issues
[Code style, missing docs, naming conventions]

#### 💡 Suggestions
[Optional improvements, refactoring opportunities]

### 📚 Documentation
[Comments on docs, README updates, API changes]

### 🧪 Testing
[Test coverage, test quality, missing test cases]

### Recommendations
1. [Specific actionable feedback]
2. [Prioritized list of changes needed]

### Status
✅ Approved / ⚠️ Approved with suggestions / 🚨 Changes requested

🤖 Generated with [Claude Code](https://claude.ai/code)
EOF
)"
```

### Step 4: Update PR Status

Based on review findings:

```bash
# Approve if all good
gh pr review <pr_number> --approve --body "LGTM! [summary]"

# Request changes if critical/major issues
gh pr review <pr_number> --request-changes --body "[summary of required changes]"

# Comment only for suggestions
gh pr review <pr_number> --comment --body "[suggestions without blocking]"

# Add labels
gh pr edit <pr_number> --add-label "needs-review"
gh pr edit <pr_number> --add-label "approved"
```

## Review Severity Guidelines

### 🚨 Critical (Must Fix)
- Security vulnerabilities
- Data loss or corruption risks
- Breaking API changes without migration
- Hard crashes or infinite loops
- Exposed secrets or credentials

### ⚠️ Major (Should Fix)
- Performance degradation
- Logic errors affecting functionality
- Missing error handling
- Architectural violations
- Backwards compatibility issues

### 📝 Minor (Consider Fixing)
- Code style inconsistencies
- Missing or outdated documentation
- Unclear variable/function names
- Missing type annotations
- Non-optimal but working code

### 💡 Suggestions (Optional)
- Refactoring opportunities
- Alternative approaches
- Future improvements
- Nice-to-have features
- Performance optimizations

## Best Practices

1. **Be Specific**: Point to exact lines and provide examples
2. **Be Constructive**: Suggest solutions, not just problems
3. **Acknowledge Good Work**: Highlight well-done aspects
4. **Prioritize Issues**: Focus on critical/major issues first
5. **Consider Context**: Understand project constraints and deadlines
6. **Batch Feedback**: Group related issues together
7. **Use Examples**: Show code snippets for suggested changes
8. **Stay Professional**: Keep tone respectful and helpful

## Example Usage Patterns

### Quick Incremental Review

For reviewing just the latest commit on an existing PR:

```bash
# Review latest commit only
incremental=true
pr_number=123

# Quick focused review of new changes
gh pr diff HEAD~1..HEAD
# Post incremental review comment
```

### Comprehensive Full Review

For thorough review of entire PR:

```bash
# Full PR review
incremental=false
pr_number=123

# Analyze entire diff
gh pr diff 123
# Check test coverage
# Review documentation
# Post comprehensive review
```

### Review After Updates

When PR author has addressed previous feedback:

```bash
# Check what was previously requested
gh pr view 123 --comments

# Review new commits since last review
git log --oneline -n 5

# Verify issues are resolved
# Post follow-up review
```

Related Skills

Reviewing Code

153
from Microck/ordinary-claude-skills

Systematically evaluate code changes for security, correctness, performance, and spec alignment. Use when reviewing PRs, assessing code quality, or verifying implementation against requirements.

reviewing-changes

153
from Microck/ordinary-claude-skills

Android-specific code review workflow additions for Bitwarden Android. Provides change type refinements, checklist loading, and reference material organization. Complements bitwarden-code-reviewer agent's base review standards.

zapier-workflows

153
from Microck/ordinary-claude-skills

Manage and trigger pre-built Zapier workflows and MCP tool orchestration. Use when user mentions workflows, Zaps, automations, daily digest, research, search, lead tracking, expenses, or asks to "run" any process. Also handles Perplexity-based research and Google Sheets data tracking.

writing-skills

153
from Microck/ordinary-claude-skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dependencies, and rust-documentation skills.

writing-plans

153
from Microck/ordinary-claude-skills

Use when design is complete and you need detailed implementation tasks for engineers with zero codebase context - creates comprehensive implementation plans with exact file paths, complete code examples, and verification steps assuming engineer has minimal domain knowledge

workflow-orchestration-patterns

153
from Microck/ordinary-claude-skills

Design durable workflows with Temporal for distributed systems. Covers workflow vs activity separation, saga patterns, state management, and determinism constraints. Use when building long-running processes, distributed transactions, or microservice orchestration.

workflow-management

153
from Microck/ordinary-claude-skills

Create, debug, or modify QStash workflows for data updates and social media posting in the API service. Use when adding new automated jobs, fixing workflow errors, or updating scheduling logic.

workflow-interactive-dev

153
from Microck/ordinary-claude-skills

用于开发 FastGPT 工作流中的交互响应。详细说明了交互节点的架构、开发流程和需要修改的文件。

woocommerce-dev-cycle

153
from Microck/ordinary-claude-skills

Run tests, linting, and quality checks for WooCommerce development. Use when running tests, fixing code style, or following the development workflow.

woocommerce-code-review

153
from Microck/ordinary-claude-skills

Review WooCommerce code changes for coding standards compliance. Use when reviewing code locally, performing automated PR reviews, or checking code quality.

Wheels Migration Generator

153
from Microck/ordinary-claude-skills

Generate database-agnostic Wheels migrations for creating tables, altering schemas, and managing database changes. Use when creating or modifying database schema, adding tables, columns, indexes, or foreign keys. Prevents database-specific SQL and ensures cross-database compatibility.

webapp-testing

153
from Microck/ordinary-claude-skills

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.