twig:make-component
CommunityGenerate Twig Components for Symfony
Authoratournayre
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill automates the creation of reusable Twig Components in Symfony applications, streamlining front-end development by generating both the PHP class and the Twig template.
Core Features & Use Cases
- Full Component Generation: Creates a PHP class with
#[AsTwigComponent]and a corresponding Twig template. - Customizable Props & Options: Supports defining component properties, mount methods, computed properties, and slots.
- Anonymous Components: Can generate Twig templates only for purely visual components.
- Use Case: Quickly scaffold a new
UserProfileCardcomponent, defining its props likeuserandavatarUrl, and generating the initial PHP and Twig files ready for customization.
Quick Start
Use the twig:make-component skill to generate a new Twig component named 'UserProfileCard' with 'user:App\Entity\User' and 'avatarUrl:?string' as props.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: twig:make-component Download link: https://github.com/atournayre/claude-personas/archive/main.zip#twig-make-component Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.