SKILL.md
CodeRabbit Hello World
Overview
Minimal working example demonstrating CodeRabbit AI code review. CodeRabbit reviews PRs automatically via a GitHub/GitLab App -- no SDK or API calls needed. You configure behavior through a .coderabbit.yaml file and interact via PR comments.
Prerequisites
- CodeRabbit GitHub App installed (see
coderabbit-install-auth) - A repository with at least one branch
Instructions
Step 1: Create Minimal Configuration
# .coderabbit.yaml (repository root)
language: "en-US"
reviews:
profile: "assertive"
high_level_summary: true
auto_review:
enabled: true
drafts: false
chat:
auto_reply: true
Step 2: Add Path-Specific Instructions
# .coderabbit.yaml - add review context for better feedback
reviews:
profile: "assertive"
high_level_summary: true
auto_review:
enabled: true
drafts: false
path_instructions:
- path: "src/**/*.ts"
instructions: "Check for proper TypeScript types. Flag any use of `any`."
- path: "**/*.test.*"
instructions: "Verify edge cases are covered. Check async handling."
chat:
auto_reply: true
Step 3: Create a PR to Trigger Review
set -euo pipefail
git checkout -b feat/hello-coderabbit
# Add the configuration file
cat > .coderabbit.yaml << 'YAML'
language: "en-US"
reviews:
profile: "assertive"
high_level_summary: true
auto_review:
enabled: true
drafts: false
path_instructions:
- path: "src/**"
instructions: "Check for proper error handling and input validation."
chat:
auto_reply: true
YAML
git add .coderabbit.yaml
git commit -m "feat: add CodeRabbit AI code review configuration"
git push -u origin feat/hello-coderabbit
gh pr create --title "feat: enable CodeRabbit AI code review" \
--body "Adding .coderabbit.yaml for automated code reviews"
Step 4: Interact with CodeRabbit on the PR
Once CodeRabbit posts its review (typically 2-5 minutes), you can interact:
