/symfony-ux-skills:ux-inspectorfrom symfony-ux-skills
Inspects Stimulus controllers, LiveComponents, and Turbo frames via a dev-only in-page panel. Helps debug Symfony UX components, configure the inspector firewall, and trace component activity.
Ships in symfony-ux-skills. 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.
A development panel injected into your pages. It lists the Stimulus controllers, LiveComponents and Turbo frames on the page, shows their state (values, targets, props, models, frame sources...), and traces their activity (actions, renders, fetches, stream actions).
Since Symfony UX 3.6+. The package is experimental: its API may still change. Install it in the dev environment.
composer require --dev symfony/ux-inspector
Until a Flex recipe exists, register the bundle and its route yourself:
// config/bundles.php
return [
// ...
Symfony\UX\Inspector\UXInspectorBundle::class => ['dev' => true],
];
# config/routes/ux_inspector.yaml
when@dev:
ux_inspector:
resource: '@UXInspectorBundle/config/routes.php'
The script is served at /_ux/inspector.js and injected automatically.
When an access_control rule matches /_ux/inspector.js, the script does not load: logged-in users get "Session was used while the request was declared stateless", anonymous users are denied. Add it to the dev firewall:
# config/packages/security.yaml
security:
firewalls:
dev:
pattern: ^/(_profiler|_wdt|assets|build)/|^/_ux/inspector\.js$
security: false
By default, Stimulus inspection reads HTML attributes only. Expose the application to also detect inactive controllers, show default values, and check missing targets, classes, outlets and action methods. After startStimulusApp() in your Stimulus bootstrap file:
// assets/stimulus_bootstrap.js
import { startStimulusApp } from '@symfony/stimulus-bundle';
const app = startStimulusApp();
if (app.debug) {
window.Stimulus = app;
}
With Encore, keep your existing startStimulusApp(...) call and add the same lines. LiveComponent activity shows up either way.
u then x outside an editable field.Shift to keep inspecting). Follow element and component links; breadcrumbs or Escape go back.| Framework | What it shows |
|---|---|
| Stimulus | Values and classes, targets and actions, outlets and parent/child controllers, controller-prefixed custom events |
| LiveComponent | LiveProps and parent props, model bindings and modifiers, actions and listeners, loading directives, polling, request and render activity, errors |
| Turbo | Frames (id, src, loading, target, state, nesting), permanent elements, disabled scopes, stream sources, fetches with status and duration, frame renders, missing frames, morphs, stream actions |
Stimulus connect() / disconnect() are not DOM events, so they do not appear in the activity log.
# config/packages/ux_inspector.yaml (defaults)
when@dev:
ux_inspector:
enabled: true # only effective when kernel.debug is true
pull_tab: true # false hides the tab; the "ux" shortcut still works
exclude_paths: ['/_profiler', '/_wdt', '/_error', '/_fragment']
ignore_selectors: [] # e.g. ['[data-no-inspect]']
exclude_paths matches path segments (/admin matches /admin/users, not /administrator) and replaces the default list, so keep the defaults when adding your own.
<body> and </body> tags. Check kernel.debug, exclude_paths, and the firewall rule above.window.Stimulus = app..sf-toolbar is excluded automatically from detection and inspection.symfony/ux-inspector on Packagist.data-model, find a missing target or see which frame failed to load.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub smnandre/symfony-ux-skills --plugin symfony-ux-skills20 skills in this plugin
/live-componentSymfony UX LiveComponent: live search, live filters, dependent selects and form validation as users type. Use for reactive PHP and Twig components, #[AsLiveComponent], LiveProp, LiveAction, data-model, loading states, emit/listen, lazy rendering and LiveResponse downloads./stimulusSymfony UX Stimulus: JavaScript behavior for dropdowns, tabs, modals, clipboard buttons and third-party widgets. Use for StimulusBundle, data-controller, data-action, targets, values, outlets, lazy controllers and Twig stimulus_* helpers./symfony-uxSymfony UX: choose and combine packages for a Symfony frontend. Use when deciding between Stimulus, Turbo, TwigComponent and LiveComponent, or fitting several Symfony UX packages into the same feature. Prefer the dedicated skill for a task that fits one package.Other plugins' skills for the same job