CO

coderabbit-multi-env-setup

Configures environment-specific CodeRabbit review settings based on branch targets.

Install

mkdir -p .claude/skills/coderabbit-multi-env-setup && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/4690" && unzip -o skill.zip -d .claude/skills/coderabbit-multi-env-setup && rm skill.zip

Installs to .claude/skills/coderabbit-multi-env-setup

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Configure CodeRabbit review behavior per branch and environment using
69 charsno explicit “when” trigger
Intermediate

Key capabilities

  • →Configure different review profiles per branch
  • →Set stricter review requirements for production branches
  • →Define relaxed review settings for development branches
  • →Apply security-focused instructions for release branches
  • →Use `path_instructions` for environment-specific review guidance
  • →Configure GitHub branch protection rules based on review policies

How it works

CodeRabbit reads the `.coderabbit.yaml` file from the pull request's base branch, allowing different review configurations for development, production, and release branches. This enables varied review profiles and instructions based on the target environment.

Inputs & outputs

You give it
`.coderabbit.yaml` files configured differently across various branches
You get back
Branch-specific CodeRabbit review behaviors and corresponding GitHub branch protection rules

When to use coderabbit-multi-env-setup

  • →Configuring per-branch review profiles
  • →Implementing strict reviews for main branches
  • →Setting up dev-specific review settings
  • →Managing environment-based review workflows

About this skill

CodeRabbit Branch and Environment Policy

Overview

Model environments as policy inputs, not separate deployments. Feature-branch YAML supplies config; auto-review controls target eligibility.

Prerequisites

  • Identify the CodeRabbit organization, Git provider, repository, plan, and accountable owner.
  • Read references/official-docs.md and re-check any time-sensitive contract before execution.
  • Use synthetic or read-only evidence until the approval boundary is satisfied.
  • Preserve the repository's independent CI, security, and human-review requirements.

Current Contract

  • Repository YAML is read from the feature branch.
  • The default target is always included when auto-review is enabled.
  • base_branches adds target branches with regex patterns.
  • Central, repo, organization, and global authorities have precedence.

Authentication

Treat Git-provider sessions, CodeRabbit web sessions, CLI credentials, and CodeRabbit API keys as separate credentials. Use only an already-approved session or secret-manager reference, never print a secret, and do not place credentials in .coderabbit.yaml, source files, logs, or deliverables.

Instructions

  1. Inventory branch patterns, risk, merge rules, and config authorities.

  2. Define targets, drafts, labels, ignored authors, and path guidance.

  3. Validate regexes and resolved feature-branch config on synthetic PRs.

  4. Promote only after default, release, exclusion, and rollback cases pass.

Tool Discipline

  • Use Glob to locate candidate configuration and evidence files without widening scope.
  • Use Grep to find relevant fields, commands, identifiers, and stale claims.
  • Use Read to inspect the smallest required files and authoritative evidence.
  • Use Write only for a new approved local draft or evidence artifact.
  • Use Edit only for a bounded approved change whose rollback is known.
  • Do not use these file tools as a substitute for authenticated CodeRabbit or provider operations.

Approval Boundaries

Require owner approval before auto-review scope, global override, or release enforcement changes. Keep analysis and drafts local until approval is explicit, and record who approved the action and its scope.

Output

A branch matrix, precedence map, patch, synthetic evidence, and rollback commit. Include source dates, unknowns, and the exact boundary between observed fact and recommendation.

Error Handling

ConditionResponse
Current contract is unclear or docs disagreeStop mutation, cite both sources, and request owner resolution.
Required access or approval is missingProduce a draft and evidence plan only.
Validation or pilot behavior differs from expectationRestore the prior state and retain the failed evidence.
Output contains secrets or private codeStop, quarantine the artifact, redact it, and notify the data owner.

Examples

Example 1

Add release/.* and test a release-target PR.

Example 2

Correct base-branch configuration guidance.

Validation

  • Confirm every claim against the dated sources in references/official-docs.md.
  • Verify the requested scope, owner, approval, happy path, failure path, and rollback.
  • Re-read the effective configuration or provider state after any approved change.
  • Report unsupported fields, undocumented endpoints, and unverified assumptions as failures.

Resources

When not to use it

  • →When a single review profile is desired across all branches
  • →When the branch strategy is not clearly defined
  • →When the `.coderabbit.yaml` is not committed to each relevant branch

Prerequisites

CodeRabbit GitHub App installed on repositoryBranch strategy defined.coderabbit.yaml committed to each relevant branch

Limitations

  • →Review profiles will be the same across all branches if config is only on one branch
  • →Configuration changes are not applied until merged to the target base branch
  • →Release branches may not be reviewed if `base_branches` does not include the pattern

How it compares

This skill allows for dynamic review behavior based on the target branch, providing more granular control than a single, static CodeRabbit configuration for all pull requests.

Compared to similar skills

coderabbit-multi-env-setup side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
coderabbit-multi-env-setup (this skill)12moReviewIntermediate
shellcheck-configuration94moNo flagsIntermediate
wolf-scripts-core510moReviewIntermediate
final-release-review56moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

More by jeremylongshore

View all by jeremylongshore →

analyzing-logs

jeremylongshore

Analyze application logs to detect performance issues, identify error patterns, and improve stability by extracting key insights.

14123

ollama-setup

jeremylongshore

Configure auto-configure Ollama when user needs local LLM deployment, free AI alternatives, or wants to eliminate hosted API costs. Trigger phrases: "install ollama", "local AI", "free LLM", "self-hosted AI", "replace OpenAI", "no API costs". Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.

1167

backtesting-trading-strategies

jeremylongshore

Backtest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".

1071

generating-database-seed-data

jeremylongshore

Process this skill enables AI assistant to generate realistic test data and database seed scripts for development and testing environments. it uses faker libraries to create realistic data, maintains relational integrity, and allows configurable data volumes. u... Use when working with databases or data models. Trigger with phrases like 'database', 'query', or 'schema'.

1033

cursor-codebase-indexing

jeremylongshore

Execute set up and optimize Cursor codebase indexing. Triggers on "cursor index setup", "codebase indexing", "index codebase", "cursor semantic search". Use when working with cursor codebase indexing functionality. Trigger with phrases like "cursor codebase indexing", "cursor indexing", "cursor".

885

testing-mobile-apps

jeremylongshore

Execute mobile app testing on iOS and Android devices/simulators. Use when performing specialized testing. Trigger with phrases like "test mobile app", "run iOS tests", or "validate Android functionality".

810

Search skills

Search the agent skills registry