Skip to main content Início Criadores jeremylongshore tons-of-skills-marketplace coderabbit-observability
coderabbit-observability Monitor CodeRabbit review effectiveness with metrics, dashboards, and alerts.
Use when tracking review coverage, measuring comment acceptance rates,
or building dashboards for CodeRabbit adoption across your organization.
Trigger with phrases like "coderabbit monitoring", "coderabbit metrics",
"coderabbit observability", "monitor coderabbit", "coderabbit alerts", "coderabbit dashboard".
Ir para a instalação Skills Marketplace Descubra e explore skills de IA criadas pela comunidade.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Copiar promptMostrar detalhes do prompt Um comando direto ignora o prompt de revisão. Verifique a origem antes de executá-lo.
npx skills add https://github.com/jeremylongshore/tons-of-skills-marketplace --skill coderabbit-observabilityO comando permanece em uma só linha. Role horizontalmente para revisá-lo antes de copiar.
Prefere uma cópia local? Baixe os arquivos disponíveis atualmente no SkillsMP.
Baixar Zip Baixando... Mais deste repositório langchain-deploy-integration Deploy a LangChain 1.0 / LangGraph 1.0 app to Cloud Run, Vercel, or LangServe correctly — with timeouts sized for chain length, cold-start mitigation, SSE anti-buffering headers, and Secret Manager over .env. Use when prepping a first production deploy, debugging a stream that hangs behind a proxy, or diagnosing p99 latency spikes. Trigger with "langchain deploy", "langchain cloud run", "langchain vercel python", "langchain langserve", or "langchain docker".
langchain-langgraph-agents Build a correct LangGraph 1.0 ReAct agent with create_react_agent — typed tools, error propagation, recursion caps, and stop conditions that actually stop. Use when writing a first tool-calling agent, migrating from AgentExecutor or initialize_agent, or diagnosing an agent that loops on vague prompts. Trigger with "langgraph agent", "create_react_agent", "langgraph tool calling", "AgentExecutor migration", or "agent loop cost".
langchain-langgraph-human-in-loop Build LangGraph 1.0 human-in-the-loop approval flows with interrupt_before /
interrupt_after and Command(resume=...) — JSON-serializable state, clean
resume semantics, and UI wiring for approval decisions. Use when adding an
approval gate before an expensive tool call, wiring a Slack/web UI for agent
approvals, or debugging a graph that crashes on interrupt.
Trigger with "langgraph human in loop", "langgraph interrupt_before",
"langgraph approval flow", "Command resume", "langgraph HITL".
name coderabbit-observability description Monitor CodeRabbit review effectiveness with metrics, dashboards, and alerts.
Use when tracking review coverage, measuring comment acceptance rates,
or building dashboards for CodeRabbit adoption across your organization.
Trigger with phrases like "coderabbit monitoring", "coderabbit metrics",
"coderabbit observability", "monitor coderabbit", "coderabbit alerts", "coderabbit dashboard".
allowed-tools Read, Write, Edit, Bash(gh:*), Bash(node:*) version 1.11.0 license MIT author Jeremy Longshore <jeremy@intentsolutions.io> tags ["saas","coderabbit","monitoring","observability","metrics"] compatibility Designed for Claude Code
CodeRabbit Observability
Overview
Monitor CodeRabbit AI code review effectiveness, review latency, and team adoption. Key metrics include time-to-first-review (how fast CodeRabbit posts after PR creation), comment acceptance rate (comments resolved vs dismissed), review coverage (percentage of PRs reviewed), and per-repository review volume.
Prerequisites
CodeRabbit installed on GitHub/GitLab organization
GitHub CLI (gh) authenticated with org access
Access to CodeRabbit dashboard at app.coderabbit.ai
Key Metrics
Metric Target Why It Matters Review coverage > 90% PRs without review = blind spots Time-to-review < 5 min Fast feedback keeps developers in flow Comment acceptance > 40% Low acceptance = noisy reviews Comments per PR 3-8 Too many = fatigue, too few = not useful Review state: APPROVED > 60% High approval = clean code culture
Instructions
Step 1: Measure Review Coverage
#!/bin/bash
set -euo pipefail
ORG="${1:?Usage: $0 <org> <repo> [days]} "
REPO="${2:?Usage: $0 <org> <repo> [days]} "
DAYS="${3:-30} "
echo "=== CodeRabbit Review Coverage ==="
echo "Repository: $ORG /$REPO "
echo "Period: Last $DAYS days"
echo ""
TOTAL=0
REVIEWED=0
APPROVED=0
CHANGES_REQUESTED=0
SINCE=$(date -d "$DAYS days ago" +%Y-%m-%dT%H:%M:%SZ 2>/dev/null || -v- d +%Y-%m-%dT%H:%M:%SZ)
PR_NUM $(gh api \
--jq );
TOTAL=$((TOTAL + ))
CR_STATE=$(gh api \
--jq 2>/dev/null || )
[ != ] && [ != ];
REVIEWED=$((REVIEWED + ))
[ = ] && APPROVED=$((APPROVED + ))
[ = ] && CHANGES_REQUESTED=$((CHANGES_REQUESTED + ))
[ -gt 0 ];
date
${DAYS}
for
in
"repos/$ORG /$REPO /pulls?state=all&per_page=50&sort=created&direction=desc"
".[] | select(.created_at > \"$SINCE \") | .number"
do
1
"repos/$ORG /$REPO /pulls/$PR_NUM /reviews"
'[.[] | select(.user.login=="coderabbitai[bot]")] | last | .state // "none"'
echo
"none"
if
"$CR_STATE "
"none"
"$CR_STATE "
"null"
then
1
"$CR_STATE "
"APPROVED"
1
"$CR_STATE "
"CHANGES_REQUESTED"
1
fi
done
if
"$TOTAL "
then
echo
"Total PRs: $TOTAL "
echo
"Reviewed by CodeRabbit: $REVIEWED ($(( REVIEWED * 100 / TOTAL ) )%)"
echo
" Approved: $APPROVED "
echo
" Changes Requested: $CHANGES_REQUESTED "
else
echo
"No PRs found in the last $DAYS days"
fi
Step 2: Track Comment Volume and Acceptance set -euo pipefail
ORG="${1:-your-org} "
REPO="${2:-your-repo} "
echo "=== CodeRabbit Comment Analysis ==="
echo ""
TOTAL_COMMENTS=0
PR_COUNT=0
for PR_NUM in $(gh api "repos/$ORG /$REPO /pulls?state=closed&per_page=20" --jq '.[].number' ); do
COMMENTS=$(gh api "repos/$ORG /$REPO /pulls/$PR_NUM /comments" \
--jq '[.[] | select(.user.login=="coderabbitai[bot]")] | length' 2>/dev/null || echo "0" )
if [ "$COMMENTS " -gt 0 ]; then
TOTAL_COMMENTS=$((TOTAL_COMMENTS + COMMENTS))
PR_COUNT=$((PR_COUNT + 1 ))
echo "PR #$PR_NUM : $COMMENTS comments"
fi
done
if [ "$PR_COUNT " -gt 0 ]; then
echo ""
echo "Average comments per PR: $(( TOTAL_COMMENTS / PR_COUNT ) )"
echo ""
echo "Healthy ranges:"
echo " 1-3 comments/PR → Profile may be too chill"
echo " 3-8 comments/PR → Good signal-to-noise ratio"
echo " 10+ comments/PR → Consider switching to chill profile"
fi
Step 3: Build a GitHub Actions Dashboard
name: CodeRabbit Weekly Metrics
on:
schedule:
- cron: '0 9 * * 1'
workflow_dispatch:
jobs:
metrics:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
with:
script: |
const { data: pulls } = await github.rest.pulls.list({
owner: context.repo.owner,
repo: context.repo.repo,
state: 'closed',
per_page: 50,
sort: 'updated',
direction: 'desc',
});
let reviewed = 0 ;
let approved = 0 ;
let changesRequested = 0 ;
let totalComments = 0 ;
for (const pr of pulls) {
const { data: reviews } = await github.rest.pulls.listReviews( {
owner: context.repo.owner ,
repo: context.repo.repo ,
pull_number: pr.number ,
});
const crReview = reviews.find(r => r.user.login === 'coderabbitai[bot]' );
if (crReview) {
reviewed++;
if (crReview.state === 'APPROVED' ) approved++;
if (crReview.state === 'CHANGES_REQUESTED' ) changesRequested++;
}
const { data: comments } = await github.rest.pulls.listReviewComments( {
owner: context.repo.owner ,
repo: context.repo.repo ,
pull_number: pr.number ,
});
totalComments += comments.filter(c => c.user.login === 'coderabbitai[bot]' ).length;
}
const summary = [
`## CodeRabbit Weekly Metrics` ,
`- **Coverage**: $ {reviewed }/$ {pulls.length } PRs reviewed ($ {Math.round(reviewed/pulls.length*100) }%)` ,
`- **Approved**: $ {approved }` ,
`- **Changes Requested**: $ {changesRequested }` ,
`- **Avg Comments/PR**: $ {reviewed > 0 ? Math.round(totalComments/reviewed) : 0 }` ,
].join('\n');
core.summary.addRaw(summary).write();
core.info(summary);
Step 4: Set Up Alerts for Review Gaps
name: CodeRabbit Review Alert
on:
pull_request:
types: [opened ]
jobs:
check-review-expected:
runs-on: ubuntu-latest
steps:
- name: Wait for CodeRabbit review
uses: actions/github-script@v7
with:
script: |
// Wait 10 minutes, then check if CodeRabbit reviewed
await new Promise(r => setTimeout(r, 600000));
const { data: reviews } = await github.rest.pulls.listReviews({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
});
const crReview = reviews.find(r => r.user.login === 'coderabbitai[bot]' );
if (!crReview) {
core.warning(
'CodeRabbit has not reviewed this PR after 10 minutes. ' +
'Check: App installation, .coderabbit.yaml, base_branches config.'
);
}
Step 5: CodeRabbit Dashboard Summary # Build a summary dashboard with these data points:
## Weekly Dashboard Template
| Metric | This Week | Last Week | Trend |
|--------|-----------|-----------|-------|
| PRs opened | | | |
| PRs reviewed by CR | | | |
| Coverage % | | | |
| Avg comments/PR | | | |
| Approval rate | | | |
| Time to first review | | | |
## Action Items:
- Coverage < 90%: Check App installation, base_branches config
- Avg comments > 10: Switch to "chill" profile
- Avg comments < 2: Switch to "assertive" profile
- Approval rate < 50%: Review path_ instructions for relevance
Output
Review coverage metrics calculated per repository
Comment volume and acceptance rate tracked
Weekly metrics GitHub Action workflow
Alert workflow for missing reviews
Dashboard template for team reporting
Error Handling Issue Cause Solution Coverage below 90% Some PRs not reviewed Check base_branches and ignore_title_keywords Low acceptance rate Too many false positives Tune path_instructions and switch to chill No metrics data No closed PRs in period Extend the time window API rate limited Too many gh api calls Add pagination and caching
Resources
Next Steps For incident response, see coderabbit-incident-runbook.