postgresql-rails-analyzer
Installation
SKILL.md
PostgreSQL Rails Analyzer
Analyze Rails applications for PostgreSQL performance issues and provide actionable optimization recommendations based on "High Performance PostgreSQL for Rails" best practices.
Analysis Scripts
Run from the Rails application root directory:
1. N+1 Query Analysis
ruby scripts/analyze_n_plus_one.rb
Detects potential N+1 query issues by analyzing:
- Controller actions for queries without eager loading
- View files for association access patterns
- Missing
includes,preload, oreager_loadcalls