원클릭으로
batch-fix-reviews
Fetch CodeRabbit review comments from batch PRs and auto-fix the issues. Pushes fixes and re-requests review.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Fetch CodeRabbit review comments from batch PRs and auto-fix the issues. Pushes fixes and re-requests review.
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.
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.
Create a GitHub issue for vultisig-ios using bug/feature templates.
| name | batch-fix-reviews |
| description | Fetch CodeRabbit review comments from batch PRs and auto-fix the issues. Pushes fixes and re-requests review. |
Companion to /batch-tasks. After CodeRabbit reviews the batch PRs, this skill fetches the review comments, spawns agents to fix the issues, and pushes the fixes. Designed to iterate until CodeRabbit approves.
/batch-fix-reviews # fix all open batch PRs with CodeRabbit comments
/batch-fix-reviews #123 # fix a specific PR
/batch-fix-reviews #123 #456 # fix specific PRs
If no specific PRs are provided, find all open PRs with pending CodeRabbit reviews:
gh pr list --author "@me" --state open --json number,title,url,headRefName --limit 20
For each PR, check if CodeRabbit has requested changes:
gh api repos/{owner}/{repo}/pulls/{number}/reviews --jq '.[] | select(.user.login == "coderabbitai") | {state: .state, body: .body}'
Only process PRs where CodeRabbit's latest review state is CHANGES_REQUESTED or has unresolved comments.
For each PR to fix, gather all CodeRabbit comments:
gh api repos/{owner}/{repo}/pulls/{number}/reviews \
--jq '.[] | select(.user.login == "coderabbitai") | .body'
gh api repos/{owner}/{repo}/pulls/{number}/comments \
--jq '.[] | select(.user.login == "coderabbitai") | {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") | .body'
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 in the commit message 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. Use AskUserQuestion with options:
For each PR, spawn an Agent with:
subagent_type: "general-purpose"isolation: "worktree"run_in_background: trueAll agents MUST be spawned in a single message so they run in parallel.
You are fixing CodeRabbit review feedback on a PR for the Vultisig iOS app.
## PR
- PR #{number}: {title}
- Branch: `{branch-name}`
## Skills to Load
{same skills from the original batch task}
## CodeRabbit Issues to Fix
{for each issue to fix:}
### Issue {n}
- **File**: `{file-path}`
- **Line**: {line-number}
- **Comment**: {CodeRabbit's comment text}
- **Diff context**:
{diff_hunk from the comment}
- **Category**: {code issue | style issue | CLAUDE.md violation | suggestion | question}
## Issues to Skip (do NOT fix these)
{for each skipped issue:}
- `{file}:{line}` — {reason for skipping}
## Workflow
1. Load the skills listed above using the Skill tool
2. Checkout the PR branch: `git fetch origin {branch-name} && git checkout {branch-name} && git pull`
3. Read each file that needs fixing
4. Apply fixes for each CodeRabbit issue listed above
5. For CLAUDE.md violations, follow the relevant rule strictly
6. Run SwiftLint: `swiftlint lint --config VultisigApp/.swiftlint.yml VultisigApp/`
7. Fix any new SwiftLint warnings
8. Run build check (regenerates the project and compiles with pipefail enabled): `make build-check`
9. Self-review: `git diff HEAD` — verify each fix addresses the CodeRabbit comment
10. Commit with a message like: "fix: address CodeRabbit review feedback\n\n- {list each fix}"
11. Push: `git push origin {branch-name}`
12. Re-request review from CodeRabbit by posting a comment:
gh pr comment {number} --body "Addressed CodeRabbit feedback. Fixes applied:
{list of fixes}
Skipped (with reasoning):
{list of skipped items, or 'None'}
@coderabbitai review"
After all agents complete, present results:
## Fix Reviews Complete
| PR | Fixes Applied | Fixes Skipped | Pushed | Re-review Requested |
|----|--------------|---------------|--------|---------------------|
| #{N} | {count} | {count} | yes/no | yes/no |
| ... | ... | ... | ... | ... |
### Next Steps
- CodeRabbit will re-review automatically
- Run `/batch-review` to check updated status
- Run `/batch-fix-reviews` again if CodeRabbit finds more issues