turbo-patterns

Develop real-time web UIs with Ruby on Rails and Turbo.

Updated Jun 9, 2026
One-click install
npx skills add https://github.com/arthun01/achados-uesc --skill turbo-patterns-arthun01
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: turbo-patterns
Source: https://github.com/arthun01/achados-uesc/tree/main/.opencode/skills/turbo-patterns
Command: npx skills add https://github.com/arthun01/achados-uesc --skill turbo-patterns-arthun01

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires rails, turbo, hotwire, solid_cable, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a framework for creating dynamic and responsive web applications without the need for JavaScript frameworks, using Ruby on Rails and Turbo.

Core Features & Use Cases

  • Real-time Updates: Streamline updates with Turbo Streams, Turbo Frames, and morphing patterns.
  • Partial Page Rendering: Update parts of the page without reloading the entire page.
  • Form Submissions: Handle form submissions with minimal JavaScript.
  • Broadcasting: Use ActionCable for live updates via Turbo Stream broadcasts.
  • Use Case: Build a chat application where messages appear in real-time for all users without requiring JavaScript for the client-side.

Quick Start

Execute the script to initialize the real-time features for your Rails application.

Frequently Asked Questions about turbo-patterns

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

FAQPage Schema
How do I build real-time web UIs in Rails without using JavaScript frameworks?

Real-time web UIs in Rails can be built using Turbo Streams and Turbo Frames to handle partial page rendering and form submissions with minimal JavaScript. This approach enables dynamic updates by broadcasting changes over ActionCable.

What is the best way to update parts of a Rails page without a full reload?

Partial page updates are handled using Turbo Streams and morphing patterns to refresh specific page sections. This prevents full page reloads by dynamically replacing only the modified HTML fragments.

Do I need Rails 8 to use Turbo Streams and ActionCable for broadcasting?

Yes, using Turbo Streams with ActionCable for broadcasting requires Rails 8.0 or higher and Turbo 8 or above. These versions provide the necessary Solid Cable integration and native streaming features.

How does Turbo handle form submissions in a Rails application?

Turbo handles form submissions natively by intercepting the submit action and updating the page with the server response. This allows form submissions to occur seamlessly without writing custom JavaScript handlers.

Can I use ActionCable to broadcast live updates for a Rails chat application?

Yes, ActionCable can broadcast live updates for a Rails chat application using Turbo Streams. Messages appear instantly for all connected users by streaming partial HTML updates directly to the client.