Symfony LiveComponent Guide
A skill that guides Claude in building reactive, server-rendered Symfony UX LiveComponents that re-render over AJAX with zero JavaScript.
What it does
Gives Claude a working playbook for Symfony UX LiveComponent: #[AsLiveComponent], #[LiveProp] (writable, URL binding, custom hydration), #[LiveAction] with #[LiveArg], data-model binding modifiers (debounce, on(blur), norender, minlength), data-loading feedback, Symfony Form integration via ComponentWithFormTrait, cross-component messaging with emit() and #[LiveListener], polling, defer/lazy rendering, and DOM preservation. It also states when to use TwigComponent or Stimulus instead, plus performance rules and the mandatory {{ attributes }} root attribute.
Who it's for
- PHP developers building apps on Symfony + Twig
- Teams that want live search, filtering, and inline validation without an SPA
- Developers new to LiveComponent who want correct patterns and known pitfalls fast
Example uses
- "Build a product search that filters as I type" → produces a component with
debounce(300)|queryand URL-bound state - "Convert my registration form to a LiveComponent with real-time validation on blur" →
ComponentWithFormTraitimplementation - "Refresh the parent list when the child saves an item" →
emit()plus#[LiveListener]wiring
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/smnandre/symfony-ux-skills/HEAD/skills/live-component/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/live-component folder from the GitHub repo smnandre/symfony-ux-skills into my ~/.claude/skills/live-component/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/smnandre/symfony-ux-skills.git && mkdir -p ~/.claude/skills && cp -r symfony-ux-skills/skills/live-component ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repository:
git clone https://github.com/smnandre/symfony-ux-skills.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r symfony-ux-skills/skills/live-component ~/.claude/skills/ - Confirm the
references/folder (api.md, patterns.md, gotchas.md) came along with SKILL.md. - Restart Claude Code and test with a prompt like "build a live search with LiveComponent".
- In your Symfony project, install the package:
composer require symfony/ux-live-component.