What problem does it solve?
This Skill solves the problem of writing unmaintainable, tightly coupled StimulusJS controllers that ignore framework best practices, leading to technical debt, bugs, and hard-to-debug codebases.
Core Features & Use Cases
- Best Practice Enforcement: Applies opinionated Better Stimulus patterns for controller design, state management, lifecycle handling, and inter-controller communication.
- Turbo Compatibility: Provides proven patterns for Turbo Drive, Turbo Frames, and Turbo Streams integration, including caching teardown and form submission handling.
- Use Cases: Ideal for writing new Stimulus controllers, refactoring legacy Stimulus code, reviewing controller architecture, debugging cross-controller communication issues, integrating third-party JavaScript libraries, and implementing form and DOM interaction logic.
Quick Start
Use the stimulus skill to refactor your existing toggle controller to use the Stimulus Values API instead of hardcoded instance state for managing the active class.