Claude Skill

symfony-ux

Symfony 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.

LLM Mart · 0 points · 0 views 0 listing impressions 0 install-command copies
Download smnandre-symfony-ux-skills-skills_symfony-ux-78c25ed.zip · 2 KB

Install

skills CLI npx skills add https://github.com/smnandre/symfony-ux-skills/tree/main/skills/symfony-ux
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install smnandre-symfony-ux-skills@llmmart
Git git clone https://github.com/smnandre/symfony-ux-skills.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole smnandre/symfony-ux-skills collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

Symfony UX

Choose the smallest tool that fits the interaction. Start with a Symfony controller, form and Twig template. Add browser-side behavior, a partial page response or a reactive component when the task calls for it.

Check the project

These skills target Symfony UX 3.x. Before recommending an API in an existing project, check the relevant package version in composer.lock or run composer show --locked symfony/<package>. Use symfony/stimulus-bundle for Stimulus. Check the dedicated skill for the minimum version of the feature.

Use the API supported by the project. If a feature requires a newer package, state the minimum version and offer an approach compatible with the installed version where possible. Check how the project loads assets before suggesting setup commands.

If the current documentation differs from the installed package, use the installed source to verify signatures and defaults. For changes in the 3.8.1 release, see the Symfony UX 3.8.1 release notes.

Choose a package

Task Start with
Toggle, tabs, clipboard, or a browser library Stimulus
Speed up normal links and forms Turbo Drive
Replace a self-contained region after navigation or form submission Turbo Frames
Update several targets from one response Turbo Streams
Push updates to other clients Turbo Streams with Mercure
Share server-rendered markup with props and slots TwigComponent
Re-render server-owned state as users type or change inputs LiveComponent

For a specialized job, load the matching skill and read the reference that addresses the requested integration or failure mode.

Related Skills

  • stimulus: browser behavior and third-party JavaScript libraries.
  • turbo: Drive, Frames, Streams and Mercure.
  • twig-component: reusable Twig UI with props, blocks and attributes.
  • live-component: server-reactive state, forms, validation and actions.
  • ux-icons: inline SVG icons, Iconify and offline deployment.
  • ux-map: Leaflet or Google Maps, markers and viewport fitting.
  • ux-autocomplete: searchable Symfony form choices and Ajax suggestions.
  • ux-upload: background, chunked and resumable Symfony form uploads.
  • ux-translator: Symfony translations, ICU and plurals in JavaScript.
  • ux-pagination: offset, lookahead and cursor pagination.
  • ux-image: responsive Twig images backed by an image provider.
  • ux-css: token-based atomic CSS generated from Twig.
  • ux-calendar-link: add-to-calendar links, recurrence and reminders.
  • ux-router: Symfony route URLs and types in JavaScript.
  • ux-inspector: inspect Symfony UX components in the browser during development.
  • ux-chartjs: Chart.js charts built in PHP.
  • ux-notify: browser desktop notifications delivered via Mercure.
  • ux-native: Hotwire Native app integration, navigation and bridge controllers.
  • ux-toolkit: copy and customize ready-made Twig components.

Example: filters, results and a reusable product card

For a catalogue with GET filters and pagination links, use a Turbo Frame around the results. Return the same frame ID for the full page and the filtered response. Render each product with a TwigComponent and use Stimulus for local behavior on the card, such as opening a details menu.

If the results must update as users type or the choices depend on live server state, use LiveComponent for the filters and results instead. Keep the card in TwigComponent so the rendering can be reused.

References

