It provides variable interpolation, performance tracking, A/B testing, and optional seamless integration with the Laravel AI SDK.Documentation Index
Fetch the complete documentation index at: https://vu-ddaf4ff3.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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
After installing (installation guide), 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.
Explore the docs
Configuration
Customise caching, tracking, and file settings.
Artisan commands
Five commands for managing prompts from the CLI.
Testing
Strategies and examples for testing prompts.