laravel:runner-selection

Runner Selection for Laravel Commands

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "laravel:runner-selection" with this command: npx skills add jpcaparas/superpowers-laravel/jpcaparas-superpowers-laravel-laravel-runner-selection

Runner Selection for Laravel Commands

Use Sail when present for environment consistency. Fall back to host tools when Sail is unavailable. Detect once, then stick to the choice for the session.

Detecting Sail

Best-effort alias; safe in any repo

alias sail='sh $([ -f sail ] && echo sail || echo vendor/bin/sail)'

Is Sail usable?

[ -f ./sail ] || [ -x ./vendor/bin/sail ] && echo "Sail available" || echo "Sail not found"

If Sail is unavailable, use host php , composer , and your local Node (pnpm/npm/yarn). Keep versions aligned with your project.

Command Pairs

Use the left command if Sail is available; otherwise use the right.

  • sail artisan about | php artisan about

  • sail artisan test | php artisan test

  • sail artisan migrate | php artisan migrate

  • sail composer install | composer install

  • sail composer require vendor/package | composer require vendor/package

  • sail pnpm install | pnpm install

  • sail pnpm run dev | pnpm run dev

  • sail mysql | mysql (with matching DSN/env)

  • sail redis | redis-cli

Safety Notes

  • Never mix hosts: don’t install PHP deps with Composer on host and then run them inside Sail (or vice versa). Pick one runtime per session.

  • Prefer non-interactive commands in automations/agents; provide flags instead of prompts.

  • Treat DB-destructive commands (migrate:fresh , down -v ) with care.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

laravel:routes-best-practices

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel:blade-components-and-layouts

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel:queues-and-horizon

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel:quality-checks

No summary provided by upstream source.

Repository SourceNeeds Review