بنقرة واحدة
checkout-pr
Review a GitHub PR and answer questions about it
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Review a GitHub PR and answer questions about it
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
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
Run a full code review on the current PR branch and write findings to review.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