skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
dev-toolings/superpowers-symfony110 installs

twig-components

Build reusable UI components with Symfony UX Twig Components (props, slots, anonymous components, CVA) for clean templates

How do I install this agent skill?

npx skills add https://github.com/dev-toolings/superpowers-symfony --skill twig-components
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    This skill provides architectural guidance and code references for implementing Symfony UX Twig Components. It utilizes official Symfony libraries and standard development tools like Composer and PHPStan. Security analysis confirms that the skill contains no malicious patterns, obfuscation, or risky behaviors, and its operations are restricted to safe read and search capabilities.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

What does this agent skill do?

Twig Components (Symfony)

Use when

  • Extracting a repeated piece of Twig into a reusable component.
  • Building a component with props, slots, computed logic, or CVA variants.
  • Making a component reactive with Live Components (search, counters, forms).

Default workflow

  1. Choose the kind: anonymous (template only), class-based #[AsTwigComponent], or #[AsLiveComponent].
  2. Declare props as public mutable properties; use mount() for derived values.
  3. Expose content injection through blocks (slots) rather than more props.
  4. For Live Components, mark writable state with #[LiveProp(writable: true)] and debounce user input.
  5. Test the PHP class with InteractsWithTwigComponents.

Guardrails

  • Never make public props readonly: they are assigned after instantiation.
  • Inject services as private readonly, never as public props.
  • Only mark a LiveProp writable when the browser must change it.
  • Keep one responsibility per component.

Progressive disclosure

  • Use this file for execution posture and risk controls.
  • Open references when deep implementation details are needed.

Output contract

  • Component classes and templates, with their props and slots.
  • Live state and actions, when the component is reactive.
  • A component test for mount and render.

References

  • reference.md

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/dev-toolings/superpowers-symfony/twig-components">View twig-components on skillZs</a>