CO

coderabbit-webhooks-events

Handles secure verification and processing of CodeRabbit webhook events from GitHub or GitLab.

Install

mkdir -p .claude/skills/coderabbit-webhooks-events && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/7600" && unzip -o skill.zip -d .claude/skills/coderabbit-webhooks-events && rm skill.zip

Installs to .claude/skills/coderabbit-webhooks-events

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.

Implement CodeRabbit webhook signature validation and event handling.
69 charsno explicit “when” trigger
Advanced

Key capabilities

  • Configure a GitHub webhook receiver
  • Validate CodeRabbit webhook signatures
  • Filter and route CodeRabbit events
  • Process `pull_request_review` events for changes requested or approved states
  • Process `check_run.completed` events for review metrics
  • Configure CodeRabbit behavior via `.coderabbit.yaml` for webhook interactions

How it works

This skill provides a framework for receiving and securely processing CodeRabbit events from GitHub or GitLab webhooks. It includes signature validation, event routing, and examples for handling review results and tracking metrics.

Inputs & outputs

You give it
CodeRabbit events from GitHub or GitLab webhooks
You get back
Processed event data, notifications, or metrics based on event type

When to use coderabbit-webhooks-events

  • Setting up webhook endpoints
  • Validating CodeRabbit event signatures
  • Handling PR review status updates
  • Processing automated review notifications

About this skill

CodeRabbit Webhooks & Events

Overview

Handle CodeRabbit events triggered through GitHub and GitLab integrations. CodeRabbit posts AI-powered code review comments on pull requests.

Prerequisites

  • CodeRabbit installed on your GitHub or GitLab repository
  • GitHub webhook endpoint configured for PR events
  • GitHub App or personal access token for API access
  • .coderabbit.yaml configuration in repository root

Event Types

EventSourcePayload
pull_request_reviewGitHub webhookReview body, state (approved/changes_requested)
pull_request_review_commentGitHub webhookLine comment, diff position, file path
check_run.completedGitHub Checks APICodeRabbit analysis results, conclusion
issue_comment.createdGitHub webhookSummary comment, walkthrough
pull_request.labeledGitHub webhookLabels applied by CodeRabbit

Instructions

Step 1: Configure GitHub Webhook Receiver

import express from "express";
import crypto from "crypto";

const app = express();

app.post("/webhooks/github",
  express.raw({ type: "application/json" }),
  async (req, res) => {
    const signature = req.headers["x-hub-signature-256"] as string;  # 256 bytes
    const secret = process.env.GITHUB_WEBHOOK_SECRET!;

    const expected = "sha256=" + crypto
      .createHmac("sha256", secret)
      .update(req.body)
      .digest("hex");

    if (!crypto.timingSafeEqual(Buffer.from(signature), Buffer.from(expected))) {
      return res.status(401).json({ error: "Invalid signature" });  # HTTP 401 Unauthorized
    }

    const event = req.headers["x-github-event"] as string;
    const payload = JSON.parse(req.body.toString());
    res.status(200).json({ received: true });  # HTTP 200 OK
    await routeCodeRabbitEvent(event, payload);
  }
);

Step 2: Filter and Route CodeRabbit Events

async function routeCodeRabbitEvent(event: string, payload: any) {
  const isCodeRabbit = payload?.sender?.login === "coderabbitai[bot]";

  if (!isCodeRabbit && event !== "check_run") return;

  switch (event) {
    case "pull_request_review":
      await handleCodeRabbitReview(payload);
      break;
    case "pull_request_review_comment":
      await handleReviewComment(payload);
      break;
    case "check_run":
      if (payload.check_run?.app?.slug === "coderabbitai") {
        await handleCheckRunComplete(payload);
      }
      break;
    case "issue_comment":
      await handleSummaryComment(payload);
      break;
  }
}

Step 3: Process Review Results

async function handleCodeRabbitReview(payload: any) {
  const { review, pull_request } = payload;
  const prNumber = pull_request.number;
  const state = review.state;

  if (state === "changes_requested") {
    const issues = parseReviewIssues(review.body);
    await notifyTeam({
      channel: "#code-reviews",
      message: `CodeRabbit found ${issues.length} issues in PR #${prNumber}`,
      prUrl: pull_request.html_url,
    });
  }

  if (state === "approved") {
    await checkAutoMergeEligibility(prNumber);
  }
}

