coderabbit-core-workflow-b
Tune CodeRabbit review configuration: learnings, code guidelines, and noise reduction. Use when fine-tuning review quality, training CodeRabbit with team preferences, adding code guidelines, or reducing false positives. Trigger with phrases like "coderabbit tune reviews", "coderabbit learnings", "coderabbit guidelines", "reduce coderabbit noise", "coderabbit false positives".
What this skill does
# CodeRabbit Core Workflow B: Learnings & Tuning
## Overview
After initial CodeRabbit setup (Workflow A), this skill covers tuning review quality through learnings, code guidelines, tone customization, and noise reduction. CodeRabbit improves over time by learning from your team's feedback patterns and custom rules.
## Prerequisites
- CodeRabbit installed and producing reviews (see `coderabbit-core-workflow-a`)
- Several PRs worth of review history
- Understanding of team coding standards
## Instructions
### Step 1: Configure Code Guidelines
CodeRabbit automatically detects coding rules from standard config files in your repo. It also reads AI agent configuration files for additional context.
```yaml
# Files CodeRabbit auto-detects for coding rules:
# - .eslintrc.* / eslint.config.* (JavaScript/TypeScript rules)
# - .prettierrc / prettier.config.* (Formatting rules)
# - biome.json / biome.jsonc (Biome linter rules)
# - .cursorrules (Cursor AI rules)
# - CLAUDE.md (Claude Code instructions)
# - .editorconfig (Editor settings)
# - .rubocop.yml (Ruby style)
# - ruff.toml / pyproject.toml (Python rules)
# Add custom guidelines file:
# Create docs/CODING_STANDARDS.md with your team's rules
# Then reference it in .coderabbit.yaml:
```
```yaml
# .coderabbit.yaml - Custom code guidelines
reviews:
knowledge_base:
code_guidelines:
auto_detection: true # Auto-detect from config files
custom_patterns:
- "docs/CODING_STANDARDS.md"
- "docs/SECURITY_POLICY.md"
- "team/code-style.txt"
```
### Step 2: Train with Learnings via PR Feedback
Learnings are enabled by default. CodeRabbit learns from your team's review interactions:
```markdown
# When CodeRabbit gives feedback you disagree with, reply:
"We intentionally use default exports in this project for Next.js pages.
Please don't flag default exports in files under src/pages/."
# CodeRabbit remembers this preference for future reviews.
# When you want to reinforce a pattern, reply positively:
"Good catch! We always want to flag missing error boundaries in React components."
# View current learnings in the CodeRabbit dashboard:
# app.coderabbit.ai > Organization > Learnings
```
### Step 3: Customize Review Tone
```yaml
# .coderabbit.yaml - Tone configuration
tone_instructions: |
Be concise and direct. Skip pleasantries.
Use bullet points for multiple suggestions.
Include code examples for non-obvious fixes.
Rate severity as: Critical > Warning > Suggestion > Nitpick.
# Review profiles control comment volume:
reviews:
profile: "chill" # Fewer comments, only significant issues
# profile: "assertive" # Balanced (default, recommended for most teams)
# Fun tone options (if your team appreciates them):
# tone_instructions: "Review like a wise but slightly sarcastic senior engineer."
# tone_instructions: "You must talk like a pirate. Arr!"
```
### Step 4: Reduce False Positives
```yaml
# .coderabbit.yaml - Noise reduction strategies
reviews:
# Skip paths that generate noise
path_filters:
- "!**/*.lock"
- "!**/*.snap"
- "!**/*.generated.*"
- "!**/migrations/*.sql" # DB migrations are reviewed manually
- "!**/__mocks__/**"
- "!**/fixtures/**"
- "!**/testdata/**"
# Give context to prevent misguided comments
path_instructions:
- path: "src/legacy/**"
instructions: |
This is legacy code being incrementally migrated.
Only flag security issues and bugs. Do NOT suggest refactoring.
Do NOT comment on naming conventions or code style.
- path: "src/generated/**"
instructions: |
This code is auto-generated by protobuf/GraphQL codegen.
Only review if there are manual modifications (check git blame).
Skip style and structure comments entirely.
- path: "scripts/**"
instructions: |
These are one-off scripts. Do not enforce production code standards.
Only flag: security issues, destructive operations without confirmation,
and missing error handling on file/network operations.
# Skip PRs from automated tools
auto_review:
ignore_title_keywords:
- "chore: bump"
- "chore(deps)"
- "Bump version"
- "auto-generated"
```
### Step 5: A/B Test Review Profiles
```yaml
# Try different profiles to find the right signal-to-noise ratio:
#
# Week 1-2: Run "assertive" (default)
# - Track: comments per PR, acceptance rate, developer satisfaction
#
# Week 3-4: Switch to "chill"
# - Compare same metrics
#
# Decision framework:
# - Acceptance rate < 30%? → Profile too aggressive, switch to chill
# - Acceptance rate > 70%? → Reviews are valued, keep current profile
# - Developers ignoring reviews? → Too many nitpicks, switch to chill
# - Security issues slipping through? → Switch to assertive
```
### Step 6: Monitor Review Effectiveness
```bash
set -euo pipefail
# Check CodeRabbit comment acceptance rate on recent PRs
ORG="your-org"
REPO="your-repo"
echo "=== CodeRabbit Review Effectiveness ==="
for PR in $(gh api "repos/$ORG/$REPO/pulls?state=closed&per_page=20" --jq '.[].number'); do
TOTAL=$(gh api "repos/$ORG/$REPO/pulls/$PR/comments" \
--jq '[.[] | select(.user.login=="coderabbitai[bot]")] | length' 2>/dev/null)
[ "$TOTAL" -gt 0 ] && echo "PR #$PR: $TOTAL CodeRabbit comments"
done
```
## Output
- Code guidelines configured from team standards documents
- Learnings trained through PR comment feedback
- Review tone customized for team culture
- False positives reduced through path filters and contextual instructions
- Review effectiveness measured with acceptance rate metrics
## Error Handling
| Issue | Cause | Solution |
|-------|-------|----------|
| Reviews ignore custom rules | Guidelines file not referenced | Add path to `custom_patterns` in config |
| Learnings not sticking | Organization-level vs repo-level | Check learnings scope in dashboard |
| Too few comments | Profile set to "chill" | Switch to "assertive" for more thorough reviews |
| Same issue flagged repeatedly | Learning not created | Reply explicitly stating the preference |
| Tone instructions ignored | YAML formatting issue | Ensure `tone_instructions` is a proper string |
## Resources
- [Code Guidelines](https://www.coderabbit.ai/blog/code-guidelines-bring-your-coding-rules-to-coderabbit)
- [Knowledge Base](https://docs.coderabbit.ai/integrations/knowledge-base)
- [Tone Customization](https://www.coderabbit.ai/blog/tone-customizations-roast-your-code)
- [Context Engineering](https://www.coderabbit.ai/blog/context-engineering-ai-code-reviews)
## Next Steps
For common errors and troubleshooting, see `coderabbit-common-errors`.
Related in Code Review
gstack
IncludedFast headless browser for QA testing and site dogfooding. Navigate pages, interact with elements, verify state, diff before/after, take annotated screenshots, test responsive layouts, forms, uploads, dialogs, and capture bug evidence. Use when asked to open or test a site, verify a deployment, dogfood a user flow, or file a bug with screenshots. (gstack)
startup-due-diligence
IncludedLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities include: (1) Interactive document review and issue spotting; (2) Document request list generation; (3) Cap table and SAFE/convertible note analysis; (4) Red flag identification with severity ratings; (5) Diligence report generation. TRIGGERS: due diligence, DD, startup investment, cap table review, Series A, seed round, investor diligence, legal review startup, SAFE analysis, convertible note, 409A, founder vesting.
interview-master
IncludedThis skill should be used when the user asks to "generate interview questions", "prepare for interview", "optimize resume", "conduct mock interview", "analyze git commits for resume", "generate resume from code", "review my resume", or mentions interview preparation, career assistance, or extracting project experience from git history. Provides comprehensive interview and career development guidance for both job seekers and interviewers.
fix-issue
IncludedFixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to avoid recurrence. Use when debugging errors, resolving regressions, fixing bugs, or triaging issues.
sf-apex
IncludedGenerates and reviews Salesforce Apex code with 150-point scoring. TRIGGER when: user writes, reviews, or fixes Apex classes, triggers, test classes, batch/queueable/schedulable jobs, or touches .cls/.trigger files. DO NOT TRIGGER when: LWC JavaScript (use sf-lwc), Flow XML (use sf-flow), SOQL-only queries (use sf-soql), or non-Salesforce code.
swift-development
IncludedComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.