rails-hotwire-realtime

Turbo Streams/Frames, morphing, Stimulus, ActionCable, presence, optimistic UI, web push

On demand · raw .md · GitHub

Install

npx skills add marckohlbrugge/skills --skill rails-hotwire-realtime

Or tell your agent:

Install the skill at https://marc.md/rails-hotwire-realtime.md

Or by hand, for Claude Code:

mkdir -p ~/.claude/skills/rails-hotwire-realtime && curl -fsSL https://marc.md/rails-hotwire-realtime.md -o ~/.claude/skills/rails-hotwire-realtime/SKILL.md

Rails Hotwire + Realtime

Use for Turbo/Stimulus/ActionCable architecture and reviews. Patterns from Campfire (cable-heavy chat) and Fizzy (streams-only kanban).

Choose the Right Realtime Architecture

Two proven 37signals topologies:

Rule of thumb: Turbo Streams for anything that changes the DOM; bare ActionCable only for tiny ephemeral signals.

Turbo Defaults

Broadcast Patterns

Reconnect & Catch-Up

Stimulus Defaults

Scroll & Interaction Contracts

ActionCable / Connection Safety

Caching + Realtime

Web Push (when applicable)

Testing

Red Flags