rails_performance_check
Detects Rails performance anti-patterns via static analysis—N+1 risks, missing counter caches, indexes, eager loading candidates, and Model.all calls—before deploy or while investigating slow pages.
Instructions
Static analysis for Rails performance anti-patterns: N+1 query risks, missing counter_cache, Model.all in controllers, missing foreign key indexes, eager loading candidates. Use when: reviewing code for performance, before deploying, or investigating slow pages. Key params: model (filter by model), category (filter by issue type), detail level.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Filter results to a specific model (e.g., 'User', 'Post') | |
| detail | No | Level of detail: summary (counts), standard (issues + suggestions), full (+ code context) | |
| category | No | Filter by issue category (default: all) |