symfony-conventions

Standardize Symfony 6.4/7.x coding practices for controllers, services, forms, and validators.

9|1|Updated Jun 16, 2026
One-click install
npx skills add https://github.com/AratKruglik/antigravity-sdlc --skill symfony-conventions-aratkruglik
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: symfony-conventions
Source: https://github.com/AratKruglik/antigravity-sdlc/tree/main/plugins/symfony-plugin/skills/symfony-conventions
Command: npx skills add https://github.com/AratKruglik/antigravity-sdlc --skill symfony-conventions-aratkruglik

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Consolidated Symfony conventions (Symfony 6.4 / 7.x): attribute routing, controllers as services, autowiring/DI, Form types, Validation constraints, Voters for authorization, the Serializer/DTO contract, and Messenger. Apply when writing or reviewing Symfony backend code.

Core Features & Use Cases

  • Apply alongside php-foundation:php-conventions for language idioms.
  • Ensure controllers/services/forms/validators/voters/serialization follow consistent patterns.
  • Use when implementing new Symfony features or reviewing existing code.

Quick Start

Follow these Symfony conventions when coding controllers, services, and forms to ensure consistent and maintainable backend code.

Frequently Asked Questions about symfony-conventions

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

FAQPage Schema
How do I standardize Symfony coding conventions across my backend projects?

Standardize Symfony coding conventions by codifying practices for controllers, services, forms, validators, voters, and serialization. This ensures consistent patterns across Symfony 6.4 and 7.x projects during writing and reviewing.

What Symfony conventions should I follow for attribute routing and dependency injection?

Symfony conventions for attribute routing and dependency injection require using controllers as services with autowiring. This approach ensures consistent, maintainable backend code across your Symfony 6.4 or 7.x projects.

How do I write Symfony controllers and services that follow consistent conventions?

Write Symfony controllers and services by applying attribute routing, dependency injection, and autowiring conventions. This standardizes your backend code structure and ensures quality across Symfony 6.4 and 7.x projects.

Can I use these Symfony conventions for forms, validators, and voters?

Yes, Symfony conventions apply to forms, validators, and voters by codifying consistent patterns. They cover Form types, Validation constraints, and Voters for authorization across Symfony 6.4 and 7.x projects.

Does this Skill work with Symfony 6.4 and 7.x projects?

Yes, these Symfony conventions explicitly target Symfony 6.4 and 7.x projects. They satisfy requirements for attribute routing, DI, validation attributes, and serializer/DTO contracts to ensure consistency and quality.

What is the best way to review Symfony code for consistent patterns?

The best way to review Symfony code is applying codified conventions for controllers, services, forms, validators, voters, and serialization. This ensures consistent patterns and quality across Symfony 6.4 and 7.x backend projects.