/ruby-rails:rails-stimulus-javascriptfrom ruby-rails
This skill should be used when the user asks to "add a Stimulus controller", "add JavaScript to this page", "pin a JS package with importmap", "wire up a data-action", or asks where JS belongs under app/javascript. For server-driven page updates that need no JavaScript, use rails-hotwire-turbo.
Ships in ruby-rails. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Add small, cohesive Stimulus controllers; avoid SPA frameworks unless required.
app/javascriptAssume mise-managed Ruby and Rails with bin/* binstubs — not rbenv, rvm, or
asdf. Read ${CLAUDE_PLUGIN_ROOT}/references/conventions.md for versions,
command forms, and type-system pairing before running project commands.
Generators: bin/rails generate stimulus hello.
Targets and values API for DOM binding; keep controllers under ~100 lines.
Importmap: pin JavaScript packages with bin/importmap pin <package>, which downloads the npm package into vendor/javascript, rather than adding a Node build to the Rails-default stack. Importmap apps register Stimulus controllers automatically (eagerLoadControllersFrom); stimulus:manifest:update is only for jsbundling-rails apps.
Testing: System tests for critical interactions; unit test pure functions if extracted.
Avoid duplicating Turbo responsibilities (navigation, form submit) in Stimulus.
mise exec -- bin/importmap pin <package>
mise exec -- bin/importmap json
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub meaganewaller/marketplace --plugin ruby-rails28 skills in this plugin
/generating-rbsThis skill should be used when the user asks to "add RBS signatures", "generate RBS for this file", "write .rbs files", "set up Steep", "type-check this Ruby with RBS", or "update sig/ after these changes". Writes standalone RBS signatures under sig/**/*.rbs and never edits the Ruby source. For RBS written as inline `# @rbs` comments in the source instead, use generating-rbs-inline; for Sorbet rather than RBS, use generating-sorbet or generating-sorbet-inline./generating-rbs-inlineThis skill should be used when the user asks to "add rbs-inline annotations", "annotate this file with @rbs comments", "use rbs-inline", "add inline RBS types", or "generate RBS from comments in the source". Writes RBS types as `# @rbs` comments directly inside .rb files. For standalone sig/**/*.rbs signature files instead, use generating-rbs; for Sorbet rather than RBS, use generating-sorbet or generating-sorbet-inline./generating-sorbetThis skill should be used when the user asks to "generate RBI files", "add Sorbet types without touching the source", "write .rbi shims", "type a gem for Sorbet", or "add signatures for generated code". Writes standalone .rbi files and never edits the Ruby source — the right choice for gems, generated code, and legacy files. In a Rails app it sends ActiveRecord and other DSL methods to `tapioca dsl` and writes only the remaining shims, under sorbet/rbi/shims/. For `sig { }` blocks written in the source itself, use generating-sorbet-inline; for RBS rather than Sorbet, use generating-rbs or generating-rbs-inline.Other plugins' skills for the same job