← ClaudeAtlas

humble-pr-reviewlisted

use when user asks for "code review", "review my PR", "review PR
Voronenko/ai-files · ★ 0 · Code & Development · score 60
Install: claude install-skill Voronenko/ai-files
# Humble Code Review ## Dependencies - External: `gh` CLI (GitHub), `git` ## Modes ### 1. Local review (uncommitted changes) Reviews `git diff` — changes not yet committed. ### 2. Branch review (vs main/master) Reviews all changes in current branch compared to main. ### 3. PR review (GitHub) Fetches diff from GitHub PR and can post comments. ### 4. Focused review User can request specific focus: security, performance, bugs, style, etc. --- ## How to execute ### Step 0: Check if review needed **Skip review if:** - PR is draft (`gh pr view --json isDraft`) - PR is already closed/merged - Only documentation changes (.md, .txt, LICENSE) - Only config changes (.json, .yaml, .toml) without code impact - Trivial changes (<5 lines, whitespace only, version bumps) **Inform user and ask to confirm if they still want review.** --- ### Step 1: Determine mode Ask user or detect automatically: - If PR number provided → PR review - If uncommitted changes exist → local review - If on feature branch → branch review - If specific focus requested → apply focus filter ### Step 2: Get diff **Local:** ```bash git diff HEAD ``` **Branch (vs main):** ```bash DEFAULT_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@' || echo "main") git diff $DEFAULT_BRANCH...HEAD ``` **PR:** ```bash gh pr diff <PR_NUMBER> ``` ### Step 3: Get context For thorough review, read related files: ```bash # List changed files git diff --name-only HEAD # Rea