Skip to content
Back to skills

Runner Selection

ASecurity

Choose Sail automatically when available, fall back cleanly to host PHP/Composer/Node; paired command map for both environments

  • 147 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 6, 2026
toolsphpsqlnode

Works with

  • cli

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned June 6, 2026

npx -y skills add jpcaparas/superpowers-laravel --skill runner-selection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Runner Selection?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Runner Selection
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jpcaparas-runner-selection/badge)](https://www.skillsdirectory.com/skills/jpcaparas-runner-selection)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: laravel:runner-selection
description: Choose Sail automatically when available, fall back cleanly to host PHP/Composer/Node; paired command map for both environments
---

# 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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.