rails-storage

Automate file upload and Active Storage configurations in Ruby on Rails 8.1.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires aws-sdk-s3, google-cloud-storage, azure-storage-blob, image_processing, libvips, mini_magick, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill addresses the challenge of integrating and managing file uploads, Active Storage configurations, and image processing in Rails 8.1 applications, streamlining the process of handling file attachments and image variants.

Core Features & Use Cases

  • File Uploads: Attach files to models, configure storage services, and manage direct uploads from the browser.
  • Image Processing: Generate image variants and thumbnails for efficient image handling in web applications.
  • Use Case: If you're developing a Ruby on Rails app and need to handle file uploads and image processing, this skill can guide you through setting up Active Storage and configuring storage services like S3 or local disk.

Quick Start

Use the rails-storage skill to configure file uploads for your User model with the S3 storage service and the libvips image processor.

Frequently Asked Questions about rails-storage

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

FAQPage Schema
How do I configure Active Storage for file uploads in Rails 8.1?

To configure Active Storage for file uploads in Rails 8.1, you attach files to models, set up storage services like S3 or local disk, and manage direct uploads from the browser. This skill automates that configuration process for development and production environments.

What is the best way to handle image processing and generate variants in Ruby on Rails?

The best way to handle image processing in Ruby on Rails is generating image variants and thumbnails using the libvips or mini_magick processors. This skill configures Active Storage to create variants efficiently for web applications.

Can I use AWS S3, Google Cloud Storage, and Azure Blob Storage with Rails Active Storage?

Yes, Rails Active Storage supports AWS S3, Google Cloud Storage, and Azure Blob Storage. This skill configures file uploads using the aws-sdk-s3, google-cloud-storage, and azure-storage-blob Ruby gems for production cloud storage.

How do I set up direct uploads from the browser in a Ruby on Rails application?

Direct uploads from the browser in Ruby on Rails are set up by configuring Active Storage to handle file attachments directly from the client. This skill guides you through the setup to attach files to models and manage the upload process.

Do I need the image_processing gem to generate thumbnails in Rails 8.1?

Yes, you need the image_processing gem along with libvips or mini_magick to generate image variants and thumbnails in Rails 8.1. This skill ensures these dependencies are configured correctly for efficient image handling.

Why are my Active Storage image variants not generating correctly in production?

Active Storage image variants fail to generate correctly in production when image processing dependencies like libvips or mini_magick are missing or misconfigured. This skill ensures correct setup of required Ruby gems and storage services across environments.