← ClaudeAtlas

autofixlisted

Auto-fix CodeRabbit review comments - get CodeRabbit review comments from GitHub and fix them interactively or in batch
aiskillstore/marketplace · ★ 329 · Code & Development · score 82
Install: claude install-skill aiskillstore/marketplace
# CodeRabbit Autofix Fetch CodeRabbit review comments for your current branch's PR and fix them interactively or in batch. ## Prerequisites ### Required Tools - `gh` (GitHub CLI) - [Installation guide](./github.md) - `git` Verify: `gh auth status` ### Required State - Git repo on GitHub - Current branch has open PR - PR reviewed by CodeRabbit bot (`coderabbitai`, `coderabbit[bot]`, `coderabbitai[bot]`) ## Workflow ### Step 0: Load Repository Instructions (`AGENTS.md`) Before any autofix actions, search for `AGENTS.md` in the current repository and load applicable instructions. - If found, follow its build/lint/test/commit guidance throughout the run. - If not found, continue with default workflow. ### Step 1: Check Code Push Status Check: `git status` + check for unpushed commits **If uncommitted changes:** - Warn: "⚠️ Uncommitted changes won't be in CodeRabbit review" - Ask: "Commit and push first?" → If yes: wait for user action, then continue **If unpushed commits:** - Warn: "⚠️ N unpushed commits. CodeRabbit hasn't reviewed them" - Ask: "Push now?" → If yes: `git push`, inform "CodeRabbit will review in ~5 min", EXIT skill **Otherwise:** Proceed to Step 2 ### Step 2: Find Open PR ```bash 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](./github.md#5-create-pr-if-needed)), inform "Run skill again in ~5 min", EXIT ### Step 3: Fetch Unresolved CodeRabb