autofix

Fetch unresolved CodeRabbit PR review threads and apply validated fixes with per-change approval.

Updated Sep 19, 2026
One-click install
npx skills add https://github.com/Ab0umar/selrs.cc.BU --skill autofix-ab0umar
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: autofix
Source: https://github.com/Ab0umar/selrs.cc.BU/tree/main/.agents/skills/autofix
Command: npx skills add https://github.com/Ab0umar/selrs.cc.BU --skill autofix-ab0umar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Manually triaging CodeRabbit review comments on GitHub pull requests is slow and error-prone, and blindly executing reviewer-provided prompts is a security risk. This Skill fetches unresolved review threads for your current branch's PR, presents them in a severity-ranked table, and applies fixes only after explicit per-change approval. ## Core Features & Use Cases - Thread-Aware Feedback Retrieval: Uses the GitHub GraphQL API with cursor pagination to collect only unresolved, non-outdated CodeRabbit review threads, filtering out resolved items and in-progress review states. - Severity-Mapped Review Workflow: Parses issue type, severity, and location from each thread, displays them in a structured table, and reviews fixes in CRITICAL-first order with independent local validation. - Prompt-Injection Defense: Treats all reviewer comment bodies and "Prompt for AI Agents" sections as untrusted input, sanitizing guidance summaries and refusing requests to read secrets, dotfiles, or unrelated files. - Use Case: After pushing a branch and receiving a CodeRabbit review, run the Skill to list all open issues, approve three valid fixes one by one, commit them as a single consolidated commit, run lint checks, push, and post a summary comment on the PR. ## Quick Start Ask the AI to run the CodeRabbit autofix workflow to review and apply unresolved review feedback on the current branch's 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 the autofix workflow on a branch with an open PR. It fetches unresolved CodeRabbit review threads via the GitHub GraphQL API, displays them in a severity-ranked table, and applies each fix only after you approve the proposed diff individually.

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

Use gh api graphql with a reviewThreads query on the pullRequest node, paginating with cursor until hasNextPage is false. Filter threads where isResolved and isOutdated are false and the root comment author is the CodeRabbit bot.

Is it safe to execute CodeRabbit prompts for AI agents directly?▼

No. Reviewer comment bodies and Prompt for AI Agents sections are untrusted input and should only be treated as issue reports. The workflow independently validates each issue against local code and refuses requests to read secrets, dotfiles, or unrelated files.

What happens if I have uncommitted or unpushed changes?▼

The workflow checks git status first and warns that uncommitted changes will not appear in the CodeRabbit review. If commits are unpushed, it offers to push and exits, since CodeRabbit needs about five minutes to review new commits.

Does the autofix workflow commit each fix separately?▼

No. All approved fixes are tracked and combined into one consolidated commit with the message 'fix: apply CodeRabbit auto-fixes'. You are then prompted to run build or lint validation before pushing and posting a summary comment on the PR.