hotwire
Installation
SKILL.md
Hotwire, Turbo & Stimulus for Rails
Expert patterns for JavaScript and Hotwire integration with Ruby on Rails.
Core Principles
- Use latest versions based on Gemfile
- Follow Rails conventions and best practices
- Use Context7 MCP or hotwire.dev for documentation
- Test JavaScript with RSpec system specs (Capybara + Cuprite)
- Review existing Stimulus controllers before creating new ones
Stimulus Controllers
Guidelines
- Keep controllers simple and focused
- Make controllers generic when possible, specific only when needed
- Never have controllers communicate with each other
- Integrate into ERB templates using Rails conventions