symfony:form

Generate Symfony FormType classes with field types and validation constraints.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/atournayre/claude-personas --skill symfony-form
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: symfony:form
Source: https://github.com/atournayre/claude-personas/tree/main/symfony/skills/form
Command: npx skills add https://github.com/atournayre/claude-personas --skill symfony-form

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of Symfony FormTypes, including field definitions, validation constraints, and advanced options, reducing boilerplate code and ensuring best practices.

Core Features & Use Cases

  • FormType Generation: Creates complete AbstractType classes for Symfony applications.
  • Field & Validation Mapping: Translates natural language field descriptions into specific Symfony form field types and validation constraints.
  • Data Class Binding: Optionally links the form to a specific entity or DTO.
  • Use Case: Quickly scaffold a new UserRegistrationFormType with fields like email, password, and confirm_password, including validation rules for email format and password strength.

Quick Start

Generate a Symfony FormType named 'ProductType' with fields 'name:TextType', 'description:TextareaType', and 'price:MoneyType'.

Frequently Asked Questions about symfony:form

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a Symfony FormType with validation constraints?

Symfony FormType generation parses natural language field descriptions to construct PHP form builder logic with explicit field types, inline validation constraints, and configurable options.

Can I bind a Symfony form to a specific entity or DTO?

Yes, you can bind a Symfony form to a specific entity or DTO by specifying the data class during generation, which links the form fields directly to the underlying data structure.

What is the best way to scaffold a Symfony form with multiple field types like TextType and MoneyType?

The best way to scaffold a Symfony form with multiple field types is to define fields using name:type syntax, such as 'price:MoneyType', to automatically generate the complete AbstractType class structure.

Does Symfony form generation support entity and date field types?

Symfony form generation supports various field types including text, entities, and dates, translating field specifications into the appropriate PHP form builder methods and validation constraints.

Why does my Symfony FormType generation produce boilerplate code?

Symfony FormType generation reduces boilerplate code by automating the creation of AbstractType classes, ensuring best practices while explicitly defining field types and validation constraints.