一键导入
fix-pr-comments
Fetch CodeRabbit review comments from a single PR and auto-fix the issues. Defaults to current branch if no PR/branch is specified.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Fetch CodeRabbit review comments from a single PR and auto-fix the issues. Defaults to current branch if no PR/branch is specified.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Implement UI from Figma designs via MCP with a closed-loop pixel-parity check. Extract exact values (never eyeball), translate to SwiftUI, then render→diff→fix against the Figma export until it matches. Use when implementing or auditing UI against Figma.
HTTP networking layer reference — TargetType, HTTPClient, services, error handling.
Fetch CodeRabbit review comments from batch PRs and auto-fix the issues. Pushes fixes and re-requests review.
Run multiple tasks overnight as parallel PRs. Produces a PRD per task, selects skills/rules, spawns isolated agents, and reports PR links.
Run multiple tasks overnight as parallel PRs. Produces a PRD per task, selects skills/rules, spawns isolated agents, and reports PR links.
Run SwiftLint and xcodebuild to verify the project compiles cleanly.
| name | fix-pr-comments |
| description | Fetch CodeRabbit review comments from a single PR and auto-fix the issues. Defaults to current branch if no PR/branch is specified. |
Fetches CodeRabbit review comments for a single PR, triages them, applies fixes, and pushes. Defaults to the current branch's PR if no argument is provided.
/fix-pr-comments # fix current branch's PR
/fix-pr-comments #123 # fix PR #123
/fix-pr-comments feat/my-feat # fix PR for branch feat/my-feat
If a PR number is provided, use it directly.
If a branch name is provided, find its PR:
gh pr list --head "{branch}" --state open --json number,title,url,headRefName --limit 1
If no argument is provided, detect from the current git branch:
BRANCH=$(git branch --show-current)
gh pr list --head "$BRANCH" --state open --json number,title,url,headRefName --limit 1
If no open PR is found, inform the user and stop.
gh api repos/{owner}/{repo}/pulls/{number}/reviews \
--jq '.[] | select(.user.login == "coderabbitai[bot]") | {state: .state, body: .body}'
gh api repos/{owner}/{repo}/pulls/{number}/comments \
--jq '.[] | select(.user.login == "coderabbitai[bot]") | {path: .path, line: .line, original_line: .original_line, diff_hunk: .diff_hunk, body: .body}'
gh api repos/{owner}/{repo}/issues/{number}/comments \
--jq '.[] | select(.user.login == "coderabbitai[bot]") | .body'
If no CodeRabbit comments are found, inform the user and stop.
Categorize each CodeRabbit comment:
| Category | Action |
|---|---|
| Code issue (bug, logic error, missing check) | Fix in code |
| Style issue (naming, formatting, convention) | Fix in code |
| CLAUDE.md violation (hardcoded color, missing localization, etc.) | Fix in code — load relevant skill |
| Suggestion (nice-to-have, alternative approach) | Include only if low-effort and clearly better |
| Question (CodeRabbit asking for clarification) | Add a code comment or improve naming to clarify |
| False positive (CodeRabbit is wrong) | Skip — note why it was skipped |
Present a summary to the user:
## CodeRabbit Feedback — PR #{N}: {title}
### Will Fix ({count})
{for each:}
- `{file}:{line}` — {description} [{category}]
### Will Skip ({count})
{for each:}
- `{file}:{line}` — {description} — Reason: {why skipping}
Ask the user to approve the fix plan before proceeding. Use AskUserQuestion with options:
git checkout {branch} && git pullswiftlint lint --config VultisigApp/.swiftlint.yml VultisigApp/git diff origin/{branch}..HEAD — verify each fix addresses the CodeRabbit commentFor each CodeRabbit inline comment, reply with a brief explanation of what was done (or why it was skipped):
# Reply to inline PR review comments
gh api -X POST repos/{owner}/{repo}/pulls/{number}/comments/{comment_id}/replies \
-f body="Fixed. {brief explanation of the change}"
# For skipped comments
gh api -X POST repos/{owner}/{repo}/pulls/{number}/comments/{comment_id}/replies \
-f body="Skipped — {reason why it was skipped}"
Note: Outside-diff comments embedded in the review body don't have individual comment IDs. Address them in the summary comment instead.
git push origin {branch}gh pr comment {number} --body "Addressed CodeRabbit feedback. Fixes applied:
{list of fixes}
Skipped (with reasoning):
{list of skipped items, or 'None'}
@coderabbitai review"
## Fix Complete — PR #{N}: {title}
- Fixes applied: {count}
- Fixes skipped: {count}
- Pushed: yes/no
- Re-review requested: yes/no
### Next Steps
- CodeRabbit will re-review automatically
- Run `/fix-pr-comments` again if CodeRabbit finds more issues