Entry point for writing code in a Symfony project: detects the project's versions and conventions, states the five rules that apply to everything, and routes to the specialised skill for the task at hand. Load this FIRST whenever a request touches a Symfony codebase and the right specialised skill is not obvious — a feature described in plain language ("let people rate a book", "make a CRUD", "add this to the admin"), a vague instruction ("refactor this", "clean this up", "fix this bug", "finish this"), a task spanning several areas at once, or the very first change on an unfamiliar project. Also load it before starting anything if you are unsure which of symfony-yoandev-architecture, symfony-yoandev-http, symfony-yoandev-doctrine, symfony-yoandev-testing, symfony-yoandev-security, symfony-yoandev-frontend, symfony-yoandev-async, symfony-yoandev-console, symfony-yoandev-performance, symfony-yoandev-quality, symfony-yoandev-local-dev, symfony-yoandev-deployment, symfony-yoandev-observability, symfony-yoandev-storage or symfony-yoandev-upgrade applies. When the task is plainly inside one of those, load that one directly instead.
Trending skills
7-day visitors to each skill page
Ships in Symfony Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Short on purpose. Detect the project, apply the five rules, load the skill that matches the work.
Never assume versions or conventions. Once per session:
php -v | head -1
php -r '$l=json_decode(file_get_contents("composer.lock"),true);
foreach(array_merge($l["packages"],$l["packages-dev"]??[]) as $p)
if(preg_match("#^(symfony/(framework-bundle|serializer|form|security-bundle|object-mapper|messenger|scheduler|lock|rate-limiter|asset-mapper|ux-live-component)|doctrine/orm|doctrine/doctrine-fixtures-bundle|phpunit/phpunit|twig/twig)$#",$p["name"]))
echo str_pad($p["name"],40)." ".$p["version"]."\n";'
ls src/ config/packages/
What it tells you:
src/ → the conventions to follow. If the project already
groups code by domain, or puts DTOs somewhere else, follow it. Boundaries between
layers are not negotiable; folder names are.vendor/ outranks everything written in these skills. Reading the source of an
attribute takes a second and is never wrong; memory and blog posts frequently are.
They apply everywhere, whatever the task.
1. Write the test first, and watch it fail. A test that was never red can be green for the wrong reason — inverted assertion, permissive mock, never executed at all. Where red-first is impossible, break the code and confirm the test notices.
2. A controller translates, it does not decide. HTTP in, service call, response out. No business rule, no persistence.
3. No DQL, QueryBuilder or SQL outside a repository. Queries are named after the caller's intent, not the mechanism. A service that builds a query cannot be tested without a database.
4. DTOs at both edges. Input DTOs carry the validation; output DTOs carry the contract. An entity never reaches a template or a JSON response.
5. Every business rule lives in a service. Entities hold data and mapping; they hold no rules. That is the direct consequence of using maker-format entities, and it is deliberate.
If a change seems too small to deserve a test, it is still covered by rule 1. If a rule seems wrong for the case at hand, say so and explain why rather than quietly bending it.
The five rules above are the whole core. They remove decisions and add no artefact: a project that keeps only them still follows this standard. Everything else in the suite is on demand — it adds a file, a tool or a ritual per feature, and it is switched on by a real need, never pre-emptively. Each skill says which tier it is in, right under its title.
| Tier | What is in it | Switched on by |
|---|---|---|
| Core | The five rules; the layer contract; Input and Output DTOs; dama/doctrine-test-bundle; PHPStan and php-cs-fixer; the local dev loop | Nothing — it applies to every Symfony project this suite touches |
| On demand | Query-count tests; deptrac; Messenger, Scheduler and prioritised queues; application and HTTP caches; correlation ids, health checks, alert sinks; signed URLs and object storage; Live Components and Mercure | A measured slowness, a second worker, a real queue, a real deploy target, a real upload, a real second developer |
The test for any rule you are about to apply or add: does it remove a decision, or does it add an artefact? The first kind is free and there can be a hundred of them. The second kind is paid on every feature, and it needs the trigger in the right-hand column before it is worth paying.
The five rules are read strictly on the boundaries and generously on the ceremony. None of the following bends a rule; each is the rule applied with judgement:
#[MapQueryString]
is for a query string that must be validated, not for show(int $id).SELECT NEW projection that already matches the contract is the Output DTO.
The Read layer exists for the case where the query's shape and the API's shape
differ; when they do not, there is one class, in src/Dto/Output/.ShelfReader::shelf() and
ShelfReader::book() in one class is the intent; one class per query is not.| The work is about | Load |
|---|---|
| Where a class goes, layers, DTOs, services, DI, patterns, why a rule exists | symfony-yoandev-architecture |
| Writing or fixing tests, fixtures, mocks, the TDD loop | symfony-yoandev-testing |
| Controllers, routes, request payloads, JSON responses, forms, Twig pages | symfony-yoandev-http |
| Entities, repositories, queries, relations, migrations | symfony-yoandev-doctrine |
| Login, permissions, voters, CSRF, tokens, hardening | symfony-yoandev-security |
| JavaScript, CSS, Stimulus, Turbo, components, AssetMapper | symfony-yoandev-frontend |
| Background work, emails, queues, scheduled jobs | symfony-yoandev-async |
| Console commands, imports, cleanup scripts | symfony-yoandev-console |
| Something is slow, too many queries, caching | symfony-yoandev-performance |
| PHPStan, deptrac, code style, CI pipeline | symfony-yoandev-quality |
| Running the project locally, Docker services, the dev server | symfony-yoandev-local-dev |
| Shipping to production, migrations at deploy, server settings | symfony-yoandev-deployment |
| Logs, alerting, health checks, knowing what production is doing | symfony-yoandev-observability |
| Uploaded files: where they go, how they are served, orphans | symfony-yoandev-storage |
| Deprecations, updating dependencies, moving to a new Symfony major | symfony-yoandev-upgrade |
Most real tasks touch two or three. A feature request typically means
symfony-yoandev-architecture to decide where the pieces go, symfony-yoandev-testing to start, then
the one matching the surface being built. Load them as you reach them rather than all at
once.
vendor/bin/phpunit result reported as it actually is, failures included.The last two matter as much as the code. A change that works but hides a decision is a change someone will have to reverse-engineer later.
What SKILL.md sets; muted values are Claude Code's defaults
/symfony-yoandev-skills:symfony-yoandev-standardsfrom Symfony Skills
npx claudepluginhub yoanbernabeu/symfony-yoandev-skills --plugin symfony-yoandev-skills16 skills in this plugin
/symfony-yoandev-architectureDecide where code goes in a Symfony project and wire it correctly: the Controller / Service / Repository / DTO / Entity contract, the three DTO namespaces (Input, Read, Output), service design and who calls flush(), business exceptions carrying their own HTTP status, direct calls instead of domain events, configuration split between env vars, app. parameters and class constants, and the dependency-injection attributes (#[Autowire], #[AutowireIterator], #[AutowireLocator], #[AsDecorator], #[AsTaggedItem], #[Target], #[When], #[Lazy]). Use this skill whenever someone asks where a piece of logic belongs, wants a new service or DTO, says a controller has grown too big, wants to extract or move a class that has outgrown its place, asks how to make something configurable or add a setting or an env var, asks why a service is not autowired or how to inject one of several implementations, wants a factory, strategy, decorator or object mapping, or asks "is this the right place for this?", "how should I structure this feature?", "where does the rating logic go?", "extract this", "why does my exception return a 500?". Also use it for the list of alternatives this standard deliberately rejected and why. For a feature described in plain language, or a bare "refactor this" with no target, `symfony-yoandev-standards` routes first./symfony-yoandev-asyncMove work out of the request with Messenger, send email asynchronously with Mailer and TemplatedEmail, and run recurring jobs with Scheduler — Doctrine transport, retry and failure policy, prioritised queues, idempotent handlers, and workers under supervisor or systemd. Use this skill whenever someone asks to send an email, do something in the background, queue a job, run something every night or every five minutes, replace a crontab, speed up a slow import or a slow signup, process a big CSV, notify someone after an action, set up Messenger or a message handler or a worker, configure retries, deal with a message stuck in the failure queue, or says "my emails never arrive", "the import times out", "this page is slow because it sends mail", or "how do I schedule this"./symfony-yoandev-consoleWrite Symfony console commands as thin translation layers over a service: one class per command family with method-level #[AsCommand] on Symfony 8.1, invokable commands with #[Argument] and #[Option] before that, SymfonyStyle output, dry run by default with --force on anything destructive, mandatory locking on long or scheduled commands, clean shutdown on SIGTERM, and a smoke test with runCommand or CommandTester. Use this skill whenever someone asks to add a command, write a script, make something runnable from the terminal, build an import or an export or a batch job, clean up or purge or delete old data, backfill a column, send a digest, "run this once", "I need a CLI for this", "make:command", says a command times out or eats all the memory or deleted more than it should, or asks how to test a command. For scheduling that command to run every night, and for Messenger workers, use symfony-yoandev-async instead./symfony-yoandev-deploymentShip a Symfony application to production as a Docker image running FrankenPHP: the build and release sequence and what each step is for, migrations run automatically at deploy, production php.ini and OPcache preloading, environment variables and secrets on the server, Messenger workers under systemd or supervisor, post-deployment checks and rollback. Use this skill whenever someone says deploy this, put it in production, ship it, set up the server, prepare a Dockerfile or a production image, write a deploy script, run migrations on the server, restart the workers, configure OPcache or preloading, set environment variables in production, roll back a release — and equally when they describe a symptom: it works locally but not on the server, the site broke after deploying, my CSS is missing in production, production is slow, the workers are running old code, I get a 500 with no error message, the new code is not being picked up. Also use it before a first deployment, when nobody knows how the app is deployed./symfony-yoandev-doctrineThe persistence layer of a Symfony project: entities in maker format with attribute mapping, auto-increment integer ids, \DateTimeImmutable and native enums; relations and the collection traps they open; repositories as the single place where DQL, QueryBuilder and raw SQL are allowed; SELECT NEW projections into Read DTOs; who calls flush(); and migrations that are generated then read and corrected by hand. Use this skill whenever someone asks to create or change an entity, add a field or a column, store or persist something, link two things together, add a relation or a foreign key, write or fix a repository method, write a query, sort or filter a list from the database, count rows, make a query return less data, create or run a migration, rename a column without losing data, or asks "why is my query wrong", "why is this null", "why does saving not work", "the schema is out of sync", "I lost data after deploying"./symfony-yoandev-frontendBuild and debug the front end of a Symfony application with AssetMapper, Twig, Stimulus, Turbo and Symfony UX — no bundler, no Node build step. Use this skill whenever someone asks to make a page interactive, add a filter or a live search, add an autocomplete or a dropdown, add a JavaScript library, style a page or set up Tailwind, add an icon, build a reusable Twig component or a Live Component, add Turbo Drive, Frames or Streams, write a Stimulus controller, organise templates or translation keys, or set a form theme. Also use it for the failures: "my JavaScript does not run", "my JS stopped working after clicking a link", "the CSS did not update", "the page is slow to load", "the assets 404 in production", "the images are served by PHP", "importmap:audit is failing" — and whenever the question is *where* a piece of behaviour belongs, between a Stimulus controller, a Live Component and a Twig Component.Other plugins' skills for the same job