laravel-prompts

Build interactive, validated CLI prompts for Laravel Artisan commands.

Updated Oct 26, 2025
One-click install
npx skills add https://github.com/Hieubkav/wincellarCloneBackend --skill laravel-prompts-hieubkav
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-prompts
Source: https://github.com/Hieubkav/wincellarCloneBackend/tree/main/.cla ude/skills/laravel/laravel-prompts
Command: npx skills add https://github.com/Hieubkav/wincellarCloneBackend --skill laravel-prompts-hieubkav

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide to building Laravel Prompts-powered CLI interactions, enabling richer command-line interfaces with input prompts, validation, and multi-step workflows.

Core Features & Use Cases

  • Text, password, select, and multi-step prompts for Artisan commands
  • Validation strategies and prompt composition
  • Examples for building guided CLI flows and interactive tools
  • Testing prompts and user interactions

Quick Start

Build a simple interactive Artisan command using Laravel Prompts and test common prompt interactions.

Frequently Asked Questions about laravel-prompts

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

FAQPage Schema
How do I build interactive CLI prompts for Laravel Artisan commands?

Laravel Prompts enables building interactive CLI prompts by providing text, password, select, multiselect, suggest, search, confirm, form, and progress input types with built-in validation, defaults, and placeholder hints. Integrate them directly into Artisan commands to create guided workflows with user feedback and terminal navigation features like scrolling and arrow keys.

What validation strategies can I use with Laravel CLI prompts?

Laravel Prompts supports validation through closures, Laravel validation rules, and required field constraints. Validation runs on user input before accepting the response, enabling custom logic, standard rule enforcement, and mandatory field checks to ensure data quality in interactive command-line tools.

Can I use Laravel Prompts to create multi-step interactive workflows?

Yes, Laravel Prompts supports composing multiple prompt types into multi-step workflows. Combine text, select, multiselect, confirm, and form prompts sequentially to build guided CLI flows that collect and validate user input across multiple stages within Artisan commands or interactive applications.

How do I test Laravel Prompts interactions in my test suite?

Laravel Prompts integrates with Laravel's testing utilities, allowing you to test prompt interactions, validation flows, and user input handling. Mock and assert prompt behavior within your test environment to verify CLI command workflows execute correctly across common testing scenarios.

What input types does Laravel Prompts support beyond basic text entry?

Laravel Prompts provides text, password, select, multiselect, suggest, search, confirm, form, and progress input types. Each type handles specific interaction patterns—password masks sensitive input, select and multiselect enable choice narrowing, suggest and search provide filtering, confirm handles yes/no logic, and progress displays task completion.

Does Laravel Prompts work with existing Laravel applications and testing frameworks?

Yes, Laravel Prompts integrates with Laravel Artisan commands and testing utilities within existing Laravel projects. It applies to interactive CLI applications built on Laravel, enabling validated prompts in command-line tools without external dependencies or framework changes.