postgresql-rails-analyzer

Analyze Rails applications for PostgreSQL performance issues and generate migration-ready fixes.

2|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/damacus/agent-skills --skill postgresql-rails-analyzer-damacus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgresql-rails-analyzer
Source: https://github.com/damacus/agent-skills/tree/main/skills/postgresql-rails-analyzer
Command: npx skills add https://github.com/damacus/agent-skills --skill postgresql-rails-analyzer-damacus

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rails applications often suffer PostgreSQL performance issues due to N+1 queries, missing indexes, and suboptimal configurations. This skill analyzes Rails projects to surface these problems and provide actionable optimization recommendations.

Core Features & Use Cases

  • N+1 query detection and guidance for eager loading
  • Index recommendation and configuration review
  • Production-ready migration snippets and best-practice checks
  • Use Case: Run the analysis on a Rails app to identify slow database paths and propose fixes.

Quick Start

Run the three analysis scripts from the Rails app root to generate a comprehensive PostgreSQL performance report.

Frequently Asked Questions about postgresql-rails-analyzer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find N+1 queries in a Rails application?

To find N+1 queries in a Rails application, run an analysis script from the project root to surface slow database paths and generate actionable eager loading guidance.

What is the best way to identify missing PostgreSQL indexes in Rails?

Identifying missing PostgreSQL indexes in Rails requires auditing your database configuration and codebase to surface suboptimal paths, producing migration-ready code changes for fixes.

How do I check PostgreSQL configuration issues during a Rails performance audit?

Check PostgreSQL configuration issues during a Rails performance audit by running analysis scripts that review database settings and surface suboptimal configurations with actionable recommendations.

Can I generate database migration snippets to fix Rails performance gaps?

You can generate migration-ready code snippets to fix Rails performance gaps by applying the analyzer to your codebase during optimization tasks to implement best-practice checks.

Does the PostgreSQL Rails analyzer work without external dependencies?

The PostgreSQL Rails analyzer works without external dependencies, allowing you to run three analysis scripts directly from the Rails app root to generate a comprehensive performance report.