Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/wangke19/gemini-ai-helpersnpx agentmods add commands/wangke19/gemini-ai-helpers/coderabbit-rules-from-pr-reviewsWrote 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.
[](https://agentmods.dev/commands/wangke19/gemini-ai-helpers/coderabbit-rules-from-pr-reviews)<a href="https://agentmods.dev/commands/wangke19/gemini-ai-helpers/coderabbit-rules-from-pr-reviews"><img src="https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/coderabbit-rules-from-pr-reviews/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.
<a href="https://agentmods.dev/commands/wangke19/gemini-ai-helpers/coderabbit-rules-from-pr-reviews"><img src="https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/coderabbit-rules-from-pr-reviews.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00012 | $0.03544 |
| Opus 5 | $0.00006 | $0.01772 |
| Sonnet 5 | $0.00002 | $0.00709 |
| Haiku 4.5 | $0.00001 | $0.00354 |
Grade C, and why
coderabbit-rules-from-pr-reviews scanned grade C with 1 finding 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf "${WORKDIR}" How it starts
The opening of the file, as written. The whole thing — 321 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Name
teams:coderabbit-rules-from-pr-reviews
Synopsis
/teams:coderabbit-rules-from-pr-reviews openshift/origin
/teams:coderabbit-rules-from-pr-reviews https://github.com/openshift/origin
/teams:coderabbit-rules-from-pr-reviews openshift/origin --count 50
Description
The teams:coderabbit-rules-from-pr-reviews command analyzes human review comments on recent merged PRs in a GitHub repository to identify recurring review feedback patterns that could be codified as CodeRabbit review rules in the repo's .coderabbit.yaml file.
The command fetches the most recent N merged PRs (default: 30), collects all human review comments (excluding comments from coderabbitai[bot] and other bots), and uses AI analysis to identify patterns that appear across multiple PRs. Only patterns that are likely to recur in future PRs are proposed as rules -- obscure, one-off, or minor issues are ignored.
After analysis, the command offers to open a PR against the repo that adds or updates the .coderabbit.yaml with the proposed rules. It also checks for a CONTRIBUTING.md and adds a reference to the CodeRabbit review rules if one is missing. The command is designed to be re-run periodically -- it compares proposed rules against existing rules and only adds net-new ones.
Arguments
<repo>(required): The GitHub repository to analyze. Accepts either:- Full URL:
https://github.com/openshift/origin - Short form:
openshift/origin
- Full URL:
--count N(optional): Number of recent merged PRs to analyze. Default: 30. Higher values give better pattern detection but take longer.
Implementation
Prerequisites
-
GitHub CLI (
gh): Must be installed and authenticated with access to the target repo. -
Python 3: Python 3.6 or later.
gh auth status python3 --version
Steps
- Parse the repo argument: Extract
owner/repofrom the argument. If a full GitHub URL is provided, strip thehttps://github.com/prefix. Validate the format isowner/repo.
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.
- 9d ago First seen · 321 lines · 12 tokens per session scan C cdc34437c27e
coderabbit-rules-from-pr-reviews is a command published in the GitHub repository wangke19/gemini-ai-helpers (2 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 12 tokens to every session and 3,544 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other commands, from other repositories
audit-quick
Run a quick codebase orientation scan — Phases 0 and 1 only (architecture map + health assessment). Skips deep analysis (security, performance, code quality) and the roadmap. Good for onboarding onto a new project or a fast pre-review checkup. Run /audit --resume later to continue with the deep phases.
review
Perform a comprehensive code review with actionable feedback.
adversarial-review
Get a devil's advocate review that challenges your design decisions.
adr-review
Run the workflow in docs/playbooks/adr-review.md. You review only — never write or rewrite the ADR for me. Check problem framing, option fairness, trade-offs and consequences, reversibility, the revisit trigger, and weak reasoning. Give pointed questions and concrete suggestions; I write the words. If it supersedes an…
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.