coderabbit-inheritance-scanner

coderabbit-inheritance-scanner is a command for Claude Code from wangke19/gemini-ai-helpers. It costs 17 tokens per session (1,357 once invoked), scanned A, original, Apache-2.0.

A command that scans OpenShift GitHub repositories for CodeRabbit configuration files missing the setting that inherits organization-wide review rules.

In plain words
What is it for?
Use it to check compliance, preview proposed changes with dry-run mode, and open pull requests from personal forks for repositories that need the inheritance setting.
Why use it?
It finds repositories whose custom settings may bypass shared CodeRabbit rules and can prepare pull requests to correct them.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it to check compliance, preview proposed changes with dry-run mode, and open pull requests from personal forks for repositories that need the inheritance setting.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/wangke19/gemini-ai-helpers/coderabbit-inheritance-scanner
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/wangke19/gemini-ai-helpers

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for coderabbit-inheritance-scanner

README.md
[![agentmods](https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/coderabbit-inheritance-scanner/github.svg)](https://agentmods.dev/commands/wangke19/gemini-ai-helpers/coderabbit-inheritance-scanner)
Your own site
<a href="https://agentmods.dev/commands/wangke19/gemini-ai-helpers/coderabbit-inheritance-scanner"><img src="https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/coderabbit-inheritance-scanner/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for coderabbit-inheritance-scanner

Your own site · 80×15
<a href="https://agentmods.dev/commands/wangke19/gemini-ai-helpers/coderabbit-inheritance-scanner"><img src="https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/coderabbit-inheritance-scanner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,357 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00017 $0.01357
Opus 5 $0.00009 $0.00678
Sonnet 5 $0.00003 $0.00271
Haiku 4.5 $0.00002 $0.00136

Measured 9d ago against content hash d03178caeb96, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

coderabbit-inheritance-scanner scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

extensions/teams/commands/coderabbit-inheritance-scanner.md · 113 lines

How it starts

The opening of the file, as written. The whole thing — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Name

teams:coderabbit-inheritance-scanner

Synopsis

/teams:coderabbit-inheritance-scanner
/teams:coderabbit-inheritance-scanner --dry-run

Description

The teams:coderabbit-inheritance-scanner command scans all repositories in the openshift GitHub organization that contain a .coderabbit.yaml or .coderabbit.yml file and verifies each one has inheritance: true set. This ensures repos with custom CodeRabbit configurations still inherit the org-wide review rules defined in openshift/coderabbit.

The openshift/coderabbit repo itself is excluded from results since it is the source of the global rules.

After scanning, the command offers to open PRs on non-compliant repos to add inheritance: true. PRs are always opened from a personal fork to avoid needing direct push access to upstream repos.

Arguments

  • --dry-run: Perform all scanning and checks (including searching for existing PRs) but do not actually create forks, push branches, or open PRs. Displays exactly what would be done for each non-compliant repo.

Implementation

Prerequisites

  • GitHub CLI (gh): Must be installed and authenticated with access to the openshift org.
    gh auth status
    
    The token must have the workflow scope to sync forks that contain GitHub Actions workflow files. If missing, warn the user and skip those repos rather than failing.

Steps

  1. Search for .coderabbit.yaml files across the openshift org using the teams:coderabbit-inheritance-scanner-search skill. Use GitHub code search via gh api to find repos efficiently.

  2. For each repo, fetch the raw file and check for inheritance: true. Use the teams:coderabbit-inheritance-scanner-check skill to classify each repo as compliant, non-compliant (missing key), non-compliant (explicitly false), or error.

  3. For each non-compliant repo, check for an existing open PR whose title contains "CodeRabbit inheritance" (case-insensitive substring match, since teams sometimes modify the PR title to satisfy merge requirements). Use the teams:coderabbit-inheritance-scanner-existing-pr skill. Record the PR URL and how long it has been open.

Read the full file on GitHub · 113 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 113 lines · 17 tokens per session scan A d03178caeb96

Subscribe to this mod's changes

coderabbit-inheritance-scanner is a command published in the GitHub repository wangke19/gemini-ai-helpers (2 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 17 tokens to every session and 1,357 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.