rails-performance

Optimize Rails 8.1 application performance with caching and query tuning tools.

Updated Jun 13, 2026
One-click install
npx skills add https://github.com/jcuervo/rails-skills --skill rails-performance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rails-performance
Source: https://github.com/jcuervo/rails-skills/tree/main/rails-performance
Command: npx skills add https://github.com/jcuervo/rails-skills --skill rails-performance

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bullet, redis, memcached, solid_cache, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the performance bottlenecks in a Rails 8.1 application by offering menu-driven caching and query tuning options, ensuring the application runs efficiently.

Core Features & Use Cases

  • Caching: Choose a cache store, apply caching strategies like fragment and HTTP caching, and configure N+1 detection.
  • Query Tuning: Optimize database queries with indexes, select/pluck, counter caches, and read replicas.
  • Use Case: When an endpoint in your Rails application is slow, this Skill helps you identify and fix performance issues, such as N+1 queries and inefficient caching.

Quick Start

Use the rails-performance skill to optimize the performance of your Rails app, specifically targeting the endpoint /users.

Frequently Asked Questions about rails-performance

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

FAQPage Schema
How do I fix N+1 queries in my Rails application?

This skill detects and resolves N+1 queries in Rails by configuring bullet for N+1 detection and applying query tuning with indexes, select/pluck, and counter caches to optimize database interactions.

What's the best way to configure caching for a Rails 8.1 application?

The best way to configure caching for a Rails 8.1 application is using menu-driven tools to select a cache store like Redis or Memcached and apply fragment and HTTP caching strategies for performance optimization.

Does this Rails performance optimization tool require specific gems to function?

Yes, this Rails performance optimization tool requires specific gems to function, including bullet for N+1 detection, redis and memcached for cache stores, and solid_cache for caching strategies.

How do I optimize slow database queries in Rails using select and pluck?

You can optimize slow database queries in Rails by applying query tuning techniques like select and pluck to fetch only necessary columns, adding database indexes, and utilizing read replicas to reduce query load times.

Can I use Redis and Solid Cache together for Rails performance optimization?

Yes, you can use Redis and Solid Cache together for Rails performance optimization; this skill supports both as cache store dependencies, allowing you to select and configure the appropriate store for your caching strategies.

When should I use HTTP caching and fragment caching in my Rails app?

You should use HTTP caching and fragment caching in your Rails app when endpoints are slow and you need to reduce server load; this skill provides menu-driven options to apply these caching strategies based on your performance bottlenecks.