بنقرة واحدة
pr-review
Review a pull request for code quality, test coverage, security, and best practices
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Review a pull request for code quality, test coverage, security, and best practices
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
View and edit gasclaw maintainer configuration at runtime
Check and apply updates to all Gastown dependencies
Create well-structured conventional commit messages from staged changes
Create a well-structured PR with conventional commit title and descriptive body
Monitor PR CI checks and review comments, auto-fix failures and address feedback
Write docstrings for PyTorch functions and methods following PyTorch conventions. Use when writing or updating docstrings in PyTorch code.
| name | pr-review |
| description | Review a pull request for code quality, test coverage, security, and best practices |
| metadata | {"openclaw":{"emoji":"🔍","os":["linux"],"requires":{"bins":["gh","git"]}}} |
| parameters | {"pr":{"type":"string","description":"PR number, URL, or branch name to review","required":false},"focus":{"type":"string","description":"Review focus area: all, security, tests, style, architecture (default: all)","required":false}} |
Review a pull request for code quality, correctness, test coverage, security, and best practices.
This skill performs a thorough code review, either on:
It produces structured feedback with actionable comments.
PR mode (number or URL provided):
# Get PR metadata
gh pr view "$PR" --json title,body,baseRefName,headRefName,files,additions,deletions,author,labels
# Get the full diff
gh pr diff "$PR"
# Get existing review comments (avoid duplicating feedback)
gh api repos/{owner}/{repo}/pulls/{pr}/comments --jq '.[].body'
Local branch mode (no PR specified):
# Determine base branch
BASE=$(git merge-base HEAD main || git merge-base HEAD master)
# Get the diff
git diff "$BASE"...HEAD
# Get changed files
git diff "$BASE"...HEAD --name-only
For each changed file, evaluate:
Structure the review as:
## Review Summary
**PR**: #<number> — <title>
**Author**: <author>
**Files changed**: <count> (+<additions>, -<deletions>)
**Verdict**: APPROVE | REQUEST_CHANGES | COMMENT
### Key Findings
1. **[severity]** <file>:<line> — <description>
Suggestion: <what to do instead>
2. ...
### Positive Notes
- <things done well>
### Test Coverage
- <assessment of test adequacy>
### Security
- <any security concerns or "No issues found">
Severity levels:
For GitHub PRs, post the review:
# Submit as a review (not individual comments)
gh pr review "$PR" --comment --body "$REVIEW_BODY"
# Or with a verdict:
gh pr review "$PR" --approve --body "$REVIEW_BODY"
gh pr review "$PR" --request-changes --body "$REVIEW_BODY"
For local branches, print the review to stdout.
For specific line-level feedback, post inline comments:
gh api repos/{owner}/{repo}/pulls/{pr}/comments \
-f body="<comment>" \
-f path="<file>" \
-F line=<line_number> \
-f side="RIGHT" \
-f commit_id="$(gh pr view $PR --json headRefOid -q .headRefOid)"