بنقرة واحدة
review-pr
Run all automated PR checks — code conventions, documentation sync, and holistic review.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Run all automated PR checks — code conventions, documentation sync, and holistic review.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Full PR review workflow — Copilot triage, automated checks, change requests or approval.
Verify that a PR author addressed prior review feedback — parses checklist items from the reviewer's comment and checks each against new commits.
Pre-flight checks, approve, squash-merge, and delete branch for a PR.
Draft and post a structured PR comment requesting specific changes from the author.
Fetch and classify Copilot's review suggestions on a PR as incorporate, ignore, or discuss.
Check whether code changes need documentation updates.
| name | review-pr |
| description | Run all automated PR checks — code conventions, documentation sync, and holistic review. |
| disable-model-invocation | true |
Run a comprehensive automated review of a pull request using three specialized agents.
The PR number is: $ARGUMENTS
If no PR number was provided, detect it from the current branch:
gh pr view --json number --jq .number
Run these commands:
PR metadata:
gh pr view <PR> --json title,body,author,headRefName,baseRefName,mergeable,mergeStateStatus
CI status:
gh pr checks <PR>
Full diff:
gh pr diff <PR>
Changed file list:
gh pr diff <PR> --name-only
Linked issue (if referenced in PR body — look for "Fixes #N", "Closes #N", "Solution to #N", "#N"):
gh issue view <N> --json title,body
Pass the issue context to @pr-reviewer so it can verify the implementation matches the original requirements.
If the PR has merge conflicts (mergeable is CONFLICTING), report this immediately and stop — the author needs to resolve conflicts before review can proceed.
Filter the changed files to .py files for code-critic and doc-sync. Pass all files to pr-reviewer.
Delegate to all three agents, passing the PR diff and metadata to each:
@code-critic — Review changed Python files against CLAUDE.md conventions (C1–C10 + ruff). Scope the review to the PR diff (not local working tree). Use gh pr diff <PR> as the diff source, not git diff HEAD.
@doc-sync — Check whether code changes need documentation updates. Pass characteristic-related changes from the PR diff.
@pr-reviewer — Holistic review: correctness, methodology, architecture, test coverage, performance, completeness, data impact.
Combine the three agent reports into a unified review:
## PR #<n> Review Summary
### Convention Checks (code-critic)
[summary of critical/important/advisory findings]
### Documentation Sync (doc-sync)
[summary of documentation coverage]
### Holistic Review (pr-reviewer)
[summary of correctness, methodology, architecture, etc.]
### CI Status
[pass/fail/pending]
### Overall Verdict
[APPROVE / REQUEST_CHANGES / NEEDS_DISCUSSION]
[Key action items, if any]