Loading...
Loading...
Ruby on Rails Hotwire best practices for building interactive applications with Turbo Drive, Turbo Frames, Turbo Streams, Turbo 8 morphing, and Stimulus controllers. This skill should be used when writing, reviewing, or refactoring Hotwire-powered Rails code to ensure optimal patterns for navigation, partial page updates, real-time broadcasting, morphing, Stimulus controller design, error handling, and progressive enhancement. Triggers on tasks involving Turbo Frames, Turbo Streams, Turbo Drive, broadcasts, morphing, Stimulus controllers, ActionCable, turbo_stream_from, turbo_frame_tag, data-controller, data-action, or Hotwire performance. Complementary to rails-dev, rails-testing, rails-design-system, ruby-optimise, and ruby-refactor skills.
npx skill4agent add pproenca/dot-skills rails-hotwire| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Navigation & Drive | CRITICAL | |
| 2 | Turbo Frames | CRITICAL | |
| 3 | Turbo Streams | HIGH | |
| 4 | Broadcasting & Real-Time | HIGH | |
| 5 | Morphing & Page Refresh | HIGH | |
| 6 | Performance Optimization | MEDIUM-HIGH | |
| 7 | Stimulus Patterns | MEDIUM-HIGH | |
| 8 | Architecture Decisions | MEDIUM | |
| 9 | Testing Hotwire | MEDIUM | |
drive-prefetch-linksdrive-form-submissionsdrive-visit-actionsdrive-cache-controldrive-selective-disabledrive-progress-bardrive-confirm-dialogdrive-error-recoveryframe-lazy-loadingframe-scope-navigationframe-src-navigationframe-break-outframe-promote-visitsframe-dom-idframe-empty-statestream-progressive-enhancestream-action-selectionstream-multi-targetstream-http-deliverystream-websocket-sourcestream-custom-actionsbcast-model-broadcastsbcast-debounce-n1bcast-scope-streamsbcast-refresh-over-replacebcast-avoid-view-logic-in-modelsbcast-signed-stream-namesbcast-reconnect-handlingmorph-enable-page-refreshmorph-permanent-elementsmorph-scroll-preservationmorph-stimulus-reconnectmorph-frame-refreshmorph-vs-streamsperf-optimistic-uiperf-batch-streamsperf-frame-cachingperf-prefetch-strategicperf-memory-leak-preventionstim-outlets-communicationstim-values-reactive-statestim-action-descriptorsstim-small-reusable-controllersarch-progressive-enhancementarch-frame-vs-stream-decisionarch-importmap-managementarch-avoid-client-statearch-stimulus-boundariestest-system-test-asynctest-stream-assertionstest-broadcast-assertionstest-frame-navigationtest-websocket-timing| File | Description |
|---|---|
| references/_sections.md | Category definitions and ordering |
| assets/templates/_template.md | Template for new rules |
| metadata.json | Version and reference information |