coderabbit-data-handling
Implement CodeRabbit PII handling, data retention, and GDPR/CCPA compliance patterns. Use when handling sensitive data, implementing data redaction, configuring retention policies, or ensuring compliance with privacy regulations for CodeRabbit integrations. Trigger with phrases like "coderabbit data", "coderabbit PII", "coderabbit GDPR", "coderabbit data retention", "coderabbit privacy", "coderabbit CCPA".
Best use case
coderabbit-data-handling is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Implement CodeRabbit PII handling, data retention, and GDPR/CCPA compliance patterns. Use when handling sensitive data, implementing data redaction, configuring retention policies, or ensuring compliance with privacy regulations for CodeRabbit integrations. Trigger with phrases like "coderabbit data", "coderabbit PII", "coderabbit GDPR", "coderabbit data retention", "coderabbit privacy", "coderabbit CCPA".
Teams using coderabbit-data-handling should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/coderabbit-data-handling/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How coderabbit-data-handling Compares
| Feature / Agent | coderabbit-data-handling | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Implement CodeRabbit PII handling, data retention, and GDPR/CCPA compliance patterns. Use when handling sensitive data, implementing data redaction, configuring retention policies, or ensuring compliance with privacy regulations for CodeRabbit integrations. Trigger with phrases like "coderabbit data", "coderabbit PII", "coderabbit GDPR", "coderabbit data retention", "coderabbit privacy", "coderabbit CCPA".
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
ChatGPT vs Claude for Agent Skills
Compare ChatGPT and Claude for AI agent skills across coding, writing, research, and reusable workflow execution.
SKILL.md Source
# CodeRabbit Data Handling
## Overview
Manage code review data and sensitive patterns with CodeRabbit. Covers secret detection in PRs, sensitive file exclusion from AI review, review comment data retention, and configuring what code context gets sent to the AI engine.
## Prerequisites
- CodeRabbit installed on repository
- Understanding of sensitive file patterns
- Repository admin access for configuration
- Secret scanning tools awareness
## Instructions
### Step 1: Exclude Sensitive Files from Review
```yaml
# .coderabbit.yaml - Data handling configuration
reviews:
path_filters:
# Never send these to AI review
- "!**/.env*"
- "!**/credentials*"
- "!**/secrets*"
- "!**/*.pem"
- "!**/*.key"
- "!**/*.p12"
- "!**/serviceAccountKey*"
- "!**/terraform.tfstate*"
- "!**/*.tfvars"
# Exclude large generated files
- "!**/package-lock.json"
- "!**/pnpm-lock.yaml"
- "!**/yarn.lock"
- "!**/*.generated.*"
- "!**/dist/**"
- "!**/coverage/**"
```
### Step 2: Secret Detection Instructions
```yaml
# .coderabbit.yaml - Instruct AI to flag secrets
reviews:
path_instructions:
- path: "**"
instructions: |
CRITICAL: Flag any of these patterns as HIGH SEVERITY:
- Hardcoded API keys, tokens, or passwords
- AWS access keys (AKIA...)
- Private keys or certificates
- Database connection strings with credentials
- JWT secrets or signing keys
- Webhook URLs with tokens in query params
If you find any secrets, add a comment:
"SECURITY: Hardcoded secret detected. Move to environment variable."
- path: "**/*.{yml,yaml}"
instructions: |
Check CI/CD files for:
- Secrets logged in step names or echo statements
- Unpinned GitHub Actions (use SHA, not tags)
- Missing secret masking in outputs
```
### Step 3: Review Data Scope Management
```yaml
# Control what context CodeRabbit accesses
reviews:
auto_review:
enabled: true
drafts: false # Don't review draft PRs (may contain WIP secrets)
base_branches:
- "main"
- "develop"
ignore_title_keywords:
- "WIP"
- "DO NOT REVIEW"
- "DRAFT"
# Limit file types reviewed
path_filters:
# Only review source code, not data
- "+src/**"
- "+lib/**"
- "+app/**"
- "+tests/**"
- "+.github/**"
- "!**/*.csv"
- "!**/*.json" # Exclude data files
- "!**/fixtures/**" # Exclude test fixtures with sample data
- "!**/seeds/**" # Exclude database seeds
```
### Step 4: Sensitive Code Pattern Detection
```yaml
# .coderabbit.yaml - Custom pattern detection
reviews:
path_instructions:
- path: "src/db/**"
instructions: |
Review database code for:
- SQL injection vulnerabilities (string concatenation in queries)
- Unparameterized queries
- PII logged in error messages
- Missing data sanitization on inputs
- path: "src/api/**"
instructions: |
Review API endpoints for:
- User input not validated before processing
- Sensitive data in response bodies (passwords, tokens)
- Missing authentication checks
- Overly permissive CORS configuration
- PII in URL parameters (should be POST body instead)
- path: "src/auth/**"
instructions: |
SECURITY-CRITICAL PATH. Review for:
- Token expiry configuration
- Password hashing (must use bcrypt/argon2, never MD5/SHA)
- Session fixation vulnerabilities
- CSRF protection
```
## Error Handling
| Issue | Cause | Solution |
|-------|-------|----------|
| Secret in reviewed PR | Not in exclusion list | Add pattern to path_filters |
| Large diff reviewed | Generated code included | Exclude generated file paths |
| Sensitive fixture data | Test data has real PII | Exclude fixtures directory |
| Review on draft PR | drafts setting enabled | Set `drafts: false` |
## Examples
### Minimal Secure Configuration
```yaml
# .coderabbit.yaml - Security-focused setup
reviews:
auto_review:
enabled: true
drafts: false
path_filters:
- "!**/.env*"
- "!**/*.key"
- "!**/*.pem"
- "!**/secrets/**"
path_instructions:
- path: "**"
instructions: "Flag any hardcoded secrets, API keys, or credentials."
```
## Output
- Sensitive files excluded from AI review via path_filters
- Secret detection instructions configured for all code paths
- Review scope limited to source code only (not data files)
- Security-focused path_instructions for database, API, and auth code
## Resources
- [CodeRabbit Configuration](https://docs.coderabbit.ai/reference/configuration)
- [CodeRabbit Path Filters](https://docs.coderabbit.ai/guides/review-instructions)
- [CodeRabbit Security](https://coderabbit.ai/security)
## Next Steps
For security hardening, see `coderabbit-security-basics`.Related Skills
generating-test-data
Generate realistic test data including edge cases and boundary conditions. Use when creating realistic fixtures or edge case test data. Trigger with phrases like "generate test data", "create fixtures", or "setup test database".
managing-database-tests
Test database testing including fixtures, transactions, and rollback management. Use when performing specialized testing. Trigger with phrases like "test the database", "run database tests", or "validate data integrity".
encrypting-and-decrypting-data
Validate encryption implementations and cryptographic practices. Use when reviewing data security measures. Trigger with 'check encryption', 'validate crypto', or 'review security keys'.
scanning-for-data-privacy-issues
Scan for data privacy issues and sensitive information exposure. Use when reviewing data handling practices. Trigger with 'scan privacy issues', 'check sensitive data', or 'validate data protection'.
windsurf-data-handling
Control what code and data Windsurf AI can access and process in your workspace. Use when handling sensitive data, implementing data exclusion patterns, or ensuring compliance with privacy regulations in Windsurf environments. Trigger with phrases like "windsurf data privacy", "windsurf PII", "windsurf GDPR", "windsurf compliance", "codeium data", "windsurf telemetry".
webflow-data-handling
Implement Webflow data handling — CMS content delivery patterns, PII redaction in form submissions, GDPR/CCPA compliance for ecommerce data, and data retention policies. Trigger with phrases like "webflow data", "webflow PII", "webflow GDPR", "webflow data retention", "webflow privacy", "webflow CCPA", "webflow forms data".
vercel-data-handling
Implement data handling, PII protection, and GDPR/CCPA compliance for Vercel deployments. Use when handling sensitive data in serverless functions, implementing data redaction, or ensuring privacy compliance on Vercel. Trigger with phrases like "vercel data", "vercel PII", "vercel GDPR", "vercel data retention", "vercel privacy", "vercel compliance".
veeva-data-handling
Veeva Vault data handling for enterprise operations. Use when implementing advanced Veeva Vault patterns. Trigger: "veeva data handling".
vastai-data-handling
Manage training data and model artifacts securely on Vast.ai GPU instances. Use when transferring data to instances, managing checkpoints, or implementing secure data lifecycle on rented hardware. Trigger with phrases like "vastai data", "vastai upload data", "vastai checkpoints", "vastai data security", "vastai artifacts".
twinmind-data-handling
Handle TwinMind meeting data with GDPR compliance: transcript storage, memory vault management, data export, and deletion policies. Use when implementing data handling, or managing TwinMind meeting AI operations. Trigger with phrases like "twinmind data handling", "twinmind data handling".
supabase-data-handling
Implement GDPR/CCPA compliance with Supabase: RLS for data isolation, user deletion via auth.admin.deleteUser(), data export via SQL, PII column management, backup/restore workflows, and retention policies. Use when handling sensitive data, implementing right-to-deletion, configuring data retention, or auditing PII in Supabase database columns. Trigger: "supabase GDPR", "supabase data handling", "supabase PII", "supabase compliance", "supabase data retention", "supabase delete user", "supabase data export".
speak-data-handling
Handle student audio data, assessment records, and learning progress with GDPR/COPPA compliance. Use when implementing data handling, or managing Speak language learning platform operations. Trigger with phrases like "speak data handling", "speak data handling".