Keep a Symfony application alive across versions: the release lifecycle and what "no BC break in a minor" really guarantees, triaging deprecations between your own code and your dependencies, replaying Flex recipes that drifted since the project was created (composer recipes), Rector for mechanical rewrites, and the ordered procedure for a major-version jump. Use this skill whenever someone asks to upgrade to Symfony 8 or 7, bump the framework, update dependencies, update Doctrine or PHPUnit, or says "our Symfony is old", "we are still on 6.4", "what are these deprecation warnings", "can we update Doctrine", "this bundle is not compatible", "composer refuses to update", "is it safe to upgrade", "how long is this version supported", "how much work is catching up". Also use it when a project has been left untouched for a year, when someone wants to run Rector, when `composer recipes` reports something outdated, and when a dependency turns out to be abandoned or has no version compatible with the target.
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.
Read when SKILL.md points to them.
Tier: on demand — read when a deprecation, a recipe update or a new major is on the table. The one standing rule is the last-minor-first order.
The recurring cost nobody budgets, and it is invisible until you pay it.
A team that ignores deprecations for two years feels nothing. Then 7.4 → 8.0 becomes a three-month project instead of an afternoon, because Symfony's contract is that everything you must fix is announced on the last minor of the current major. Skip the announcements and you meet them all at once, as fatal errors, with no runnable application in between to tell you which change broke what.
php bin/console about
Version v8.1.5
Long-Term Support No
End of maintenance 01/2027 (in +154 days)
End of life 01/2027 (in +154 days)
Those dates are compiled into Symfony\Component\HttpKernel\Kernel as
END_OF_MAINTENANCE and END_OF_LIFE, so they are facts about the installed code, not
a claim this skill is making. Read them rather than trusting any table, here included.
On a standard minor the two dates are identical — bug fixes and security fixes stop on the same day. Only an LTS separates them, and by years.
Then look at what pins you:
php -r '$j = json_decode(file_get_contents("composer.json"), true); echo $j["extra"]["symfony"]["require"], PHP_EOL;'
extra.symfony.require is a Flex setting, and it is the reason a composer update on a
neglected project reports "nothing to update" while three minors have shipped. Flex
installs a PackageFilter that hides every symfony/* release outside that constraint
from the resolver. The environment variable SYMFONY_REQUIRE overrides it, which is how
you try the next minor without touching composer.json (see references/major-upgrade.md).
The practical consequence, and the reason this skill exists: you never jump from x.2 to (x+1).0. You go to x.4 first, get green there, clear the deprecations there — on an application that still boots and whose tests still run — and only then bump the major. Each of those steps is reversible on its own. A single leap is not.
"No BC break in a minor" does not mean "nothing changes". A minor can change a recipe,
change a default in a configuration file it no longer owns, or deprecate the option your
services.yaml depends on. It means your code keeps working, not that your project is
identical to a freshly generated one. That gap is what composer recipes measures.
A deprecation you can fix and a deprecation you can only wait for look identical in the
output. Sorting them is the whole job, and PHPUnit 13 does it for you — it classifies
every deprecation by who called whom, using <source> to decide what counts as your
code:
| Class | Meaning | Yours? |
|---|---|---|
| self | Triggered inside a file under <source> (or a test) | Yes — delete the deprecated code |
| direct | Your code called a third-party API that then deprecated itself | Yes — fix the call site |
| indirect | Third-party code called third-party code | No — upgrade the dependency, or wait |
The recipe's phpunit.dist.xml ships ignoreIndirectDeprecations="true", so the suite
already fails on the first two categories and stays silent on the third. That is the
right default: it is a gate on work you can actually do. Measured on PHPUnit 13.3.2,
one test each:
| Deprecation | Exit code |
|---|---|
trigger_deprecation() from a class in src/ (self) | 1 |
| test calls a deprecated vendor method (direct) | 1 |
| vendor calls vendor (indirect) | 0, not even displayed |
same, with ignoreIndirectDeprecations="false" | 1 |
Two traps in that output. The summary line still reads OK, but there were issues!
while the exit code is 1 — the human reading the terminal and the CI job disagree, and
CI is right. And ignoreSuppressionOfDeprecations="true" is not optional: Symfony's
trigger_deprecation() is @trigger_error(...), silenced, so without that attribute
PHPUnit ignores every Symfony deprecation there is.
Flipping ignoreIndirectDeprecations to false for one run is the upgrade-planning
move, not the daily setting: it shows you which of your dependencies are themselves not
ready for the next major.
Everything else — the three places deprecations surface, static detection, baselines,
and writing your own: references/deprecations.md.
When the project was created, Flex ran a recipe for each package and wrote
security.yaml, phpunit.dist.xml, Dockerfile, .env. Those recipes have been
edited upstream ever since. Your files have not.
composer recipes # everything, with a marker on what is outdated
composer recipes -o # only the outdated ones
-o prints nothing at all when the project is current, which is the answer you want and
is easy to misread as a broken command. When something has moved:
* symfony/framework-bundle (update available)
composer recipes:update symfony/framework-bundle
That command computes the original recipe, the new recipe and your current files, and
applies a three-way patch — staged in git, so git diff --cached is the review. It
refuses to run on a dirty index, which is the point: the diff must be yours to inspect.
Mechanics, conflicts, the --force -v fallback for recipes too old to fetch, and which
files are worth the churn: references/recipes.md.
This matters most on a major upgrade, because the new major's recipe is often where the new configuration lives. Reading that diff is faster than reading the upgrade notes.
Rector is in the jakzal/phpqa image already (2.6.2 in
jakzal/phpqa:1.125.1-php8.4-alpine), with the Symfony, Doctrine and PHPUnit rule sets
bundled. Nothing to add to composer.json — same reasoning as every other tool in
symfony-yoandev-quality.
docker run --rm -u $(id -u):$(id -g) -v "$PWD":/project -w /project \
jakzal/phpqa:1.125.1-php8.4-alpine rector process --dry-run --no-progress-bar
--dry-run exits 2 when it would change something, which makes it usable as a check
as well as a tool.
The version-numbered sets are gone. SymfonySetList in rector-symfony now holds only
COMPOSER_BASED, SYMFONY_CODE_QUALITY, SYMFONY_CONSTRUCTOR_INJECTION and
CONFIGS — every blog post naming SymfonySetList::SYMFONY_64 is describing a class
constant that no longer exists. The replacement binds each rule to the version of the
package you actually have installed:
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withPaths([__DIR__.'/src', __DIR__.'/tests'])
->withComposerBased(symfony: true, doctrine: true, phpunit: true);
Rector is excellent at mechanical rewrites across a whole codebase — annotations to attributes, renamed classes, changed signatures — and useless at anything needing judgement. It will happily turn a docblock into an attribute; it will not tell you that the service should have been a Voter. So: one concern per run, review the diff, commit separately. A single commit mixing three rule sets is unreviewable, and the day one of them was wrong you cannot revert it alone.
Beware the convenience flags. Adding ->withImportNames() to the config above took a
one-file diff to four files, rewriting fully-qualified names in tests that had no upgrade
change in them at all. Useful; not something to smuggle into an upgrade commit.
composer why-not symfony/framework-bundle 9.0 names every package standing in the way.composer audit clean, recipes updated.extra.symfony.require, and the symfony/* lines in
require / require-dev that Flex wrote as 8.1.*.composer update "symfony/*" --with-all-dependencies, then read what
Composer refuses.Detail for every step, including what to do when step 1 says no:
references/major-upgrade.md.
composer audit --abandoned=report names packages whose authors have said they are done.
An abandoned package is not an emergency — it is a countdown that starts at the next
major. The options, worst to best: pin the major and stop upgrading (you have moved the
problem, not solved it); fork it (you now maintain it); replace it with the framework's
own mechanism, which is where a surprising number of them end up, since Symfony absorbed
a decade of bundles.
Say which one you are choosing and why. "We will deal with it later" is only honest when someone writes down the date.
| Question | Skill |
|---|---|
CI configuration, PHPStan, phpunit.dist.xml contents | symfony-yoandev-quality |
| The deploy sequence once the upgrade is merged | symfony-yoandev-deployment |
| Writing or fixing a migration | symfony-yoandev-doctrine |
| Whether a test is worth keeping | symfony-yoandev-testing |
| File | When to read it |
|---|---|
references/deprecations.md | A deprecation you cannot place, or planning what to clear before a major |
references/recipes.md | composer recipes reports something outdated, or recipes:update conflicts |
references/major-upgrade.md | Doing the jump: constraints, blocked dependencies, Rector runbook, rollback |
What SKILL.md sets; muted values are Claude Code's defaults
16 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./symfony-yoandev-skills:symfony-yoandev-upgradefrom Symfony Skills
npx claudepluginhub yoanbernabeu/symfony-yoandev-skills --plugin symfony-yoandev-skillsOther plugins' skills for the same job