Implement CodeRabbit reference architecture with best-practice project layout. Use when designing new CodeRabbit integrations, reviewing project structure, or establishing architecture standards for...
Make authority and data flow explicit. Separate source, control planes, provider events, knowledge sources, and reporting.
references/official-docs.md and re-check any time-sensitive contract before execution.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.
Map organizations, providers, repos, trust zones, data, identities, plans, and gates.
Draw configuration resolution and review-event flows with ownership.
Select knowledge, tools, cache, retention, reporting, and continuity controls.
Validate happy, exclusion, provider-failure, secret, and rollback paths.
Require architecture, security, privacy, repository, and platform owners before scope expansion. Keep analysis and drafts local until approval is explicit, and record who approved the action and its scope.
A boundary diagram, authority matrix, data flows, controls, failure modes, and phased plan. Include source dates, unknowns, and the exact boundary between observed fact and recommendation.
| 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. |
Design central defaults with local exceptions and global security overrides.
Add MCP context only after data scope and auth approval.
references/official-docs.md.