Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

rails-hotwire

БесплатноБез исполняемых скриптовНе проверен

Ruby on Rails Hotwire best practices for building interactive applications with Turbo Drive, Turbo Frames, Turbo Streams, Turbo 8 morphing, and Stimulus…

pproencaот pproenca★ 231 звезда на GitHub

Об этом скилле

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

Priority Category Impact Prefix
1 Navigation & Drive CRITICAL drive-
2 Turbo Frames CRITICAL frame-
3 Turbo Streams HIGH stream-
4 Broadcasting & Real-Time HIGH bcast-
5 Morphing & Page Refresh HIGH morph-
6 Performance Optimization MEDIUM-HIGH perf-
7 Stimulus Patterns MEDIUM-HIGH stim-
8 Architecture Decisions MEDIUM arch-
9 Testing Hotwire MEDIUM test-

Quick Reference

1. Navigation & Drive (CRITICAL)

2. Turbo Frames (CRITICAL)

3. Turbo Streams (HIGH)

4. Broadcasting & Real-Time (HIGH)

5. Morphing & Page Refresh (HIGH)

Полный SKILL.md на GitHub

Установить rails-hotwire в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/templates/_template.mdmetadata.jsonreferences/_sections.mdreferences/arch-avoid-client-state.mdreferences/arch-frame-vs-stream-decision.mdreferences/arch-importmap-management.mdreferences/arch-progressive-enhancement.mdreferences/arch-stimulus-boundaries.mdreferences/bcast-avoid-view-logic-in-models.mdreferences/bcast-debounce-n1.mdreferences/bcast-model-broadcasts.mdreferences/bcast-reconnect-handling.mdreferences/bcast-refresh-over-replace.mdreferences/bcast-scope-streams.mdreferences/bcast-signed-stream-names.mdreferences/drive-cache-control.mdreferences/drive-confirm-dialog.mdreferences/drive-error-recovery.mdreferences/drive-form-submissions.mdreferences/drive-prefetch-links.mdreferences/drive-progress-bar.mdreferences/drive-selective-disable.mdreferences/drive-visit-actions.mdreferences/frame-break-out.mdreferences/frame-dom-id.mdreferences/frame-empty-state.mdreferences/frame-lazy-loading.mdreferences/frame-promote-visits.mdreferences/frame-scope-navigation.mdreferences/frame-src-navigation.mdreferences/morph-enable-page-refresh.mdreferences/morph-frame-refresh.mdreferences/morph-permanent-elements.mdreferences/morph-scroll-preservation.mdreferences/morph-stimulus-reconnect.mdreferences/morph-vs-streams.mdreferences/perf-batch-streams.mdreferences/perf-frame-caching.mdreferences/perf-memory-leak-prevention.mdreferences/perf-optimistic-ui.md

FAQ

Что делает скилл rails-hotwire?

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.

Как установить скилл rails-hotwire?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл rails-hotwire запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить rails-hotwire с