function parseReviewIssues(body: string): string[] {
  return body.split("\n").filter(line =>
    line.match(/^[-*]\s+(Bug|Issue|Suggestion|Security)/i)
  );
}

Step 4: Configure CodeRabbit Behavior

# .coderabbit.yaml
reviews:
  auto_review:
    enabled: true
    drafts: false
  path_filters:
    - "!**/*.test.ts"
    - "!**/generated/**"
  review_instructions:
    - path: "src/api/**"
      instructions: "Focus on security and input validation"
chat:
  auto_reply: true

Error Handling

IssueCauseSolution
No review postedPR too largeSplit PR or adjust max_files in config
Invalid signatureWrong GitHub secretVerify webhook secret in App settings
Bot not respondingApp not installedCheck CodeRabbit GitHub App installation
Duplicate commentsRe-triggered workflowCodeRabbit deduplicates automatically

Examples

Track Review Metrics

async function handleCheckRunComplete(payload: any) {
  const { check_run } = payload;
  await metricsDb.insert({
    prNumber: check_run.pull_requests?.[0]?.number,
    conclusion: check_run.conclusion,
    issuesFound: check_run.output?.annotations_count || 0,
    completedAt: check_run.completed_at,
  });
}

Resources

Output

  • GitHub webhook receiver with signature validation
  • CodeRabbit event routing for reviews, comments, and check runs
  • Review result processing with team notifications
  • Auto-merge eligibility check on CodeRabbit approval
  • Review metrics tracking via check run events

Next Steps

For deployment setup, see coderabbit-deploy-integration.

When not to use it

  • When a GitHub webhook endpoint is not configured for PR events
  • When the user does not have a GitHub App or personal access token for API access

Prerequisites

CodeRabbit installed on your GitHub or GitLab repositoryGitHub webhook endpoint configured for PR eventsGitHub App or personal access token for API access.coderabbit.yaml configuration in repository root

Limitations

  • No review posted if the PR is too large
  • Invalid signature if the wrong GitHub secret is used
  • Bot may not respond if the CodeRabbit App is not installed

How it compares

This skill focuses on programmatic handling of CodeRabbit events via webhooks, enabling custom integrations and automated workflows beyond the standard CodeRabbit UI interactions.

Compared to similar skills

coderabbit-webhooks-events side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
coderabbit-webhooks-events (this skill)127dCautionAdvanced
telegram-bot-builder1066moReviewIntermediate
n8n-expression-syntax64moNo flagsBeginner
reddit-api34moReviewIntermediate

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

You might also like

telegram-bot-builder

davila7

Expert in building Telegram bots that solve real problems - from simple automation to complex AI-powered bots. Covers bot architecture, the Telegram Bot API, user experience, monetization strategies, and scaling bots to thousands of users. Use when: telegram bot, bot api, telegram automation, chat bot telegram, tg bot.

106130

n8n-expression-syntax

czlonkowski

Validate n8n expression syntax and fix common errors. Use when writing n8n expressions, using {{}} syntax, accessing $json/$node variables, troubleshooting expression errors, or working with webhook data in workflows.

6111

reddit-api

alinaqi

Reddit API with PRAW (Python) and Snoowrap (Node.js)

334

mcporter

openclaw

Use the mcporter CLI to list, configure, auth, and call MCP servers/tools directly (HTTP or stdio), including ad-hoc servers, config edits, and CLI/type generation.

726

calcom-api

calcom

Interact with the Cal.com API v2 to manage scheduling, bookings, event types, availability, and calendars. Use this skill when building integrations that need to create or manage bookings, check availability, configure event types, or sync calendars with Cal.com's scheduling infrastructure.

216

instantly-webhooks-events

jeremylongshore

Implement Instantly webhook signature validation and event handling. Use when setting up webhook endpoints, implementing signature verification, or handling Instantly event notifications securely. Trigger with phrases like "instantly webhook", "instantly events", "instantly webhook signature", "handle instantly events", "instantly notifications".

211

Search skills

Search the agent skills registry