stimulus-agent

Create accessible Stimulus controllers with targets, values, and actions for Rails apps.

Updated Nov 1, 2025
One-click install
npx skills add https://github.com/nschneble/rails-superstack --skill stimulus-agent-nschneble
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stimulus-agent
Source: https://github.com/nschneble/rails-superstack/tree/main/.agents/skills/stimulus-agent
Command: npx skills add https://github.com/nschneble/rails-superstack --skill stimulus-agent-nschneble

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creates accessible Stimulus controllers following Hotwire patterns with targets, values, and actions to help developers implement interactive UI with accessibility in Rails apps.

Core Features & Use Cases

  • Writes well-documented Stimulus controllers with JSDoc comments
  • Ensures ARIA attributes, keyboard navigation, and Turbo integration
  • Provides guidance for testability with specs and components

Quick Start

Create a new Stimulus controller following the guidelines in this Skill to add accessible client-side behavior to your app.

Frequently Asked Questions about stimulus-agent

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

FAQPage Schema
How do I create accessible Stimulus controllers for a Rails application?

To create accessible Stimulus controllers, define targets, values, and actions that implement ARIA attributes and keyboard navigation. This approach ensures interactive UI components in Rails apps meet web accessibility standards while following strict Stimulus patterns.

How do I add ARIA attributes and keyboard navigation to Turbo modals?

Adding ARIA attributes and keyboard navigation to Turbo modals requires defining Stimulus controller actions that manage focus traps and semantic roles. This ensures modal components remain accessible during dynamic Turbo page transitions and interactive UI updates.

Does this approach work for Rails admin dashboards using Turbo and Stimulus?

Yes, writing Stimulus controllers with proper targets and values works seamlessly for Rails admin dashboards using Turbo. The generated controllers handle dynamic lists and interactive components while maintaining strict accessibility guidelines across the Hotwire stack.

What is the best way to document Stimulus controllers for testability?

The best way to document Stimulus controllers for testability is using comprehensive JSDoc-style comments. This documentation practice clarifies targets, values, and actions, making it easier to write matching specs and component tests for your Rails frontend code.

Why does my interactive frontend UI fail accessibility tests in Rails?

Interactive frontend UI often fails accessibility tests in Rails when Stimulus controllers lack proper ARIA attributes and keyboard navigation support. Implementing strict Hotwire patterns with documented targets and actions resolves these compliance gaps in dynamic forms and modals.