원클릭으로
pr-review
Use when reviewing GitHub pull requests, checking PR quality, analyzing PR changes, or user invokes /pr-review
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use when reviewing GitHub pull requests, checking PR quality, analyzing PR changes, or user invokes /pr-review
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use when researching state-of-the-art algorithms for a problem, finding academic papers, comparing algorithm approaches, needing paper citations, or user invokes /algorithm-research
Use when researching algorithms, data structures, optimization, performance, or need modern alternatives to classic algorithms
Use when creating benchmarks, measuring performance, comparing implementations, or user invokes /benchmark. Provides step-by-step workflow for benchmark creation, data generation, and results interpretation.
Use when analyzing code cognitive load, onboarding difficulty, or user invokes /cognitive-audit for complexity analysis and refactoring recommendations
Use when analyzing cognitive load, code complexity, onboarding difficulty, readability concerns, maintainability issues, or applying Ousterhout principles for deep modules, reducing complexity, and strategic programming approaches
Use when implementing concurrent operations, choosing between concurrency models, designing async workflows, or working with parallel data processing
| name | pr-review |
| description | Use when reviewing GitHub pull requests, checking PR quality, analyzing PR changes, or user invokes /pr-review |
Automated GitHub Pull Request review using gh CLI. Checks code against project standards, identifies issues with confidence-based filtering, and triggers cognitive complexity analysis for large changes.
Invoke with /pr-review when:
Skip this skill when:
/review instead)/precommit)/cognitive-audit)Required:
gh CLI installed and authenticatedSetup:
# Install gh CLI
brew install gh # macOS
# or apt install gh # Linux
# Authenticate
gh auth login
# Verify access
gh pr list
If gh CLI unavailable: Review findings will be reported in the terminal rather than posted as PR comments.
# Review specific PR
/pr-review 123
# Review current branch's PR
/pr-review
# Review with PR URL
/pr-review https://github.com/owner/repo/pull/456
This skill typically uses:
# Get PR metadata
gh pr view 123 --json number,title,body,author,files,additions,deletions
# Get PR diff
gh pr diff 123
# List changed files
gh pr view 123 --json files --jq '.files[].path'
Thresholds for cognitive review:
Large PRs trigger parallel cognitive-scientist agent for complexity analysis.
For all PRs - pr-reviewer agent executes:
# SPIKE: markers)For large PRs - Also launch cognitive-scientist:
Post findings as PR comment using:
gh pr comment 123 --body "$(cat review.md)"
Only report issues with >=80% confidence to reduce noise.
90-100% (Critical):
- Missing tests (objective)
- Missing typespecs (objective)
- Security vulnerabilities (clear evidence)
- Project convention violations (documented)
80-89% (Important):
- Logic bugs (clear evidence)
- Performance issues (measurable)
- Missing error handling (likely needed)
- Pattern violations (established pattern)
<80% (Not reported in main findings):
- Subjective style preferences
- Speculative improvements
- Uncertain issues
Lower-confidence observations go in "Additional Notes" section.
Language-Specific Standards:
Elixir:
with for railway programmingRust:
? operatorSee the language-specific patterns skill for full standards.
Testing:
Phoenix/LiveView (Elixir only):
to_form/2on_mount hooks for authSecurity:
Against project-learnings.md:
Against AGENTS.md/CLAUDE.md:
Detection markers:
# SPIKE: <reason>
# TODO: Add type annotations
# TODO: Add tests
When SPIKE code is found in PR, report:
/spike-migrate## Code Review Summary
### 📊 Change Statistics
- Files changed: 8
- Lines added: +452
- Lines deleted: -23
- Complexity: Medium
### ✅ Strengths
- [List positive aspects of the PR]
### ⚠️ Issues Found
#### [Critical] Issue title (Confidence: 95%)
**File**: `path/to/file.ex:45`
**Issue**: Description
**Recommendation**: Fix suggestion with code example
#### [Important] Issue title (Confidence: 85%)
**File**: `path/to/file.ex:23`
**Issue**: Description
**Recommendation**: Fix suggestion
### 🧠 Cognitive Complexity Analysis
[For large PRs - output from cognitive-scientist agent]
### 🚀 SPIKE Code
[List any SPIKE code detected, or "None detected"]
### 📝 Next Steps
- [ ] Action items for the developer
- [ ] Run `/precommit` before merging
---
🤖 Generated with Claude Code
❌ PR Not Found
Error: PR #999 does not exist in this repository
Check:
- PR number is correct
- You have access to the repository
- PR hasn't been closed/deleted
❌ Not in Git Repository
Current directory is not a git repository.
Navigate to your project root and try again.
❌ GitHub CLI Not Authenticated
Run: gh auth login
Then try the pr-review command again.
If gh CLI is not installed, the skill will:
# View PR
gh pr view <number>
gh pr view <number> --json title,body,author,files,additions,deletions
# Get diff
gh pr diff <number>
# List changed files
gh pr view <number> --json files --jq '.files[].path'
# Post comment
gh pr comment <number> --body "review text"
# Post review (approve/request changes)
gh pr review <number> --comment --body "review text"
gh pr review <number> --approve --body "LGTM!"
gh pr review <number> --request-changes --body "Please address..."
# Check CI status
gh pr checks <number>
# List PRs
gh pr list --state open --limit 10
Review strictness (can be configured in project-specific settings):
Cognitive threshold:
/learnReview succeeds when:
/review - Local code review (before PR)/precommit - Quality gate before commit/cognitive-audit - Deep complexity analysis/spike-migrate - Upgrade SPIKE code found in PR