Agent skill

Coderabbit Rules From PR Reviews

by openshift-eng in openshift-eng/ai-helpers

Fetch and filter human review comments from recent merged PRs in a GitHub repository

Apache-2.0Auto-check passedDevelopment

Install Coderabbit Rules From PR Reviews

skills CLI
$ npx skills add openshift-eng/ai-helpers --skill coderabbit-rules-from-pr-reviews -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install openshift-eng/ai-helpers coderabbit-rules-from-pr-reviews --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/openshift-eng/ai-helpers.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/teams/skills/coderabbit-rules-from-pr-reviews .claude/skills/coderabbit-rules-from-pr-reviews && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
coderabbit-rules-from-pr-reviews
GitHub stars
120
Token cost
~1.1k tokens
SKILL.md length
344 words
Files
2
Skills in repo
118
Repo updated
First seen
Licence
Apache-2.0

At a glance

Fetch and filter human review comments from recent merged PRs in a GitHub repository

  • Works in 2 steps: GitHub CLI (gh): Must be installed and… → Python 3: Python 3.6 or later.
  • Tasks that involve Pull requests
  • SKILL.md covers When to Use This Skill, Prerequisites, Script Location and Usage, plus 3 more sections
  • Runs Python scripts from its folder; calls python3 and gh; reaches github.com

What it does

Coderabbit Rules From PR Reviews is an agent skill from openshift-eng/ai-helpers. Fetch and filter human review comments from recent merged PRs in a GitHub repository

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `fetch_pr_comments.py`).

It sits in Development, covering Pull requests. It works with GitHub and Python. The repository describes itself as: Developer productivity tools for Claude Code & other AI assistants. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Pull requests

Example prompts

  • “/coderabbit-rules-from-pr-reviews”

Requirements

  • Python 3

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. GitHub CLI (gh): Must be installed and authenticated.
  2. Python 3: Python 3.6 or later.

What it can do on your machine

Read from SKILL.md and the folder at commit a627176. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3
    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Coderabbit Rules From PR Reviews loads about 1.1k tokens when it runs. Until then it costs about 29 tokens; SKILL.md has 344 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~29
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from openshift-eng/ai-helpers at commit a627176, republished under its Apache-2.0 licence (© openshift-eng). 344 words, ~1,055 tokens.

Download SKILL.mdSave it as .claude/skills/coderabbit-rules-from-pr-reviews/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
coderabbit-rules-from-pr-reviews
description
Fetch and filter human review comments from recent merged PRs in a GitHub repository

CodeRabbit Rules from PR Reviews - Fetch Comments

This skill runs a Python script that fetches human review comments from recent merged PRs in a given GitHub repository. It handles all GitHub API calls, bot filtering, noise removal, rate limiting, and pagination, returning clean JSON output for AI analysis.

When to Use This Skill

Use this skill as Step 2-3 of the /teams:coderabbit-rules-from-pr-reviews command to collect review comments. The script replaces manual gh api calls with a single Python invocation.

Prerequisites

  1. GitHub CLI (gh): Must be installed and authenticated.
  2. Python 3: Python 3.6 or later.

Script Location

plugins/teams/skills/coderabbit-rules-from-pr-reviews/fetch_pr_comments.py

Usage

bash
# Default: 30 most recent merged PRs
python3 plugins/teams/skills/coderabbit-rules-from-pr-reviews/fetch_pr_comments.py openshift/origin

# Custom count
python3 plugins/teams/skills/coderabbit-rules-from-pr-reviews/fetch_pr_comments.py openshift/origin --count 50

# Full URL
python3 plugins/teams/skills/coderabbit-rules-from-pr-reviews/fetch_pr_comments.py https://github.com/openshift/origin

What the Script Does

  1. Parses the repo argument — accepts owner/repo or full GitHub URL
  2. Fetches recent merged PRs via gh pr list
  3. For each PR, fetches two types of comments:
    • Inline code review comments (/pulls/{number}/comments)
    • General discussion comments (/issues/{number}/comments)
  4. Filters out noise:
    • Bot accounts: logins ending in [bot] or matching known bots (coderabbitai, openshift-ci, openshift-bot, openshift-merge-robot, codecov, dependabot, renovate, k8s-ci-robot, etc.)
    • Prow commands: comments where every line starts with /
    • Approvals: /lgtm, /approve, /hold, etc.
    • Short comments: less than 20 characters
  5. Rate limiting: 0.5s sleep between API calls, with retry logic for rate limit errors

Output Format

JSON to stdout, progress to stderr:

