autofix

Apply approved CodeRabbit review-thread fixes to the current branch.

1|Updated Jan 7, 2026
One-click install
npx skills add https://github.com/adamatdevops/forge-works --skill autofix-adamatdevops
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: autofix
Source: https://github.com/adamatdevops/forge-works/tree/main/.skills/coderabbitai/autofix
Command: npx skills add https://github.com/adamatdevops/forge-works --skill autofix-adamatdevops

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you turn CodeRabbit’s unresolved PR review-thread feedback into concrete code changes on your current branch, without blindly following reviewer text.

Core Features & Use Cases

  • Thread-aware fix selection: Finds unresolved, non-outdated CodeRabbit review threads for the open PR on your current branch.
  • Untrusted-guidance protection: Treats reviewer comment content (including any “Prompt for AI Agents” section) strictly as issue reporting, not executable instructions.
  • Per-issue explicit approval: Prompts you to review issues and approve each proposed change before it is applied.
  • One consolidated commit workflow: Applies validated fixes, then creates a single consolidated commit and optionally pushes it.

Use case: CodeRabbit flags multiple issues on a PR; you run this skill to fetch those specific thread items, inspect the affected files, and apply only the approved fixes.

Quick Start

Run the autofix skill for your branch’s open PR so it fetches CodeRabbit’s unresolved review threads and asks you to approve each proposed fix.

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 comments to my pull request automatically?

Yes, you can automate applying unresolved CodeRabbit review threads to your current branch. The process fetches thread-aware comments via GitHub GraphQL, proposes safe code edits, and requires your explicit per-fix approval before applying a consolidated commit.

Do I need GitHub CLI authentication to resolve CodeRabbit PR threads?

Yes, resolving CodeRabbit PR threads requires GitHub CLI (gh) and git. The workflow uses GitHub GraphQL to paginate unresolved review threads for the open PR on your current branch before proposing any validated code edits.

Can I automatically apply all CodeRabbit AI suggestions from a GitHub PR?

No, you cannot blindly apply all suggestions. Reviewer comment content is treated strictly as untrusted guidance for issue reporting, requiring your explicit per-issue approval before each validated code edit is applied to your branch.

What is the best way to apply unresolved CodeRabbit fixes to a GitHub branch?

The best way to apply CodeRabbit fixes is using a safe workflow that fetches non-outdated review threads, parses thread anchors, proposes validated edits, and creates a single consolidated commit after you explicitly approve each fix.

What happens to outdated CodeRabbit review threads when applying fixes?

Outdated CodeRabbit review threads are ignored. The fix selection specifically targets unresolved, non-outdated threads for the open PR to ensure only relevant, validated code edits are proposed for your explicit approval.