stimulus

Bind JavaScript controllers to DOM elements using data-controller attributes.

5|1|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/ineersa/re-search --skill stimulus-ineersa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stimulus
Source: https://github.com/ineersa/re-search/tree/main/.cursor/skills/stimulus
Command: npx skills add https://github.com/ineersa/re-search --skill stimulus-ineersa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Stimulus provides a minimal, predictable JavaScript framework to attach behavior to HTML using data attributes, eliminating the need for heavy front-end frameworks for server-rendered applications.

Core Features & Use Cases

  • Lightweight binding of JavaScript controllers to DOM elements via data-controller attributes.
  • Simple event handling with actions and typed values, enabling interactive UI components like dropdowns, modals, tabs, and forms without bespoke JS glue.
  • Real-world use: progressively enhance Symfony UX pages by wiring UI interactions to controllers and ensuring clean separation of concerns.

Quick Start

Register controllers with Stimulus and connect them to HTML elements using data-controller attributes.

Frequently Asked Questions about stimulus

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

FAQPage Schema
How do I add JavaScript behavior to HTML elements without a heavy frontend framework?

You can attach JavaScript behavior to HTML by binding small controllers to DOM elements using data-controller attributes. Stimulus provides a minimal, predictable framework to wire interactive UI components like dropdowns, modals, and tabs without heavy front-end frameworks.

How do I wire interactive UI components in a Symfony UX application?

To wire interactive UI components in Symfony UX, use Stimulus to register small JavaScript controllers and connect them to HTML elements via data-controller attributes. This progressively enhances server-rendered pages with clean separation of concerns.

Can I use Stimulus controllers for server-rendered apps outside of Symfony?

Yes, you can use Stimulus controllers for server-rendered apps outside of Symfony. The framework attaches behavior to HTML using data attributes, enabling rapid, maintainable interactivity for any server-rendered application.

What is the best way to handle events and typed values in frontend HTML?

The best way to handle events and typed values in frontend HTML is using the Stimulus API, which provides formal concepts like actions, targets, values, classes, and outlets to manage interactive UI components predictably.

How do I register and discover controllers using a frontmatter-driven workflow?

You register and discover controllers using a frontmatter-driven workflow by defining controller logic and connecting them to DOM elements with data-controller attributes. The Stimulus API enforces this formal discovery process for maintaining UI interactions.