원클릭으로
coderabbit-autofix
Auto-fix CodeRabbit review comments - get CodeRabbit review comments from GitHub and fix them interactively or in batch
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Auto-fix CodeRabbit review comments - get CodeRabbit review comments from GitHub and fix them interactively or in batch
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Sync upstream changes from a local repository clone. Pass a package name, local repo path, and branch as arguments. Supports cherry-pick (--commit=SHA) and range (--up-to=SHA) modes.
Sync upstream changes for a package and open a PR. Pass a package name as the first argument (e.g. model-registry or notebooks) or be prompted to choose. Optionally pass a PR URL to do a temporary test sync.
Guides Konflux CI/CD pipeline onboarding for new components — Jira tracking epic, upstream ODH Dockerfile, downstream RHOAI Dockerfile, DevOps coordination, manifest overlays, and OpenShift CI.
Read a RHOAI UX prototype and produce scoped implementation instructions. Ticket mode (--ticket) for one spec, epic mode (--epic) for all specs + phased execution plan with parallel agent briefings.
Read a RHOAI UX prototype fork and create a Jira epic with properly scoped child tickets. Deduplicates against existing tickets and switches to review mode when full coverage exists.
Classify CI failures on a PR as flaky or genuine using cross-PR recurrence, rerun detection, and symptom pattern matching. Use when a PR has failing CI checks and you need to know which are real regressions vs known flaky tests.
| name | coderabbit-autofix |
| description | Auto-fix CodeRabbit review comments - get CodeRabbit review comments from GitHub and fix them interactively or in batch |
| version | 0.1.0 |
| triggers | ["coderabbit.?autofix","coderabbit.?auto.?fix","autofix.?coderabbit","coderabbit.?fix","fix.?coderabbit","coderabbit.?review","review.?coderabbit","coderabbit.?issues?","show.?coderabbit","get.?coderabbit","cr.?autofix","cr.?fix","cr.?review"] |
Fetch CodeRabbit review comments for your current branch's PR and fix them interactively or in batch.
gh (GitHub CLI) - Installation guidegitVerify: gh auth status
coderabbitai, coderabbit[bot], coderabbitai[bot])AGENTS.md)Before any autofix actions, search for AGENTS.md in the current repository and load applicable instructions.
Check: git status + check for unpushed commits
If uncommitted changes:
If unpushed commits:
git push, inform "CodeRabbit will review in ~5 min", EXIT skillOtherwise: Proceed to Step 2
gh pr list --head $(git branch --show-current) --state open --json number,title
If no PR: Ask "Create PR?" → If yes: create PR (see github.md § 5), inform "Run skill again in ~5 min", EXIT
Fetch PR review threads (see github.md § 2):
gh api graphql ... pullRequest.reviewThreads ... (see github.md § 2)Filter to:
isResolved == false)coderabbitai, coderabbit[bot], coderabbitai[bot])If review in progress: Check for "Come back again in a few minutes" message → Inform "⏳ Review in progress, try again in a few minutes", EXIT
If no unresolved CodeRabbit threads: Inform "No unresolved CodeRabbit review threads found", EXIT
For each selected thread:
Extract from each comment:
_([^_]+)_ \| _([^_]+)_ → Issue type | Severity<details><summary>🤖 Prompt for AI Agents</summary> (this is the fix instruction)
Map severity:
Display in CodeRabbit's original order (already severity-ordered):
CodeRabbit Issues for PR #123: [PR Title]
| # | Severity | Issue Title | Location & Details | Type | Action |
|---|----------|-------------|-------------------|------|--------|
| 1 | 🔴 CRITICAL | Insecure authentication check | src/auth/service.py:42<br>Authorization logic inverted | 🐛 Bug 🔒 Security | Fix |
| 2 | 🟠 HIGH | Database query not awaited | src/db/repository.py:89<br>Async call missing await | 🐛 Bug | Fix |
Use AskUserQuestion:
Route based on choice:
For each "Fix" issue (CRITICAL first):
If "Apply fix":
If "Defer":
If "Modify":
For each "Fix" issue (CRITICAL first):
✅ Fixed: [Issue Title] at
[Location]Agent prompt: [prompt used]
After all fixes, display summary of fixed/skipped issues.
If any fixes were applied:
git add <all-changed-files>
git commit -m "fix: apply CodeRabbit auto-fixes"
Use one commit for all applied fixes in this run.
If a consolidated commit was created:
AGENTS.md instructions already loaded in Step 0 (if present).If a consolidated commit was created:
git pushIf all deferred (no commit): Skip this step.
REQUIRED after all issues reviewed:
gh pr comment <pr-number> --body "$(cat <<'EOF'
## Fixes Applied Successfully
Fixed <file-count> file(s) based on <issue-count> unresolved review comment(s).
**Files modified:**
- `path/to/file-a.ts`
- `path/to/file-b.ts`
**Commit:** `<commit-sha>`
The latest autofix changes are on the `<branch-name>` branch.
EOF
)"
See github.md § 3 for details.
Optionally react to CodeRabbit's main comment with 👍.