Skip to content
pproenca avatar

Rails Hotwire

Hotwire patterns for Rails covering Turbo Drive, Frames, Streams, morphing, and Stimulus controllers.

CCM score
46 of 100
skills.sh installs
391
GitHub stars
228
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers navigation, partial page updates, real-time broadcasting, morphing, and Stimulus controller design across 53 rules
  • Organizes rules into 9 prioritized categories, from Drive and Frames down to Testing and Architecture decisions
  • Enforces patterns such as scoped broadcast streams, debounced broadcasts, signed stream names, and progressive HTML fallbacks
  • Designed for reviewing, writing, or refactoring Hotwire-powered Rails code alongside rails-dev and rails-testing

Install

$ npx -y skills add pproenca/dot-skills --skill rails-hotwire -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Community Rails Hotwire Best Practices

Comprehensive guide for building interactive Rails applications with Hotwire (Turbo + Stimulus), maintained by Community. Contains 53 rules across 9 categories, prioritized by impact to guide automated refactoring and code generation. Follows the DHH "One Person Framework" philosophy: the server renders HTML, Turbo makes it feel like an SPA, Stimulus adds the sprinkle of JS where needed.

When to Apply

Reference these guidelines when:

  • Configuring Turbo Drive navigation, prefetching, and caching behavior
  • Adding Turbo Frames for partial page updates and lazy loading
  • Delivering Turbo Streams for surgical DOM mutations
  • Broadcasting real-time updates over ActionCable
  • Enabling Turbo 8 morphing for page refreshes
  • Writing Stimulus controllers for client-side behavior
  • Handling errors in Turbo navigation, frames, and WebSocket connections
  • Choosing between Drive, Frames, Streams, Morphing, and Stimulus
  • Testing Hotwire interactions in system and integration tests

Rule Categories by Priority

Details

Repository
github.com/pproenca/dot-skills
Categories
Frontend & UI Code, Backend & APIs
First seen
Jun 3, 2026

Questions

What does the rails-hotwire skill do?

rails-hotwire gives agents Ruby on Rails Hotwire best practices for Turbo Drive, Turbo Frames, Turbo Streams, Turbo 8 morphing, and Stimulus controllers. It covers navigation, partial page updates, real-time broadcasting, morphing, and progressive enhancement in Rails code.

How do I install the rails-hotwire skill?

Run npx -y skills add pproenca/dot-skills --skill rails-hotwire -y inside your project. After that, rails-hotwire guides the agent when it writes, reviews, or refactors Hotwire-powered Rails code.

When should I use rails-hotwire instead of rails-dev?

rails-hotwire focuses on Hotwire-specific patterns such as Turbo Frames, Turbo Streams, broadcasts, and Stimulus controllers. rails-dev covers general Rails performance and maintainability, and the two are meant to be used together.

What kinds of tasks trigger the rails-hotwire skill?

rails-hotwire triggers on tasks involving turbo_frame_tag, turbo_stream_from, broadcasts, morphing, Stimulus controllers, ActionCable, data-controller, data-action, and Hotwire performance. It is aimed at developers working on interactive Rails applications.

More from pproenca/dot-skills

All 100

Similar to Rails Hotwire

More Frontend & UI Code