live-component

live-component is a skill for Claude Code from smnandre/symfony-ux-skills. It costs 213 tokens per session (3,176 once invoked), scanned A, original, MIT.

A Symfony UI component system for server-rendered interfaces that update through web requests when users interact. Symfony is a PHP web framework; server-rendered means the server prepares the updated page instead of browser JavaScript doing it alone.

In plain words
What is it for?
Use it for live search, filtering, dynamic forms, inline validation, dependent selects, auto-save, polling, and lazy or deferred rendering.
Why use it?
It supports dynamic interfaces without requiring custom JavaScript for every interaction, while keeping the update logic in PHP and Twig.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the symfony-ux-skills plugin — 7 skills shipped together

Good fit Use it for live search, filtering, dynamic forms, inline validation, dependent selects, auto-save, polling, and lazy or deferred rendering.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/smnandre/symfony-ux-skills/live-component
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add smnandre/symfony-ux-skills --skill live-component
Clone the repo
git clone --depth 1 https://github.com/smnandre/symfony-ux-skills

Made for: Claude Code.

Or install symfony-ux-skills, the plugin that ships this one along with the rest of its 7 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for live-component

README.md
[![agentmods](https://agentmods.dev/badge/skills/smnandre/symfony-ux-skills/live-component/github.svg)](https://agentmods.dev/skills/smnandre/symfony-ux-skills/live-component)
Your own site
<a href="https://agentmods.dev/skills/smnandre/symfony-ux-skills/live-component"><img src="https://agentmods.dev/badge/skills/smnandre/symfony-ux-skills/live-component/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for live-component

Your own site · 80×15
<a href="https://agentmods.dev/skills/smnandre/symfony-ux-skills/live-component"><img src="https://agentmods.dev/badge/skills/smnandre/symfony-ux-skills/live-component.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 213 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,176 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00213 $0.03176
Opus 5.5 $0.00085 $0.01270
Sonnet 5.5 $0.00043 $0.00635
Haiku 4.5 $0.00021 $0.00318

Measured 19d ago against content hash bc8c9e3564fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

live-component scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/live-component/SKILL.md · 479 lines

How it starts

The opening of the file, as written. The whole thing — 479 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LiveComponent

TwigComponents that re-render dynamically via AJAX. Build reactive UIs in PHP + Twig with zero JavaScript. Every user interaction triggers a server round-trip that re-renders the component and morphs the DOM.

When to Use LiveComponent

Use LiveComponent when a component's output depends on user interaction -- search results that update as you type, forms with real-time validation, filters that refine a list, anything where the UI needs to change based on user input and that change requires server-side data or logic.

If the component never re-renders after initial load, use TwigComponent instead (less overhead, no AJAX). If the interaction is purely client-side (toggle, animation), use Stimulus instead.

Installation

composer require symfony/ux-live-component

Quick Reference

#[AsLiveComponent]           Make component live (re-renderable via AJAX)
#[LiveProp]                  State that persists across re-renders
#[LiveProp(writable: true)]  State that the frontend can modify
#[LiveAction]                Server method callable from frontend
data-model="prop"            Two-way bind input to LiveProp
data-action="live#action"    Call LiveAction on event
data-loading="..."           Show/hide/style elements during AJAX
{{ attributes }}             REQUIRED on root element (wires the Stimulus controller)

Basic Example

// src/Twig/Components/Counter.php
namespace App\Twig\Components;

use Symfony\UX\LiveComponent\Attribute\AsLiveComponent;
use Symfony\UX\LiveComponent\Attribute\LiveProp;
use Symfony\UX\LiveComponent\Attribute\LiveAction;
use Symfony\UX\LiveComponent\DefaultActionTrait;

#[AsLiveComponent]
final class Counter
{
    use DefaultActionTrait;

    #[LiveProp]
    public int $count = 0;

    #[LiveAction]
    public function increment(): void
    {
        $this->count++;
    }

    #[LiveAction]
    public function decrement(): void
    {
        $this->count--;
    }
}
{# templates/components/Counter.html.twig #}
<div {{ attributes }}>
    <button data-action="live#action" data-live-action-param="decrement">-</button>
    <span>{{ count }}</span>
    <button data-action="live#action" data-live-action-param="increment">+</button>
</div>

Read the full file on GitHub · 479 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 19d ago Changed bc8c9e3564fa
  2. 3mo ago First seen · 479 lines · 213 tokens per session scan A 83ae847ffc03

Subscribe to this mod's changes

live-component is a skill published in the GitHub repository smnandre/symfony-ux-skills (190 stars, last pushed today), licensed MIT. It adds 213 tokens to every session and 3,176 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

live-component compared with skills from other repositories

live-component next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
live-componentsmnandre/symfony-ux-skillsSkill190todayMITA213Claude Code
onboardingknitli/toolshedSkill14d agoMITA0Claude Code
setupknitli/toolshedSkill14d agoMITA0Claude Code
.codexknitli/toolshedSkill14d agoMITA0Claude Code, Codex
hmi-design-fulltimhok/hmi-designSkill358mo agoMITA107Claude Code, Codex
yugabytedb-k8s-submarinersrinivasa-vasu/agent-skillsSkill318d agononeA241Claude Code, Codex
yugabytedb-sizingsrinivasa-vasu/agent-skillsSkill318d agononeA161Claude Code, Codex