# Laravel:runner Selection

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

- **Type:** Skill
- **Install:** `agentstack add skill-jpcaparas-superpowers-laravel-runner-selection`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [jpcaparas](https://agentstack.voostack.com/s/jpcaparas)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [jpcaparas](https://github.com/jpcaparas)
- **Source:** https://github.com/jpcaparas/superpowers-laravel/tree/main/skills/runner-selection

## Install

```sh
agentstack add skill-jpcaparas-superpowers-laravel-runner-selection
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 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 & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [jpcaparas](https://github.com/jpcaparas)
- **Source:** [jpcaparas/superpowers-laravel](https://github.com/jpcaparas/superpowers-laravel)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-jpcaparas-superpowers-laravel-runner-selection
- Seller: https://agentstack.voostack.com/s/jpcaparas
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
