CodeRabbit Fix Flow Plugin
A Claude Code plugin that provides a systematic workflow for processing CodeRabbit code review feedback with MCP-powered analysis and automated fixes.
Overview
This plugin introduces the coderabbit-fix-flow agent skill that transforms code review feedback into actionable improvements. It combines the power of two cutting-edge MCP servers to analyze issues deeply and research best practices before implementing fixes.
Why This Plugin?
Code reviews generate valuable feedback, but acting on that feedback systematically can be challenging. This plugin:
- Captures and archives CodeRabbit feedback in structured QA documents
- Analyzes issues using advanced reasoning to categorize and prioritize
- Researches best practices from current web resources and documentation
- Implements fixes with minimal code changes and proper validation
- Tracks progress with automatic todo management
Key Features
Powered by Advanced MCP Servers
Sequential Thinking MCP
What it does: Provides Claude with enhanced reasoning capabilities through a "chain of thought" approach that breaks down complex problems into logical steps.
Why it's useful here: When analyzing CodeRabbit feedback containing multiple issues across different files, Sequential Thinking helps:
- Categorize issues by type (type errors, logic bugs, performance issues, etc.)
- Identify dependencies between fixes (what must be fixed first)
- Plan the optimal order of operations
- Consider edge cases and potential side effects
- Reason through complex type-system constraints
Real feedback example: Instead of rushing to fix a type error, the skill uses Sequential Thinking to analyze whether the error indicates a deeper architectural issue, what related code might be affected, and whether a simple type cast or a more fundamental refactor is needed.
Exa MCP
What it does: Provides AI-powered web search capabilities that understand semantic meaning, not just keywords. Exa searches return highly relevant code examples, documentation, and best practices.
Why it's useful here: When fixing code issues, having current, relevant examples is crucial. Exa helps:
- Find language-specific best practices for the exact framework version you're using
- Discover how other developers solved similar type-safety issues
- Locate official documentation for unfamiliar APIs
- Research modern patterns that have replaced deprecated approaches
- Verify that proposed fixes align with current community standards
Real feedback example: If CodeRabbit flags a TypeScript type issue with React hooks, Exa searches for "TypeScript React useCallback type inference 2024" and returns actual blog posts, Stack Overflow answers, and documentation showing the current best practice—not outdated solutions from 2018.
Together They Transform Code Review
-
Sequential Thinking analyzes: "This type error in the authentication hook suggests the callback signature doesn't match the context type. Let me break down the type flow..."
-
Exa researches: "What's the current best practice for typing context providers with generic constraints in TypeScript 5.x?"
-
Result: A targeted fix that solves the root cause, follows modern patterns, and includes explanatory comments.
Installation
Prerequisites
- Claude Code CLI - Latest version
- Exa API Key - Get yours from dashboard.exa.ai/api-keys
- CodeRabbit CLI - Install from coderabbit.ai
Install the Plugin
# Add the marketplace
/plugin marketplace add alchemiststudiosDOTai/coderabbit-fix-flow-plugin
# Install the plugin
/plugin install coderabbit-fix-flow
Configure Exa API Key
Add your Exa API key to your environment:
# Add to ~/.bashrc, ~/.zshrc, or your shell config
export EXA_API_KEY="your-api-key-here"
Or set it temporarily for the current session:
export EXA_API_KEY="your-api-key-here"
Restart Claude Code
After installation, restart Claude Code to activate the MCP servers:
# Exit Claude Code and restart
claude code
Usage
Step 1: Generate CodeRabbit Feedback
Run CodeRabbit on your changes:
coderabbit --plain
Step 2: Invoke the Skill
Simply tell Claude:
Use coderabbit-fix-flow to process the CodeRabbit feedback
Or trigger it automatically by providing CodeRabbit output when asking for help with code review issues.
Step 3: Review and Commit
The skill will:
- Save feedback to
memory-bank/qa/coderabbit/cr-qa-{timestamp}.md
- Analyze issues with Sequential Thinking
- Research best practices with Exa
- Create a todo list for systematic fixes
- Implement fixes one by one
- Validate each fix with appropriate linters
What Gets Created