hotwire-patterns

Implement Hotwire patterns with Turbo Frames, Turbo Streams, and Stimulus controllers in Rails.

Updated Feb 8, 2026
One-click install
npx skills add https://github.com/mlbright/notes --skill hotwire-patterns-mlbright
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hotwire-patterns
Source: https://github.com/mlbright/notes/tree/main/.github/skills/hotwire-patterns
Command: npx skills add https://github.com/mlbright/notes --skill hotwire-patterns-mlbright

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a structured approach and practical examples for implementing modern, interactive web interfaces using Hotwire (Turbo and Stimulus) in Rails applications, reducing the need for complex JavaScript frameworks.

Core Features & Use Cases

  • Turbo Frames: Enables partial page updates for scoped navigation and inline editing.
  • Turbo Streams: Facilitates real-time DOM manipulation for live updates and notifications.
  • Stimulus Controllers: Adds JavaScript behavior to HTML elements with minimal overhead.
  • Use Case: Quickly implement features like inline editing of a user profile, a live-updating feed of new messages, or interactive form elements without writing extensive custom JavaScript.

Quick Start

Use the hotwire-patterns skill to implement inline editing for a post using Turbo Frames.

Frequently Asked Questions about hotwire-patterns

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

FAQPage Schema
How do I implement partial page updates in Rails without a complex JavaScript framework?

Partial page updates in Rails are handled using Turbo Frames, allowing scoped navigation and inline editing without complex JavaScript frameworks. This Skill provides structured patterns to update specific page sections efficiently.

How do I add JavaScript behavior to HTML elements in Rails using Stimulus controllers?

JavaScript behavior in Hotwire is added using Stimulus controllers, attaching functionality to HTML elements with minimal overhead. This Skill demonstrates how to build interactive form elements and UI components without writing extensive custom JavaScript.

Can I build dynamic web UIs in Rails without writing extensive custom JavaScript?

Yes, you can build interactive UIs in Rails using Hotwire with minimal JavaScript. This Skill demonstrates how to combine Turbo Frames, Turbo Streams, and Stimulus controllers to satisfy requirements for dynamic interactions without heavy framework dependencies.

When should I not use Hotwire for building interactive web interfaces?

Hotwire is best suited for server-rendered Rails applications needing dynamic interactions like inline editing or live feeds. It is not intended for building fully client-side single-page applications that rely heavily on complex state management.