rails_review_changes
Review PRs or commits with per-file schema, model, and route context, and flag warnings like missing indexes, removed validations, changed associations, or untested routes.
Instructions
PR/commit review context: shows changed files with relevant schema/model/route context per file, detects warnings (missing indexes, removed validations, changed associations, new routes without tests). Use when: reviewing changes before merging, understanding what a commit changed and its impact. Key params: ref (default 'HEAD' for uncommitted, or 'main', 'HEAD~3', commit SHA).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Git ref to diff against. 'HEAD' = uncommitted changes (default). 'main' = diff from main. 'HEAD~3' = last 3 commits. 'abc123' = specific commit. | |
| files | No | Filter to files or directories (relative to Rails root). Omit to review all changed files. |