Files (symfony-ux-skills)
  • SKILL.md 4.7 KB
    ---
    name: symfony-ux
    description: 'Symfony 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.'
    license: MIT
    metadata:
      author: Simon André
      url: https://smnandre.dev
    ---
    
    # Symfony UX
    
    Choose the smallest tool that fits the interaction. Start with a Symfony controller, form and Twig template. Add browser-side behavior, a partial page response or a reactive component when the task calls for it.
    
    ## Check the project
    
    These skills target Symfony UX 3.x. Before recommending an API in an existing project, check the relevant package version in `composer.lock` or run `composer show --locked symfony/<package>`. Use `symfony/stimulus-bundle` for Stimulus. Check the dedicated skill for the minimum version of the feature.
    
    Use the API supported by the project. If a feature requires a newer package, state the minimum version and offer an approach compatible with the installed version where possible. Check how the project loads assets before suggesting setup commands.
    
    If the current documentation differs from the installed package, use the installed source to verify signatures and defaults. For changes in the 3.8.1 release, see the [Symfony UX 3.8.1 release notes](https://github.com/symfony/ux/releases/tag/v3.8.1).
    
    ## Choose a package
    
    | Task | Start with |
    |------|------------|
    | Toggle, tabs, clipboard, or a browser library | Stimulus |
    | Speed up normal links and forms | Turbo Drive |
    | Replace a self-contained region after navigation or form submission | Turbo Frames |
    | Update several targets from one response | Turbo Streams |
    | Push updates to other clients | Turbo Streams with Mercure |
    | Share server-rendered markup with props and slots | TwigComponent |
    | Re-render server-owned state as users type or change inputs | LiveComponent |
    
    For a specialized job, load the matching skill and read the reference that addresses the requested integration or failure mode.
    
    ## Related Skills
    
    - **stimulus**: browser behavior and third-party JavaScript libraries.
    - **turbo**: Drive, Frames, Streams and Mercure.
    - **twig-component**: reusable Twig UI with props, blocks and attributes.
    - **live-component**: server-reactive state, forms, validation and actions.
    - **ux-icons**: inline SVG icons, Iconify and offline deployment.
    - **ux-map**: Leaflet or Google Maps, markers and viewport fitting.
    - **ux-autocomplete**: searchable Symfony form choices and Ajax suggestions.
    - **ux-upload**: background, chunked and resumable Symfony form uploads.
    - **ux-translator**: Symfony translations, ICU and plurals in JavaScript.
    - **ux-pagination**: offset, lookahead and cursor pagination.
    - **ux-image**: responsive Twig images backed by an image provider.
    - **ux-css**: token-based atomic CSS generated from Twig.
    - **ux-calendar-link**: add-to-calendar links, recurrence and reminders.
    - **ux-router**: Symfony route URLs and types in JavaScript.
    - **ux-inspector**: inspect Symfony UX components in the browser during development.
    - **ux-chartjs**: Chart.js charts built in PHP.
    - **ux-notify**: browser desktop notifications delivered via Mercure.
    - **ux-native**: Hotwire Native app integration, navigation and bridge controllers.
    - **ux-toolkit**: copy and customize ready-made Twig components.
    
    ## Example: filters, results and a reusable product card
    
    For a catalogue with GET filters and pagination links, use a Turbo Frame around the results. Return the same frame ID for the full page and the filtered response. Render each product with a TwigComponent and use Stimulus for local behavior on the card, such as opening a details menu.
    
    If the results must update as users type or the choices depend on live server state, use LiveComponent for the filters and results instead. Keep the card in TwigComponent so the rendering can be reused.
    
    ## References
    
    - For the full bundle list, see the [Symfony UX package catalog](https://ux.symfony.com/packages) ([Markdown](https://ux.symfony.com/packages.md)).
    - For interactive examples and their source code, see the [Symfony UX demo catalog](https://ux.symfony.com/demos) ([Markdown index](https://ux.symfony.com/demos.md)).
    - For framework-level asset pipeline setup, see the [Symfony frontend documentation](https://symfony.com/doc/current/frontend.html).
    - For the official package manuals, see the [Symfony UX documentation directory](https://ux.symfony.com/documentation.md).
    - Use [llms.txt](https://ux.symfony.com/llms.txt) to find package summaries, demo listings and Toolkit recipes in Markdown. [llms-full.txt](https://ux.symfony.com/llms-full.txt) bundles the site's Markdown pages.
    

Comments

Sign in to join the conversation.

No comments yet. Start the conversation.

Reviews (0)

No reviews yet.