一键导入
pr-review
Review code changes or a pull request — delegates to specialist agents for code quality, security, performance, and documentation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Review code changes or a pull request — delegates to specialist agents for code quality, security, performance, and documentation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Find and fix a bug or issue — from any source (GitHub issue, error message, user report, or observed behavior)
Safely refactor code with test coverage as a safety net
Scan changes, commit, push, and create a PR — with confirmation at each step
Test-Driven Development loop — write a failing test first, then the minimum code to pass it, then refactor. Repeat.
Write comprehensive tests for new or changed code. Use automatically when new features are added, functions are created, or behavior is modified.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
| name | pr-review |
| description | Review code changes or a pull request — delegates to specialist agents for code quality, security, performance, and documentation. |
| argument-hint | [PR number | staged | file path — or omit to auto-detect] |
| disable-model-invocation | true |
Review code changes by delegating to specialist agents and synthesizing a unified report. Works with PRs, staged changes, or specific files.
Parse $ARGUMENTS to determine what to review:
123 or #123): fetch with gh pr view $ARGUMENTS. This is the full PR review path (includes PR quality checks in Step 2).gh pr view to detect a PR for the current branch. If a PR exists, use it. If not, fall back to git diff --cached (staged), then git diff (unstaged).staged: review git diff --cached. If nothing staged, fall back to git diff.If there are no changes to review, say so and stop.
Skip this step if reviewing staged changes or a file — jump to Step 3.
When reviewing a PR, fetch and check:
gh pr diff $NUMBER for the full diffgh pr checks $NUMBER for CI statusgh api repos/{owner}/{repo}/pulls/$NUMBER/comments for review commentsReview the PR itself before the code:
@code-reviewer@security-reviewer@performance-reviewer. Skip if changes are only docs, config, tests, or static assets.@doc-reviewerDetermine relevance by reading the diff content, not just file paths.
For PR reviews:
## PR Review: #[number] — [title]
**Author**: [author] | **Base**: [base] → **Head**: [head] | **Changed**: [N files, +X/-Y lines]
### PR Quality
- Title: [ok / needs improvement]
- Description: [ok / missing test plan / empty]
- Size: [ok / large — consider splitting]
- CI: [passing / failing — list failures]
- Unresolved comments: [none / list]
### Code Review
#### Critical / High
- [Agent] File:Line — issue
#### Medium
- [Agent] File:Line — issue
#### Low
- [Agent] File:Line — issue
### Verdict
[Ready to merge / Needs changes — summarize blockers]
For non-PR reviews (staged/file):
## Review Summary
**Scope**: [staged changes / file path]
**Agents run**: [list]
### Critical / High
- [Agent] File:Line — issue
### Medium / Low
- [Agent] File:Line — issue
### Passed
- [areas with no issues]
Deduplicate findings that overlap between agents. Attribute each finding to the agent that found it.