coderabbit-sdk-patterns

Featured

Apply production-ready CodeRabbit automation patterns using GitHub API and PR comments. Use when building automation around CodeRabbit reviews, processing review feedback programmatically, or integrating CodeRabbit into custom workflows. Trigger with phrases like "coderabbit automation", "coderabbit API patterns", "automate coderabbit", "coderabbit github api", "process coderabbit reviews".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# CodeRabbit SDK Patterns ## Overview CodeRabbit does not have a traditional SDK. You interact with it through `.coderabbit.yaml` configuration, PR comment commands (`@coderabbitai`), and the GitHub/GitLab API to process its review output. These patterns show how to automate around CodeRabbit reviews programmatically. ## Prerequisites - CodeRabbit installed on repository (see `coderabbit-install-auth`) - GitHub CLI (`gh`) or GitHub API access via personal access token - Node.js 18+ for automation scripts ## Instructions ### Step 1: Fetch CodeRabbit Reviews via GitHub API ```typescript // scripts/fetch-coderabbit-reviews.ts import { Octokit } from "@octokit/rest"; const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN }); async function getCodeRabbitReview(owner: string, repo: string, prNumber: number) { const reviews = await octokit.pulls.listReviews({ owner, repo, pull_number: prNumber }); const coderabbitReview = reviews.data.find( (r) => r.user?.login === "coderabbitai[bot]" ); if (!coderabbitReview) { console.log("No CodeRabbit review found yet. Review typically takes 2-5 minutes."); return null; } return { state: coderabbitReview.state, // "APPROVED" | "CHANGES_REQUESTED" | "COMMENTED" body: coderabbitReview.body, // Walkthrough summary submittedAt: coderabbitReview.submitted_at, }; } ``` ### Step 2: Extract Line-Level Comments ```typescript async function getCodeRabbitComments(owner: string, repo: string...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category