Agent skill · software engineering · aiskillstore

autofix

Auto-fix CodeRabbit review comments - get CodeRabbit review comments from GitHub and fix them interactively or in batch

Why this skill is useful

Adds a complex automation script that interacts with GitHub and CodeRabbit to fetch and fix code review comments, which the AI cannot generate on its own.

What it needs

Requires gh, git installed locally. About 4k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

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 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 If no PR: Ask "Create PR?" → If yes: create PR (see github.md § 5), inform "Run skill again in ~5 min", EXIT Step 3: Fetch Unresolved CodeRabbit Threads Fetch PR review threads (see github.md § 2): Threads: gh api graphql ... pullRequest.reviewThreads ... (see github.md § 2) Filter to: unresolved threads only (isResolved == false) threads started by CodeRabbit bot (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 issue metadata from root comment Step 4: Parse and Display Issues Extract from each comment: 1. Header: ([^]+) \ ([^]+) → Issue type Severity 2. Description: Main body text 3. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/autofix

View the source on GitHub

Browse the @skills marketplace