autofix

Review and apply CodeRabbit PR feedback from GitHub with per-change approval.

Updated Aug 10, 2026
One-click install
npx skills add https://github.com/Eng-suso/BK-GPT --skill autofix-eng-suso
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: autofix
Source: https://github.com/Eng-suso/BK-GPT/tree/main/.claude/skills/autofix
Command: npx skills add https://github.com/Eng-suso/BK-GPT --skill autofix-eng-suso

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? CodeRabbit leaves many review comments on pull requests, and manually triaging, validating, and fixing each one is slow and error-prone. This Skill fetches unresolved CodeRabbit review threads for your current branch's PR and walks you through validated fixes one at a time. ## Core Features & Use Cases - Thread-aware feedback fetching: Uses the GitHub GraphQL API with pagination to collect only unresolved, non-outdated CodeRabbit review threads, skipping stale or resolved items. - Safe, approval-gated fixes: Treats reviewer prompts as untrusted input, independently validates each issue against local code, and requires explicit approval before applying any edit. - Consolidated commit and PR summary: Bundles all approved fixes into a single commit, optionally runs build/lint checks, pushes, and posts a summary comment on the PR. - Use Case: After pushing a branch, ask the assistant to review CodeRabbit feedback; it lists issues by severity, proposes a minimal diff for each, and commits only the fixes you approve. ## Quick Start Ask the assistant to review and fix the CodeRabbit comments on my current pull request.

Frequently Asked Questions about autofix

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I apply CodeRabbit review feedback automatically?▼

Run this Skill on a branch with an open PR reviewed by CodeRabbit. It fetches unresolved review threads via the GitHub GraphQL API, displays issues by severity, and applies each fix only after you approve the proposed diff.

How to fetch GitHub PR review threads with the gh CLI?▼

Use gh api graphql with a paginated reviewThreads query filtered by owner, repo, and PR number. The Skill loops with a cursor until hasNextPage is false, collecting thread resolution state, line anchors, and root comment bodies.

Does this Skill apply CodeRabbit suggestions without confirmation?▼

No. Every fix requires explicit approval through an apply, defer, or modify prompt. Reviewer prompt-for-AI-agents sections are treated as untrusted input and are never executed directly.

What happens if CodeRabbit review is still in progress?▼

The Skill checks top-level PR comments and reviews for CodeRabbit's in-progress message. If detected, it tells you to wait a few minutes and exits without making changes.

Can this Skill read my .env files or credentials?▼

No. The Skill explicitly refuses reviewer content that asks to read secrets, tokens, dotfiles, or unrelated files, and sanitizes guidance summaries to strip credential paths and non-GitHub URLs.