json
{
  "repo": "openshift/origin",
  "prs_analyzed": 30,
  "total_comments": 142,
  "unique_reviewers": 18,
  "reviewers": ["alice", "bob", "carol"],
  "prs": [
    {
      "number": 29500,
      "title": "Fix flaky test in e2e suite",
      "author": "dave",
      "url": "https://github.com/openshift/origin/pull/29500",
      "merged_at": "2026-03-25T14:30:00Z"
    }
  ],
  "comments": [
    {
      "pr": 29500,
      "user": "alice",
      "body": "This error should be wrapped with fmt.Errorf to preserve context",
      "path": "pkg/cmd/server/start.go",
      "type": "review",
      "pr_title": "Fix flaky test in e2e suite",
      "pr_author": "dave"
    },
    {
      "pr": 29500,
      "user": "bob",
      "body": "We should add a unit test for this edge case",
      "path": "",
      "type": "issue",
      "pr_title": "Fix flaky test in e2e suite",
      "pr_author": "dave"
    }
  ]
}
Field Descriptions
  • repo: The normalized owner/repo string
  • prs_analyzed: Number of merged PRs fetched
  • total_comments: Number of human review comments after filtering
  • unique_reviewers: Count of distinct human reviewers
  • reviewers: Sorted list of reviewer logins
  • prs[].number: PR number
  • prs[].title: PR title
  • prs[].author: PR author login
  • prs[].url: PR URL
  • prs[].merged_at: Merge timestamp
  • comments[].pr: PR number the comment belongs to
  • comments[].user: Reviewer login
  • comments[].body: Full comment text
  • comments[].path: File path (for inline review comments; empty for discussion comments)
  • comments[].type: "review" for inline code comments, "issue" for general discussion
  • comments[].pr_title: Title of the PR
  • comments[].pr_author: Author of the PR

Notes

  • Uses only Python standard library (no pip dependencies)
  • Diagnostic/progress messages go to stderr, JSON data to stdout
  • Handles GitHub API pagination for PRs with many comments
  • Retries on rate limits with exponential backoff
  • Analyzing 30 PRs typically takes 1-2 minutes (~60 API calls)

© openshift-eng, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in plugins/teams/skills/coderabbit-rules-from-pr-reviews of openshift-eng/ai-helpers.

  • SKILL.md
  • fetch_pr_comments.py

Open the folder on GitHubat commit a627176

Compare with similar skills

Coderabbit Rules From PR Reviews next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Coderabbit Rules From PR Reviews compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Coderabbit Rules From PR Reviews this skillopenshift-eng/ai-helpers120—~1.1kAutomated safety check: PassApache-2.0
Create Cuda Python Pull RequestNVIDIA/cuda-python3.4k—~1.1kAutomated safety check: PassApache-2.0
Ghbubbuild/bub1.7k—~798Automated safety check: PassApache-2.0
GitHub Fork and PR Submissionjxxghp/MoviePilot12k—~1.1kAutomated safety check: NotesGPL-3.0
Beava PR Reviewbeava-dev/beava138—~2.1kAutomated safety check: PassApache-2.0
Changelog Draft Generatorwarpdotdev/warp65k1 repos~3.1kAutomated safety check: PassAGPL-3.0

