laravel:runner-selection

Detect Sail presence and route Laravel commands to Sail or host tools.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/Patkik/Multi-tenant-SaaS-Catering-V2 --skill laravel-runner-selection-patkik
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel:runner-selection
Source: https://github.com/Patkik/Multi-tenant-SaaS-Catering-V2/tree/main/.agents/skills/runner-selection
Command: npx skills add https://github.com/Patkik/Multi-tenant-SaaS-Catering-V2 --skill laravel-runner-selection-patkik

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Choose Sail automatically when available for environment consistency in Laravel commands; fall back to host PHP/Composer/Node when Sail is unavailable, ensuring stable execution.

Core Features & Use Cases

  • Detect Sail presence and route common Laravel commands to Sail when available; otherwise execute via host tools with version alignment.
  • Maintain a session-scoped runtime decision to avoid repeated checks within a session.
  • Use case: In a project with Sail, run artisan, composer, and database commands through Sail; in Sail-absent projects, run through host tools with matched versions.

Quick Start

Run a Laravel command and Sail will be used automatically when available, otherwise the host PHP/Composer/Node tools will be used.

Frequently Asked Questions about laravel:runner-selection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically run Laravel artisan commands through Sail when available?

Choosing between Laravel Sail and host tools is automated by detecting Sail presence and mapping command pairs for artisan, composer, and database operations. It maintains a session-scoped choice to avoid repeated environment checks during development.

How do I run composer commands in a Laravel project without Sail?

To run composer commands in a Laravel project without Sail, the tool executes them directly via host tools with matched version alignment. It automatically detects the absence of Sail and configures the host environment for stable execution.

Does Laravel Sail need to be installed to use automated environment selection?

Session-scoped runtime detection prevents repeated environment checks by caching the Sail presence decision within a session. It avoids redundant lookups for Sail availability, ensuring stable and efficient command routing throughout your active development period.

Why does my Laravel command execution fail when switching between Sail and host environments?

For Laravel database commands, the tool routes execution through Sail when available, otherwise falling back to host database tools with matched versions. This ensures stable and consistent database operations across different local development setups.