In short.
The Symfony UX Stimulus skill is an instruction pack for developers using coding assistants with Symfony UX, but its references disagree about default events and its validation example prevents normal form submission. It offers substantial coverage of controller wiring, lifecycle cleanup, targets, values, outlets and common interface patterns. The examples are useful starting points rather than complete application features. Nothing was executed; runtime correctness, assistant effectiveness and compatibility with specific framework versions remain unassessed.
Researched and written by an AI model and checked by a second AI model. How it works
The scope comprises skills/stimulus/SKILL.md and all three files in skills/stimulus/references, together with the repository-level LICENSE, at revision f6c2e93a28265e980431f84d7291b245b6bcb8da. Other repository skills, framework implementations, external dependencies and later revisions are excluded. All four selected files and the related notice are represented. Nothing was executed; assistant loading, generated-code quality, browser behavior, accessibility completeness and application compatibility remain unassessed.
The overview
Identity
This resource is the skills/stimulus folder in Simon Andre's symfony-ux-skills repository. It contains assistant instructions in SKILL.md and three Markdown references covering the API, implementation patterns and debugging. Its metadata declares skill version 1.2.0; that is not a declared Stimulus framework version.
The original source folder is [https://github.com/smnandre/symfony-ux-skills/tree/main/skills/stimulus]. The resource supplies development guidance and example code for adding JavaScript behavior to server-rendered HTML.
Assessment
The strongest feature is the connection between HTML wiring, controller code and troubleshooting. A developer can move from a naming convention to a worked interaction and then to checks for missing targets, registration problems or cleanup during Turbo navigation.
The material needs technical review before direct reuse. Internal contradictions and incomplete patterns reduce its reliability as an authoritative reference. There is no evidence establishing improved coding-assistant accuracy, productivity or generated-code quality.
Users
The skill fits developers adding focused interactions such as dropdowns, dialogs, tabs and clipboard buttons to Symfony applications. Beginners get concrete HTML and JavaScript pairings, although understanding elements, events, classes and basic JavaScript remains necessary.
Experienced developers may find the lifecycle, outlet, custom-event and Turbo-related material useful when directing a coding assistant. Twig examples help connect server-provided values to browser behavior, but a complete introduction to Symfony or JavaScript is outside the material.
Capabilities
The references document controller lifecycle callbacks, named DOM targets, typed values, value-change callbacks, action options, keyboard and global events, configurable CSS classes, outlets between controllers and custom-event dispatch. Symfony-specific material includes Twig attribute helpers and controller naming conventions.
Worked patterns cover debounced search, loading indicators, disclosure toggles, native dialogs, dropdowns, tabs, form validation, clipboard copying, delayed form submission, character counting, infinite scrolling and drag-and-drop ordering. Additional examples show third-party library cleanup and lazy-loading annotations.
Using it
Requirements
Using the folder as an assistant skill requires a host that can load SKILL.md and its relative reference files. Supported assistant products, installation locations and host-specific activation procedures are not specified.
The application examples import Controller from @hotwired/stimulus and require registered controllers with matching HTML attributes. Twig examples assume a Symfony/Twig environment. AssetMapper is presented as an option without a build step, but compatible Symfony, PHP, Stimulus and integration-package versions are unknown.
Some patterns also depend on browser APIs such as fetch, navigator.clipboard, dialog and IntersectionObserver. A supported-browser matrix and exact third-party dependency versions are not supplied.
Mechanism
SKILL.md describes relevant development requests and directs the assistant to the API, patterns and debugging references. Its application model connects JavaScript controllers to existing HTML through data-controller, data-action, target, value, class and outlet attributes.
A controller responds to events and changes existing elements. Typed values expose HTML attributes through JavaScript properties, while lifecycle callbacks provide places to initialize and release resources. Despite the description's emphasis on behavior without server round-trips, the search and infinite-scroll examples use fetch; network requirements depend on the feature.
Setup
Keep SKILL.md together with references/api.md, references/gotchas.md and references/patterns.md so its relative links remain usable. Load the folder through the chosen assistant's documented skill mechanism; this resource does not provide a complete host installation procedure.
For application code, the examples place controllers under assets/controllers. A file named hello_controller.js corresponds to data-controller="hello", while components/modal_controller.js corresponds to components--modal. Declare the required targets and values, add matching HTML attributes and confirm controller registration in the application's existing Stimulus setup.
Example
The disclosure example attaches a toggle controller to a wrapper, identifies a content target and connects a button through click->toggle#toggle. The controller declares an open Boolean value with a false default and an open CSS class supplied by the HTML.
Clicking is intended to invert openValue. Its change callback sets the content element's hidden property and toggles the configured class. This illustrates how a small controller can coordinate existing markup without a server request. The supplied example does not synchronize an aria-expanded attribute on the button.
Assessment & evidence
Limitations
The API reference lists click as the default event for other elements, while the debugging reference says a div has no default event. These statements conflict. Explicit event names avoid depending on that inconsistent advice.
The validation form attaches submit->validation#submit:prevent. The included API reference defines :prevent as calling preventDefault(), so this action cancels normal submission even for valid input. The handler supplies no alternative successful-submission path.
The search pattern omits response-status checking, request cancellation and protection against older responses replacing newer results. Infinite scrolling lacks an in-flight request guard and end-of-list handling. The tabs example changes selection and visibility but supplies no arrow-key navigation or focus management. These are source-level omissions; their application impact was not assessed through execution.
Reasoning
The resource is most useful when a feature can be expressed as a small controller attached to existing markup. Its repeated emphasis on one concern per controller, typed values and cleanup gives developers concrete conventions for directing assistant-generated code.
Features that fetch HTML still require application endpoints, request handling and decisions about response insertion. The snippets illustrate the interaction structure but leave substantial reliability and accessibility behavior to the application. Performance advantages and productivity gains are not established.
Alternatives
SKILL.md distinguishes related Symfony UX approaches by purpose: Turbo for partial-page updates without writing JavaScript, LiveComponent for server-rendered reactivity and TwigComponent for reusable Twig templates. These are the author's routing distinctions rather than measured comparisons.
The separate skills, implementation requirements and comparative results for those alternatives are outside the supplied folder. No comparison with competing Stimulus assistant skills is provided.
Evidence
The source snapshot includes the complete selected folder: skills/stimulus/SKILL.md, references/api.md, references/gotchas.md and references/patterns.md. The repository-level LICENSE supplies the related rights notice.
The files are identified by source revision f6c2e93a28265e980431f84d7291b245b6bcb8da. The immutable main skill source is [https://raw.githubusercontent.com/smnandre/symfony-ux-skills/f6c2e93a28265e980431f84d7291b245b6bcb8da/skills/stimulus/SKILL.md]. The evidence consists of instructions and code examples; no runtime results, assistant trials or benchmarks are supplied.
Access & freshness
Costs
The MIT notice grants permission to use and redistribute the resource free of charge. It does not establish the total cost of adopting it.
Assistant subscription or API charges, model usage, application hosting and optional dependency costs are not documented. No usage or operating-cost measurements are supplied, so those costs remain unknown.
Rights
The repository LICENSE identifies the MIT License and copyright 2026 Simon Andre. It permits use, copying, modification, publication, distribution, sublicensing and sale, provided the copyright and permission notice accompanies copies or substantial portions. SKILL.md also declares MIT licensing.
The licence supplies the material without warranty. The captured notice supports redistribution of the skill files with that notice preserved; it does not establish the licensing terms of external packages illustrated in the examples.
Freshness
The supplied snapshot was captured on 2026-11-16 at 00:22:17.301 UTC from revision f6c2e93a28265e980431f84d7291b245b6bcb8da. SKILL.md declares version 1.2.0, but the capture time does not establish its publication date or last substantive update.
A release history and supported framework-version matrix are absent. The debugging reference describes a lazy-controller issue with Turbo without identifying affected versions, so its applicability to a particular installation is unknown. The repository's moving main branch may differ from this snapshot.
Actions
Start with the pinned folder and preserve its references and MIT notice. Confirm how the chosen assistant loads local skills and how the application registers Stimulus controllers. Compare version-sensitive API advice with documentation for the installed dependencies.
Before reusing the patterns, resolve the default-event contradiction and correct the validation form's unconditional submission cancellation. For relevant features, add request failure and stale-response handling, keyboard behavior and accessibility state updates. Verify cleanup during Turbo navigation and assess the lazy-loading warning against the application's actual versions.