Similar skills

  • Official

    Create a CUDA Python pull request from an approved personal or organization-owned fork, including the GitHub CLI GraphQL fallback for renamed organization-owned forks.

    3.4k GitHub stars~1.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Gh

    bubbuild/bub

    GitHub CLI skill for interacting with GitHub via the gh command line tool.

    1.7k GitHub stars~798 tokensUpdated today
    DevelopmentAuto-check passed
  • Submits code changes as a GitHub pull request through an isolated Git clone, reusing or creating your fork and pushing only after you confirm the real diff.

    12k GitHub stars~1.1k tokensUpdated today
    DevelopmentAuto-check: notes
  • Beava PR Review

    beava-dev/beava

    Reviews a beava PR diff for real bugs, beava-specific architectural invariants, and AI-generated "slop" patterns (hollow code, phantom imports, inflated comments, disconnected pipelines).

    138 GitHub stars~2.1k tokensUpdated 4 mo ago
    DevelopmentAuto-check passed
  • Builds a reviewable changelog draft from the PRs merged between two release cuts, with contributor attribution and Markdown and JSON outputs.

    65k GitHub starsUsed in 1 repo~3.1k tokens
    DevelopmentAuto-check passed
  • GitHub PR Description

    lucasvieirasilva/nx-plugins

    Generates a GitHub Pull Request description for this repository from the commits on the current branch, filling in .github/PULLREQUESTTEMPLATE.md (Current Behavior / Expected Behavior / Related…

    153 GitHub stars~1.4k tokensUpdated 9 days ago
    DevelopmentAuto-check passed

More from openshift-eng/ai-helpers

All 118 skills in this repo
  • Investigate CI Reliability

    openshift-eng/ai-helpers

    Find and independently validate actionable reliability defects across OpenShift release jobs and presubmits, then export portable issue handoffs.

    120 GitHub stars~1.9k tokensUpdated yesterday
    Auto-check passed
  • Address Review PR

    openshift-eng/ai-helpers

    Fetch and address all PR review comments — categorize by priority, make code changes, post replies, and push.

    120 GitHub stars~2.9k tokensUpdated yesterday
    Auto-check passed
  • Categorize Activity Types

    openshift-eng/ai-helpers

    Categorize Jira issues into Red Hat Sankey Activity Type categories using MCP Jira tools.

    120 GitHub stars~2.4k tokensUpdated yesterday
    Auto-check passed
  • Has Review Work

    openshift-eng/ai-helpers

    Decide whether a GitHub PR has unanswered authorized review comments or new required CI failures worth a follow-up agent.

    120 GitHub stars~1.9k tokensUpdated yesterday
    Auto-check passed
  • Must Gather Analyzer

    openshift-eng/ai-helpers

    Analyze OpenShift must-gather diagnostic data including cluster operators, pods, nodes, and network components.

    120 GitHub stars~2.3k tokensUpdated yesterday
    Auto-check passed
  • Payload Autodl JSON

    openshift-eng/ai-helpers

    Schema for the autodl JSON data file produced by payload-analysis for database ingestion — you must use this skill whenever generating the autodl JSON file

    120 GitHub stars~2.6k tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Coderabbit Rules From PR Reviews

What does Coderabbit Rules From PR Reviews do?

Fetch and filter human review comments from recent merged PRs in a GitHub repository. Coderabbit Rules From PR Reviews is an agent skill from openshift-eng/ai-helpers.

When should I use Coderabbit Rules From PR Reviews?

Coderabbit Rules From PR Reviews fits situations like: tasks that involve Pull requests.

How do I install Coderabbit Rules From PR Reviews in Claude Code?

Run `npx skills add openshift-eng/ai-helpers --skill coderabbit-rules-from-pr-reviews -a claude-code`. Or copy the skill folder (plugins/teams/skills/coderabbit-rules-from-pr-reviews in openshift-eng/ai-helpers) into .claude/skills/coderabbit-rules-from-pr-reviews in your project. Claude Code loads it when a task matches its description.

How do I install Coderabbit Rules From PR Reviews in Codex?

Run `npx skills add openshift-eng/ai-helpers --skill coderabbit-rules-from-pr-reviews -a codex`. Or copy the skill folder (plugins/teams/skills/coderabbit-rules-from-pr-reviews in openshift-eng/ai-helpers) into .agents/skills/coderabbit-rules-from-pr-reviews in your project. Codex loads it when a task matches its description.

Can I use Coderabbit Rules From PR Reviews in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add openshift-eng/ai-helpers --skill coderabbit-rules-from-pr-reviews -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/coderabbit-rules-from-pr-reviews, .gemini/skills/coderabbit-rules-from-pr-reviews, .github/skills/coderabbit-rules-from-pr-reviews and .opencode/skills/coderabbit-rules-from-pr-reviews in your project.

What does Coderabbit Rules From PR Reviews need to run?

Going by SKILL.md and its folder, Coderabbit Rules From PR Reviews needs Python for the scripts in its folder and the command-line tools its instructions call (python3 and gh). Our summary lists: Python 3.

Does Coderabbit Rules From PR Reviews access the network?

SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Coderabbit Rules From PR Reviews safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Coderabbit Rules From PR Reviews use?

Coderabbit Rules From PR Reviews is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Coderabbit Rules From PR Reviews use?

About 1.1k tokens (SKILL.md is roughly 4.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Coderabbit Rules From PR Reviews?

Skills that share tags, products or a category with Coderabbit Rules From PR Reviews: Create Cuda Python Pull Request (NVIDIA/cuda-python, 3.4k stars), Gh (bubbuild/bub, 1.7k stars), GitHub Fork and PR Submission (jxxghp/MoviePilot, 12k stars) and Beava PR Review (beava-dev/beava, 138 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Coderabbit Rules From PR Reviews?

openshift-eng (a GitHub organization) maintains it in openshift-eng/ai-helpers, which has 120 GitHub stars. The repository holds 118 skills in this directory. The repository was last updated on October 6, 2026.

Source: openshift-eng/ai-helpers on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.