hotwire-patterns
Installation
SKILL.md
Hotwire Patterns for Rails
Analyze and recommend Stimulus + Turbo patterns for modern, interactive Rails applications.
Applies on the html delivery axis (Axis B, rails-stack-profiles). An api-delivery project has no server-rendered views and does not use Hotwire — use rails-api-patterns instead.
Quick Reference
| Component | Use When |
|---|---|
| Stimulus | Adding JS behaviors to server-rendered HTML |
| Turbo Drive | Default for all links/forms (no config needed) |
| Turbo Frames | Update a section without full reload |
| Turbo Streams | Update multiple DOM elements from one response |
| ActionCable + Streams | Push real-time updates to connected clients |