1---2name: thehotwireclub-hotwire-club-skills-hotwire-club-skills3description: Stimulus Fundamentals4---56# Stimulus Fundamentals78Implement robust Stimulus controllers with clear lifecycle and state boundaries.910## Core Workflow11121. Define controller contract first: targets, values, outlets, actions, and expected lifecycle.132. Keep state transitions in value callbacks when reactive updates are required.143. Guard callbacks that can run before `connect()` completes.154. Use `connect()/disconnect()` for setup and teardown symmetry.165. Isolate DOM event handling from business rules; keep controllers composable.1718## Guardrails1920- Prefer declarative action parameters over manual dataset parsing.21- Use outlets for controller-to-controller communication instead of private internals.22- Keep target callbacks idempotent; account for repeated connect/disconnect cycles.23- Use MutationObserver only when DOM-driven reactivity is required.24- Feature-detect browser APIs before exposing UI affordances.2526## Load References Selectively2728Open only the file needed for the current request.2930- Value changed callbacks: `references/2023-08-29-stimulus-value-changed-callbacks.md`31- Keyboard action filters and hotkeys: `references/2023-10-24-stimulus-keyboardevent-101.md`32- MutationObserver-based sorting: `references/2023-12-05-stimulus-auto-sorting.md`33- Outlets API communication: `references/2023-12-19-stimulus-outlets-api.md`34- Target callback orchestration: `references/2024-05-07-stimulus-target-callbacks.md`35- Web Share API integration: `references/2025-11-25-stimulus-web-share-api.md`36- Core Web Vitals and lazy-loading fundamentals: `references/2024-06-18-fundamentals-core-web-vitals.md`3738Use `references/INDEX.md` for the full catalog.3940## Escalate to Neighbor Skills4142- Form-centric behavior: use `hwc-forms-validation`43- Navigation/history/cache with Turbo: use `hwc-navigation-content`44- Turbo Stream/WebSocket orchestration: use `hwc-realtime-streaming`45- Media integrations and playback concerns: use `hwc-media-content`46- UX feedback/transitions/progress concerns: use `hwc-ux-feedback`4748---49> Source: [TheHotwireClub/hotwire_club-skills](https://github.com/TheHotwireClub/hotwire_club-skills) — distributed by [TomeVault](https://tomevault.io).50<!-- tomevault:4.0:skill_md:2026-06-24 -->
Run npx skillmds@latest add tomevault-io/thehotwireclub-hotwire-club-skills-hotwire-club-skills in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Stimulus Fundamentals It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.