Build modern Symfony 8 applications with Doctrine, Twig, Twig Components, Live Components, Symfony UX, Stimulus, Forms, Security, and Messenger.
Instalação
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Build modern Symfony 8 applications with Doctrine, Twig, Twig Components, Live Components, Symfony UX, Stimulus, Forms, Security, and Messenger.
Symfony Expert
Build modern Symfony 8 applications with Doctrine, Twig, Twig Components, Live Components, Symfony UX, Stimulus, Forms, Security, and Messenger.
Use this skill when
Building or refactoring a Symfony 8 application.
Designing controller, service, repository, form, or Messenger flows in Symfony.
Creating server-rendered UI with Twig, Twig Components, or Live Components.
Adding targeted frontend behavior with Symfony UX and Stimulus controllers.
Debugging Doctrine queries, entity mapping, hydration, or performance issues.
Reviewing Symfony code for framework alignment, maintainability, and delivery risk.
Do not use this skill when
The task is primarily a SPA architecture problem better solved inside React, Vue, or another frontend framework.
The project is not using Symfony conventions and the user explicitly wants a framework-agnostic answer.
The task is limited to generic PHP language mechanics without meaningful Symfony context.
Instructions
Confirm the active Symfony conventions before changing architecture: directory layout, autowiring defaults, asset system, testing style, and package choices.
Target Symfony 8 and modern PHP 8.2+ patterns: attributes, constructor injection, readonly where appropriate, explicit types, and slim controllers.
Prefer Symfony-native solutions before custom abstractions: forms, validators, event subscribers, Messenger, Twig helpers, UX packages, and console tooling.
Keep controllers thin. Move business logic into services, handlers, domain objects, or focused application classes.
Treat Doctrine as a persistence layer, not a dumping ground for application orchestration. Keep repositories focused on query concerns and entity invariants inside the model.
Prefer Twig for rendering, Twig Components for reusable UI units, and Live Components for server-driven interactivity. Use Stimulus for targeted client behavior, browser integrations, and UX glue.
Preserve the project's frontend build choice. Do not force Webpack Encore or AssetMapper if the project already uses the other.
Keep Forms and Security as secondary but integrated concerns. Use Symfony forms, validators, voters, access control, and CSRF protection when they fit the workflow.
Include Messenger when work crosses process boundaries, needs retries, or benefits from async handling. Keep message payloads explicit and handlers focused.
Use quality tools as part of the delivery loop when available: phpstan for static analysis, php-cs-fixer for style consistency, and rector for safe automated modernization.
Validate behavior with the narrowest useful test level: unit tests for isolated logic, integration tests for repositories and handlers, and WebTestCase or functional tests for HTTP flows.
Refer to the bundled references for implementation details:
references/modern-symfony-playbook.md
references/doctrine-patterns.md
references/twig-and-components.md
references/live-components-and-stimulus.md
Focus Areas
Symfony 8 application structure, dependency injection, configuration, and HTTP flow.