Quick start
Get up and running with Prompt Deck in minutes.Installation guide
Install, configure, and verify Prompt Deck in your Laravel project.
Quick usage
Creating a prompt
Use the Artisan command to create a versioned prompt:resources/prompts/order-summary/v1/system.md with your prompt content. Use {{ $variable }} syntax for dynamic values:
Using a prompt
Load and render prompts with thePromptDeck facade:
Versioning
Create a new version of an existing prompt:Laravel AI SDK integration
If you use the Laravel AI SDK, add theHasPromptTemplate trait to your agents. This way, you do not need to define the instructions() method as it is provided automatically.
make:agent will also auto-scaffold a matching prompt directory.
Key features
Versioned prompts
Store prompts as files on disk with directory-based versioning. Load, render, and switch between versions effortlessly.
Prompt generator
Scaffold versioned, role-based prompt structures with the
make:prompt Artisan command.Variable interpolation
Use
{{ $variable }} syntax in prompt templates for dynamic content rendering.AI API messages
Convert prompts to messages arrays ready for OpenAI, Anthropic, and other chat-completion APIs.
Laravel AI SDK
First-class integration with Laravel AI SDK — auto-scaffolding, traits, and middleware.
Performance tracking
Log executions with token usage, latency, cost, and feedback for A/B testing and monitoring.