用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/DarrenTsung/checkout-pr --skill checkout-pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Run a full code review on the current PR branch and write findings to review.md
Checkout a PR, summarize it, and run a full code review with md-annotate integration
Checkout a PR, summarize it, and run a full code review
基于 SOC 职业分类
正在显示 SKILL.md
| name | checkout-pr |
| description | Review a GitHub PR and answer questions about it |
Review the PR identified by the user's invocation arguments using the gh CLI.
Important: Do not push commits or reply to PR comments without explicit user approval. Always ask first.
Assumption: This workflow assumes you are already running in a git worktree that has the PR branch checked out. The checkout CLI normally handles worktree setup before starting the agent.
First, fetch the PR details:
gh pr view <PR_NUMBER> --json title,body,files,additions,deletions,author,baseRefName,headRefName,state,mergeable,reviewDecisiongh pr diff <PR_NUMBER> to get the full diffSummarize the PR:
Then ask the user what specific questions they have about the PR. Common questions might include:
When answering questions:
gh pr diff <PR_NUMBER> to get more context if neededmultiplayer/lib/rust_process.ts:2465)<baseRefName>), use Cmd+Shift+G M → GitLens: Open Changes with Branch"When resolving comments, please DO NOT push the commit until approval by the user.
Replying to PR review comments:
gh api -X POST repos/{owner}/{repo}/pulls/<PR_NUMBER>/comments -F body="<your_reply>" -F in_reply_to=<COMMENT_ID>gh api -X POST repos/{owner}/{repo}/pulls/123/comments -F body="Done in abc123def" -F in_reply_to=12345-F (not -f) for the in_reply_to parameter since it must be passed as a number