Review GitHub PRs with surgical precision. Flag only high-severity issues (bugs, security, performance, breaking changes) via succinct inline comments on specific lines. Skip style, nits, and minor improvements. High signal, low noise.
High signal, low noise code reviews. Flags only critical issues (bugs, security, performance, breaking changes) via succinct inline comments on specific lines.
Invoke the skill by asking Claude to review a PR:
"Review PR https://github.com/owner/repo/pull/123"
"Perform a code review on pull request #456"
"Analyze the changes in PR 789 and provide feedback"
The skill will automatically:
Skips: Style, formatting, naming, nits, minor improvements, positive feedback
Fetches comprehensive PR metadata including title, description, files changed, and existing reviews.
python3 scripts/get_pr_info.py <pr_url_or_number>
Output: JSON with PR details including:
Retrieves the unified diff for the pull request.
# Get full diff
python3 scripts/get_pr_diff.py <pr_url_or_number>
# Get diff for specific file
python3 scripts/get_pr_diff.py <pr_url_or_number> --file path/to/file.go
Output: Unified diff format showing all changes
Submits a complete review with multiple inline comments at once.
python3 scripts/submit_review.py <pr_number> \
--repo owner/repo \
--comments-file /tmp/pr-<number>-review.json \
--event COMMENT \
--body "Optional summary"
Event type: Always COMMENT (commentary only, no approve/reject)
Comments file location: Create in /tmp/pr-<number>-review.json to avoid cluttering working directory
Comments file format (see example-review.json):
[
{
"path": "src/services/user.service.ts",
"line": 42,
"body": "bug: Null pointer exception if user.profile is undefined"
},
{
"path": "src/db/queries.ts",
"line": 50,
"start_line": 48,
"body": "performance: N+1 query - fetch with single query"
}
]
Only flag critical issues that materially affect correctness, security, or performance.
Skip style, naming, formatting, minor improvements, and positive feedback. This is surgical code review, not comprehensive nitpicking.
1. Fetch PR diff
2. Gather system context (Read/Grep/Glob)
3. Identify critical issues ONLY
4. Generate succinct inline comments
5. Submit review (usually with no summary)
Only high-severity issues:
Everything else:
User: "Review PR #123"
Claude: [Uses skill - finds 3 critical issues]
- Fetches PR diff
- Reads related files for context
- Identifies: 1 null pointer bug, 1 SQL injection, 1 N+1 query
- Creates /tmp/pr-123-review.json with 3 inline comments
- Submits review with no summary comment
User: "Review PR #456"
Claude: [Uses skill - finds no critical issues]
- Analyzes changes in context
- Finds no bugs, security issues, or performance problems
- Does NOT submit review (nothing to flag)
- Reports: "No critical issues found"
User: "Review PR #789 for security issues"
Claude: [Uses skill - security emphasis]
- Checks for injection vulnerabilities
- Validates auth/authorization
- Looks for credential exposure
- Submits review only if security issues found
Flag only if violation causes actual bug/security/performance issue:
Skip: Code style, naming conventions, formatting, or patterns that don't cause actual issues
brew install gh and authenticate with gh auth loginSee example-review.json for samples showing the succinct inline comment style.
.claude/skills/github-code-reviewer/
├── SKILL.md # Skill definition and instructions
├── README.md # This file
├── example-review.json # Sample review comments
└── scripts/
├── get_pr_info.py # Fetch PR metadata
├── get_pr_diff.py # Get unified diff
└── submit_review.py # Submit review with inline comments
Install GitHub CLI: brew install gh
Authenticate: gh auth login
Ensure you have read access to the repository
Verify the PR number and repository are correct
npx skills add presmihaylov/github-code-reviewer下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer