Skip to content

alchemiststudiosDOTai/coderabbit-config-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeRabbit Config Generator

Skill to turn your project's recent PR history and commit messages into CodeRabbit checks that match the issues you actually see in practice

A Claude Code skill that analyzes your project's PR history and commit messages to generate a .coderabbit.yaml tailored to the issues you actually see in practice.

Install

Clone this repo into your Claude Code skills directory:

git clone https://github.com/alchemiststudiosDOTai/coderabbit-config-generator.git \
  ~/.claude/skills/coderabbit-config-generator

The skill is now available in all your projects.

Usage

Ask Claude to run the skill on your current repository:

Run the CodeRabbit config generator skill for this repo using the last 90 days of PRs and commits.

Or invoke it directly:

/coderabbit-config-generator

The skill will:

  1. Pull recent PRs and commits via the GitHub CLI
  2. Scan for recurring patterns (common issues, edge cases, anti-patterns)
  3. Generate a .coderabbit.yaml with custom review checks matched to your project

Prerequisites

  • GitHub CLI (gh) authenticated
  • Python 3
  • A local git clone of the repository you want to analyze

Running the scripts directly

~/.claude/skills/coderabbit-config-generator/scripts/run_analysis.sh \
  --repo-path /path/to/repo --repo owner/name

Validating a config

Requires PyYAML (pip install pyyaml):

python3 ~/.claude/skills/coderabbit-config-generator/scripts/validate_coderabbit_yaml.py \
  --config .coderabbit.yaml

Tuning patterns

Edit scripts/patterns.json to add or refine keyword and regex matches used during analysis.

Skill structure

coderabbit-config-generator/
├── SKILL.md                              # Skill entrypoint (instructions for Claude)
├── README.md                             # This file
├── scripts/
│   ├── run_analysis.sh                   # Main analysis runner
│   ├── collect_prs.sh                    # PR data collection
│   ├── collect_commits.sh                # Commit log collection
│   ├── analyze_patterns.py               # Pattern detection
│   ├── validate_coderabbit_yaml.py       # Config validator
│   └── patterns.json                     # Tunable pattern definitions
└── alchemiststudios-coderabbit-2.webp    # Banner image

About

Claude Code skill that analyzes your PR history and commit patterns to generate a .coderabbit.yaml tailored to issues you actually see in practice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors