{"enrichment":{"faq":[{"a":"plugin-add-stimulus-controller scaffolds a new Stimulus JavaScript controller file and automatically registers it in your Sylius plugin's package.json and controllers.json. The skill creates the controller with proper naming conventions, then syncs declarations across both configuration files so your controller is discoverable and loaded by Sylius's asset pipeline.","q":"How do I add a Stimulus controller to a Sylius plugin?"},{"a":"plugin-add-stimulus-controller supports both lazy and eager fetch modes during controller setup. You configure the fetch strategy when scaffolding\u2014lazy mode defers controller loading until needed, while eager mode loads immediately. The skill applies your choice to the controllers.json entry, ensuring Stimulus respects your performance preference in the Sylius admin or shop context.","q":"How to create Stimulus JS controller Sylius with lazy or eager fetch?"},{"a":"plugin-add-stimulus-controller automatically registers your controller in package.json under the controllers section with the correct namespace and path. It ensures the entry points to your generated JS file and includes metadata for Sylius's build system. The skill also updates controllers.json to maintain consistency across your plugin's controller declarations.","q":"What is the Stimulus controller package.json Sylius registration process?"},{"a":"plugin-add-stimulus-controller helps troubleshoot by ensuring your controller is properly scaffolded and registered in both package.json and controllers.json. Common issues include missing data-controller attributes in Twig templates, incorrect fetch mode settings, or stale builds. Verify your Twig template includes data-controller=\"namespace--controller-name\" and rebuild assets after running this skill.","q":"Why is my Stimulus controller not working in Sylius?"},{"a":"plugin-add-stimulus-controller creates controllers for either admin or shop contexts based on your configuration. It places the controller file in the appropriate directory structure and registers it with the correct namespace in both package.json and controllers.json, ensuring Sylius loads it only in the intended context.","q":"How does plugin-add-stimulus-controller handle admin vs shop contexts?"},{"a":"plugin-add-stimulus-controller generates the controller file and configuration, but you must add data-controller, data-action, and data-target attributes to your Twig templates. Use the format data-controller=\"namespace--controller-name\" on the element you want to control, then reference your controller's actions and targets in the template to activate Stimulus behavior.","q":"What Twig template integration does Stimulus controller setup require?"}],"shadow_tags":["frontend-framework","asset-bundling","event-driven-ui","plugin-architecture","stimulus-bridge","controller-registration","npm-package-integration","twig-templating","webpack-build-process","interactive-components"],"summary_rewrite":"This skill scaffolds a Stimulus controller for Sylius plugins, creating the JS file and syncing declarations across package.json and controllers.json. It handles both admin and shop contexts with configurable lazy or eager loading modes."},"files":[{"bytes":4144,"path":"plugins/sylius-plugin/skills/plugin-add-stimulus-controller/SKILL.md","sha256":"8fb5cd1f58bb85a5e39fceda3a480414092d50f6ec572f7cb6aa79f645c7d7cd","url":"https://skillfed.io/files/Guiziweb/guiziweb-plugins/plugin-add-stimulus-controller/63a2a59e/SKILL.md"}],"id":"Guiziweb/guiziweb-plugins/plugin-add-stimulus-controller","links":{"html":"https://skillfed.io/Guiziweb/guiziweb-plugins/plugin-add-stimulus-controller","md":"https://skillfed.io/Guiziweb/guiziweb-plugins/plugin-add-stimulus-controller.md","repo":"https://github.com/Guiziweb/guiziweb-plugins"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":0,"language":"TypeScript","last_updated":"2026-06-22","license":"MIT","name":"plugin-add-stimulus-controller","publisher":"Guiziweb","stars":4},"relations":{"similar":[{"id":"smnandre/symfony-ux-skills/stimulus"},{"id":"majesticlabs-dev/majestic-marketplace/stimulus-coder"},{"id":"ratacat/claude-skills/julik-frontend-races-reviewer"},{"id":"majesticlabs-dev/majestic-marketplace/dialog-patterns"},{"id":"pproenca/dot-skills/rails-hotwire"},{"id":"smnandre/symfony-ux-skills/live-component"},{"id":"ratacat/claude-skills/dhh-rails-style"},{"id":"davekilleen/Dex/dhh-rails-style"},{"id":"irahardianto/awesome-agv/rails-idioms"},{"id":"Jeffallan/claude-skills/rails-expert"}]},"slug":{"owner":"Guiziweb","repo":"guiziweb-plugins","skill":"plugin-add-stimulus-controller"},"version":"63a2a59e"}
