From teams
Scans all repositories in an OpenShift GitHub organization for .coderabbit.yaml files missing inheritance: true, then opens PRs to add the setting. Supports --dry-run.
How this command is triggered — by the user, by Claude, or both
Slash command
/teams:coderabbit-inheritance-scanner [--dry-run]The summary Claude sees in its command listing — used to decide when to auto-load this command
## Name teams:coderabbit-inheritance-scanner ## Synopsis ## 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](https://github.com/openshift/coderabbit). The `openshift/coderabbit` repo itself is excluded from results since it is the source of the global rules. After scanning,...
teams:coderabbit-inheritance-scanner
/teams:coderabbit-inheritance-scanner
/teams:coderabbit-inheritance-scanner --dry-run
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.
--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.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.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.
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.
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.
Format and present the results as a markdown report:
## CodeRabbit Inheritance Scanner Report
### Summary
- Total repos with .coderabbit.yaml: <count>
- Compliant (inheritance: true): <count>
- Non-compliant: <count>
- Existing fix PRs open: <count>
### Repos with `inheritance: false` (explicitly disabled)
| Repository | File Link | Existing PR |
|---|---|---|
| openshift/<repo> | [.coderabbit.yaml](link) | [#123](link) (open 5 days) |
### Repos missing `inheritance` key
| Repository | File Link | Existing PR |
|---|---|---|
| openshift/<repo> | [.coderabbit.yaml](link) | None |
### Compliant repos (inheritance: true)
<collapsed list>
### Errors (could not fetch file)
<list if any>
Offer to open fix PRs for non-compliant repos that do not already have an open PR. Present the list and ask for confirmation (unless --dry-run).
--dry-run: Display what would be done for each repo (fork, sync, branch, commit, PR) and stop.--dry-run: Ask the user "Open PRs for these N repos? (y/n)" and proceed only on confirmation.Open fix PRs using the teams:coderabbit-inheritance-scanner-open-pr skill for each repo that needs a PR. This skill handles forking, syncing, branching, committing, pushing, and creating the PR. Collect all created PR URLs.
Present final results with links to all created PRs.
This command delegates to the following skills:
teams:coderabbit-inheritance-scanner-search - Search for repos with .coderabbit.yaml filesteams:coderabbit-inheritance-scanner-check - Check a repo's .coderabbit.yaml for inheritance: trueteams:coderabbit-inheritance-scanner-existing-pr - Search for an existing fix PR on a repoteams:coderabbit-inheritance-scanner-open-pr - Fork, sync, and open a fix PR on a repoScan only (report + offer to fix):
/teams:coderabbit-inheritance-scanner
Dry run (report + show what would be done, no PRs opened):
/teams:coderabbit-inheritance-scanner --dry-run
.coderabbit.yaml files without iterating all ~800 repos..coderabbit.yaml and .coderabbit.yml extensions.openshift/coderabbit repository is excluded since it defines the global rules.gh repo sync fails due to missing workflow scope, the repo is skipped with a warning.gh authentication scope; this is acceptable.ci:analyze-pr-reverts - Analyzes PR reverts and recommends CodeRabbit rulesnpx claudepluginhub pillaimanish/ai-helpers --plugin teams/coderabbit-inheritance-scannerScans all repositories in an OpenShift GitHub organization for .coderabbit.yaml files missing inheritance: true, then opens PRs to add the setting. Supports --dry-run.
/reviewRuns CodeRabbit AI code review on git changes (all/committed/uncommitted), grouping findings by critical/suggestions/positive severity. Supports --base <branch>.
/reviewPerforms a thorough PR review using your project's configured rules. Loads project-specific or auto-generated rules, then checks correctness, conventions, test coverage, architecture, and database/API design.
/generate-review-mdScans a codebase to detect project type, linter configs, and CI rules, then generates a tailored REVIEW.md for Claude Code's managed Code Review service.
/review-prRuns context-aware PR review on PR number/URL (or infers current branch), gathering metadata, tickets, CLAUDE.md guidelines via parallel agents, and produces validation checklist.
/code-reviewReviews a branch for PR readiness by spawning parallel Git agents to validate, commit, push, and create PRs, then synthesizing results. Supports incremental reviews and multi-worktree auto-discovery.