runner-selection — скилл для Claude Code: выбор команд для Symfony
Скилл runner-selection для Claude Code определяет, где запускать PHP-, Composer-, консольные и тестовые команды: в Docker, DDEV или на хосте. Проверяет окружение и задаёт префикс команд.
MIT ★ 234 обновлён 2026-10-05
npx skills add dev-toolings/superpowers-symfony --skill runner-selection -a claude-codeЧто делает runner-selection
Перед первой командой с PHP, Composer, Symfony Console или тестами скилл проверяет окружение через CLI библиотеки. Он определяет тип Docker-среды и состояние контейнеров, затем предлагает команды с нужным префиксом, например docker compose exec php bin/console. Для скриптов предусмотрен формат --format=env.
Если контейнеры остановлены, скилл использует подсказку для их запуска, а затем повторно проверяет окружение. В течение сессии он сохраняет один и тот же префикс для команд. Скилл рассчитан на Symfony-проекты: без Symfony-приложения CLI ничего не выводит. Не запускайте php или composer на хосте, если проект ожидает контейнеры.
Какие задачи решает
- выбрать префикс команд для Docker Compose, DDEV или хоста
- узнать, запущены ли контейнеры проекта
- запустить остановленные контейнеры по подсказке CLI
- не запускать PHP и Composer на хосте вместо контейнеров
Примеры запросов агенту
- Определи окружение Symfony и покажи команды для консоли, Composer и тестов.
- Проверь, где запускать тесты проекта, и подскажи префикс команд.
- Контейнеры остановлены. Определи тип Docker-среды и скажи, как их запустить.
Как установить runner-selection
1Через Skills CLI (Vercel)
npx skills add dev-toolings/superpowers-symfony --skill runner-selection -a claude-code2Вручную: положить файлы
~/.claude/skills/runner-selection/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/runner-selection/
1Через Skills CLI (Vercel)
npx skills add dev-toolings/superpowers-symfony --skill runner-selection -a codex2Вручную: положить файлы
.agents/skills/runner-selection/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add dev-toolings/superpowers-symfony --skill runner-selection -a cursor2Вручную: положить файлы
.cursor/skills/runner-selection/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install dev-toolings/superpowers-symfony content/skills/runner-selection2Вручную: положить файлы
.github/skills/runner-selection/SKILL.md1Через Skills CLI (Vercel)
npx skills add dev-toolings/superpowers-symfony --skill runner-selection -a gemini-cli2Командой платформы
gemini skills install https://github.com/dev-toolings/superpowers-symfony --path content/skills/runner-selectionВручную: положить файлы
.devin/skills/runner-selection/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о runner-selection
Как установить runner-selection в Claude Code?
Выполните npx skills add dev-toolings/superpowers-symfony --skill runner-selection -a claude-code. Файл скилла находится по пути ~/.claude/skills/runner-selection/SKILL.md.
Что делает runner-selection?
Определяет среду запуска Symfony-проекта и подбирает префиксы для команд консоли, Composer и тестов. Также сообщает, как запустить остановленные контейнеры.
Можно ли запускать команды на хосте, если проект использует контейнеры?
Нет. Скилл запрещает запускать хостовые php и composer, когда проект рассчитан на контейнеры.
Исходный текст
SKILL.md · MIT
--- name: runner-selection description: Select and configure the appropriate command runner based on Docker Compose standard, Symfony Docker (FrankenPHP), or host environment capabilities: [read, search] tags: [workflow] # projected by `bun run build` — do not edit by hand allowed-tools: - Read - Glob - Grep --- # 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 1. Run the library's runtime context CLI with `--format=markdown` (or `--format=env` for scripts). 2. Read the detected Docker type (`ddev`, `symfony-docker`, a Compose file, or `none`) and whether the containers are running. 3. Use the prefixed console, composer and test commands it prints, such as `docker compose exec php bin/console`. 4. If the containers are stopped, start them with the guidance it prints (`ddev start` or `docker compose up -d`), then run it again. 5. Reuse the same prefix for every command in the session. ## Guardrails - Never run the host `php` or `composer` when the project expects containers. - Do not guess the Compose service name: take it from the detected commands. - Without a Symfony application the CLI prints nothing: say so instead of inventing a runner. - Do not start or stop containers the task does not need. ## Progressive disclosure - Use this file for execution posture and risk controls. - Open references when deep implementation details are needed. ## Output contract - The detected environment (Docker type, running state, test framework). - The prefixed console, composer and test commands for this session. ## References
© dev-toolings · MIT · dev-toolings/superpowers-symfony