stimulus-patterns

Generate modular Stimulus controllers for progressive HTML enhancement.

Updated Jun 9, 2026
One-click install
npx skills add https://github.com/arthun01/achados-uesc --skill stimulus-patterns-arthun01
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stimulus-patterns
Source: https://github.com/arthun01/achados-uesc/tree/main/.opencode/skills/stimulus-patterns
Command: npx skills add https://github.com/arthun01/achados-uesc --skill stimulus-patterns-arthun01

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill allows you to build modular and reusable Stimulus controllers for web applications, reducing the complexity of managing JavaScript behavior.

Core Features & Use Cases

  • Modular Controllers: Create single-purpose, reusable JavaScript controllers.
  • Progressive Enhancement: Add interactive behaviors to your HTML without affecting the entire app.
  • Use Case: Enhance your forms with auto-submit functionality, add dynamic content loading, or create interactive UI elements using Stimulus controllers.

Quick Start

Generate a new Stimulus controller using the 'bin/rails generate stimulus controller [name]' command.

Frequently Asked Questions about stimulus-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add JavaScript interactivity to HTML using progressive enhancement?

You add interactivity by writing small, single-purpose Stimulus controllers that attach to your HTML elements, progressively enhancing forms and UI components without requiring a full JavaScript framework.

What is the best way to build maintainable Stimulus controllers for web applications?

The best way to build maintainable Stimulus controllers is to keep them modular and single-purpose, reducing the complexity of managing JavaScript behavior while ensuring they remain reusable across your web application.

How do I generate a new Stimulus controller in my Rails application?

You generate a new Stimulus controller by running the 'bin/rails generate stimulus controller [name]' command in your Rails application to quickly scaffold the required files.

Does Stimulus work with Turbo for dynamic content loading?

Yes, Stimulus works seamlessly with Turbo to add interactivity without framework overhead, allowing you to handle dynamic content loading and build interactive UI elements efficiently.

Can I use Stimulus controllers for auto-submit forms and modals?

Yes, you can use Stimulus controllers to add auto-submit functionality to forms and build interactive UI elements like modals, progressively enhancing your HTML without affecting the entire application.

When should I avoid using a JavaScript framework over Stimulus?

You should avoid a heavy JavaScript framework when you only need simple, progressive enhancement of HTML, utilizing Stimulus instead to add interactive behaviors without the associated framework overhead.