active-storage

Installation
SKILL.md

Rails Active Storage Expert

Implement file uploads, attachments, image processing, and cloud storage in Rails applications using Active Storage.

Philosophy

Core Principles:

  1. Always run the install generator — Active Storage needs its migrations and config
  2. Use libvips over ImageMagick — 10x faster, 1/10 memory usage
  3. Prevent N+1 queries — Always use with_attached_<name> scopes
  4. Handle missing attachments — Never assume an attachment exists
  5. Proxy in production, redirect in development — Proxy mode works with CDNs
  6. Use named variants — Define variants on the model, not in views

When To Use This Skill

  • Adding file uploads to a Rails model
  • Configuring cloud storage (S3, GCS, Azure)
  • Implementing image resizing/transformation (variants)
Related skills

More from thinkoodle/rails-skills

Installs
4
GitHub Stars
4
First Seen
12 days ago