Runner selection

From jpcaparas/superpowers-laravel · View interactive version

Runner selection is an AI agent skill from the GitHub repository jpcaparas/superpowers-laravel. Choose Sail automatically when available, fall back cleanly to host PHP/Composer/Node; paired command map for both environments

How to use this skill

Skill file

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.

Safety Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.