بنقرة واحدة
apply-pr-comments
Read PR review comments from Gemini/Codex/humans, plan fixes, then apply after approval
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Read PR review comments from Gemini/Codex/humans, plan fixes, then apply after approval
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Plan the implementation of a specific GitHub issue — reads the issue, relevant docs, and enters plan mode
Plan the implementation of a roadmap step — reads the issue, relevant docs, and enters plan mode
Commit+push PR comment fixes and reply to each reviewer comment on the PR
Squash-merge the current branch's PR, delete the remote branch, and checkout main
Commit remaining changes, push branch, and create a PR with detailed description
| name | apply-pr-comments |
| description | Read PR review comments from Gemini/Codex/humans, plan fixes, then apply after approval |
| disable-model-invocation | true |
| allowed-tools | Bash, Read, Grep, Glob, Agent, EnterPlanMode, ExitPlanMode |
Read review comments on the current branch's PR, analyze them, and plan fixes — entering plan mode so the user approves before any code changes are made.
Current branch: !git branch --show-current
Open PRs for this branch: !gh pr list --head "$(git branch --show-current)" --json number,title,url --jq '.[] | "#\(.number) \(.title) \(.url)"' 2>/dev/null || echo "(none found)"
Follow these steps precisely:
gh pr view --json number,title,url (uses current branch).Get PR review comments (inline code comments from reviewers):
gh api repos/{owner}/{repo}/pulls/{pr_number}/comments --paginate --jq '.[] | {id, user: .user.login, path: .path, line: .line, body: .body, created_at: .created_at}'
Get PR issue comments (general discussion comments):
gh api repos/{owner}/{repo}/issues/{pr_number}/comments --paginate --jq '.[] | {id, user: .user.login, body: .body, created_at: .created_at}'
Get PR reviews (review-level comments with verdict):
gh api repos/{owner}/{repo}/pulls/{pr_number}/reviews --paginate --jq '.[] | {id, user: .user.login, state: .state, body: .body}'
Filter out your own comments (from the PR author). Focus on comments from reviewers — typically:
gemini-code-assist[bot] or similar Gemini botsopenai-codex[bot] or similar Codex botsdotllm-claude-code-bot[bot] (our own bot — skip these)If there are NO review comments, tell the user and stop.
For each inline comment that references a specific file/line, read that file to understand the context. Use the Read tool to view the relevant code sections.
Use EnterPlanMode to enter planning mode. Then:
Summarize each comment — group by reviewer, show:
For each actionable comment, propose a fix:
Flag comments to skip with reasoning:
Present the plan and wait for user approval via ExitPlanMode.
After the user approves (exits plan mode):
The user will manually test and benchmark, then use /create-pr to commit+push and a separate skill to reply to comments when ready.
If $ARGUMENTS is provided, use it as additional guidance (e.g., "focus only on Gemini comments", "skip style nits").