install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/brunoscardoso/plan-flow/review-pr" ~/.claude/skills/openclaw-skills-review-pr && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/brunoscardoso/plan-flow/review-pr" ~/.openclaw/skills/openclaw-skills-review-pr && rm -rf "$T"
manifest:
skills/brunoscardoso/plan-flow/review-pr/SKILL.mdsource content
Review PR
Review a Pull Request by its number using the GitHub CLI.
What It Does
- Fetches PR information using
gh pr view - Gets PR diff using
gh pr diff - Analyzes changes against project patterns
- Checks for security and performance issues
- Provides detailed findings and recommendations
- Generates a review document
Usage
/review-pr <pr_number>
Arguments:
(required): The PR number to reviewpr_number
Prerequisites
CLI must be installed and authenticatedgh- Run
if not authenticatedgh auth login
Output
Creates:
flow/reviewed-pr/pr_<number>.md
Review Focus Areas
| Area | What's Checked |
|---|---|
| Code Quality | Pattern consistency, naming, organization |
| Security | Secrets, injection, authentication |
| Performance | N+1 queries, unnecessary loops, caching |
| Testing | Test coverage, edge cases |
| Documentation | Comments, README updates |
Review Document Structure
# PR Review: #<number> ## PR Information | Field | Value | |-------|-------| | Title | PR title | | Author | username | | Branch | feature -> main | | Files Changed | N | ## Summary What this PR does ## Findings ### Finding 1: [Name] | Field | Value | |-------|-------| | File | path/to/file | | Severity | Major | **Description**: What's wrong **Suggested Fix**: How to fix it ## Security Considerations Any security concerns ## Performance Considerations Any performance concerns ## Recommendation | Status | Approve / Request Changes / Comment |
Example
/review-pr 123
Output:
Reviewing PR #123... Fetching PR information... Fetching PR diff... Analyzing changes... PR #123 Review Complete! Summary: Adds user authentication with OAuth Files Changed: 12 Findings: 2 Major, 3 Minor Review saved to: flow/reviewed-pr/pr_123.md Recommendation: Request Changes - Fix the 2 major issues before merging
Authentication
If you get authentication errors:
# Authenticate with GitHub gh auth login # Verify authentication gh auth status