一键导入
review-pr
Resolves current pull-request review threads in place, validates and pushes fixes, and avoids new top-level comments. Use when the user runs /review-pr.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Resolves current pull-request review threads in place, validates and pushes fixes, and avoids new top-level comments. Use when the user runs /review-pr.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | review-pr |
| description | Resolves current pull-request review threads in place, validates and pushes fixes, and avoids new top-level comments. Use when the user runs /review-pr. |
| license | Unlicense OR MIT |
| compatibility | Requires the GitHub CLI (gh) authenticated to the target repository and network access. |
Resolve review comments on the current pull request.
/resolve-reviews when availableIf a resolve-reviews skill (or /resolve-reviews command) is available in this environment, prefer it for the per-thread resolution workflow.
/resolve-reviews./resolve-reviews is driving. Rules are non-negotiable overrides — if /resolve-reviews's default behavior would conflict with a rule (e.g. posting a top-level summary comment, force-pushing, reverting unrelated changes), follow the rule, not /resolve-reviews./resolve-reviews is not available.To check availability, look for a skill or command named resolve-reviews (e.g. ~/.cursor/skills/resolve-reviews/, .cursor/skills/resolve-reviews/, or .agents/skills/resolve-reviews/). If none is registered, run the standalone workflow below.
gh pr comment, REST issue-comment endpoints, or any review body not tied to an existing thread.Before editing, read the PR, unresolved threads, affected code, and applicable project instructions. Give one concise phase update naming any material context that changes how the review will be resolved; do not list irrelevant files or narrate an internal checklist.
Confirm the current branch has an open PR:
gh pr view --json url,number,title,reviewDecision
Merge the remote default baseline if the branch is behind:
BASE_BRANCH=$(gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name')
git fetch origin "$BASE_BRANCH"
git merge "origin/$BASE_BRANCH" --no-edit
Resolve conflicts and commit the merge before addressing reviews.
List unresolved review threads and inline comments. Read the PR diff and changed-file context closely enough to identify the affected project area, related docs, and any applicable local skills.
Give the review checkpoint before fixing. If it reveals missing material context, load that context before editing.
Address each unresolved thread in code where it requires a code change.
When a thread needs acknowledgement, clarification, or a follow-up question, reply inline on the originating thread — never via a new top-level comment.
Run relevant verification: typecheck, lint, tests, and targeted UI checks (visual, accessibility, responsive, theme) for user-facing changes.
Invoke the /update-pr skill to commit and push the review fixes. Do not run commit/push commands directly — /update-pr enforces the no-amend, no-force-push, baseline-merge, and PR title/body reconciliation rules. If the /update-pr skill is not invokable in this environment (not registered, not available as a command), follow the rules and steps documented in the update-pr skill manually to commit and push.
Report in chat: the threads addressed, the commits pushed, verification run, and the PR URL.
Commits relevant changes, pushes a focused branch, and opens a templated draft pull request. Use when the user runs /create-pr.
Reviews a roadmap from fresh project evidence and produces a verified, throughput-anchored version plan, with execution gated on confirmation. Use when reviewing a roadmap, planning releases, or sequencing a backlog.
Applies the user's ambient engineering bar: current evidence, complete in-scope solutions, reuse, real validation, right-sized value, and maintainability. Use for planning, implementing, debugging, reviewing, refactoring, architecture, or substantial technical investigation.
Investigates and creates a project-aligned GitHub issue from a tagline or short description, using the repository's template, evidence, and labels. Use when the user runs /create-issue or asks to file a GitHub issue.
Prepares a changelog-first release and, only when explicitly requested, publishes it through the repository's single established release path. Use when the user asks to prepare, cut, tag, or publish a release, bump the version, or generate release notes.
Applies the user's git defaults: branch from the remote default, merge rather than rebase, never amend or force-push, and squash-merge pull requests. Use when branching, syncing, committing, pushing, or merging in the user's repos.