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.zipInstalls 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 usingKey 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
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.mdand 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_branchesadds 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
-
Inventory branch patterns, risk, merge rules, and config authorities.
-
Define targets, drafts, labels, ignored authors, and path guidance.
-
Validate regexes and resolved feature-branch config on synthetic PRs.
-
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
| Condition | Response |
|---|---|
| Current contract is unclear or docs disagree | Stop mutation, cite both sources, and request owner resolution. |
| Required access or approval is missing | Produce a draft and evidence plan only. |
| Validation or pilot behavior differs from expectation | Restore the prior state and retain the failed evidence. |
| Output contains secrets or private code | Stop, 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
- Official documentation and contract notes
- Re-check the dated contract before any live operation.
- Treat unresolved or changed vendor behavior as a stop condition.
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
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| coderabbit-multi-env-setup (this skill) | 1 | 2mo | Review | Intermediate |
| shellcheck-configuration | 9 | 4mo | No flags | Intermediate |
| wolf-scripts-core | 5 | 10mo | Review | Intermediate |
| final-release-review | 5 | 6mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by jeremylongshore
View all by jeremylongshore →You might also like
shellcheck-configuration
wshobson
Master ShellCheck static analysis configuration and usage for shell script quality. Use when setting up linting infrastructure, fixing code issues, or ensuring script portability.
wolf-scripts-core
Nice-Wolf-Studio
Core automation scripts for archetype selection, evidence validation, quality scoring, and safe bash execution
final-release-review
openai
Perform a release-readiness review by locating the previous release tag from remote tags and auditing the diff (e.g., v1.2.3...<commit>) for breaking changes, regressions, improvement opportunities, and risks before releasing openai-agents-python.
fix
Use when you have lint errors, formatting issues, or before committing code to ensure it passes CI.
verify
Use when you want to validate changes before committing, or when you need to check all React contribution requirements.
bash-defensive-patterns
wshobson
Master defensive Bash programming techniques for production-grade scripts. Use when writing robust shell scripts, CI/CD pipelines, or system utilities requiring fault tolerance and safety.