runner-selection
Installation
SKILL.md
Runner Selection (Symfony)
Use when
- Before the first PHP, console, composer or test command of a session.
- A command fails with a missing PHP, extension or database that the container provides.
- The project uses Docker Compose, Symfony Docker (FrankenPHP), DDEV or the host and the right prefix is unclear.
- The containers may be stopped and the commands must not silently run on the host.
Default workflow
- Run the library's runtime context CLI with
--format=markdown(or--format=envfor scripts). - Read the detected Docker type (
ddev,symfony-docker, a Compose file, ornone) and whether the containers are running. - Use the prefixed console, composer and test commands it prints, such as
docker compose exec php bin/console. - If the containers are stopped, start them with the guidance it prints (
ddev startordocker compose up -d), then run it again. - Reuse the same prefix for every command in the session.