chimit/prompt

Manage AI prompts in Blade style.
18,010 43
Install
composer require chimit/prompt
Latest Version:v1.2.0
Laravel:9 – 13
License:MIT
Last Updated:Jul 11, 2026
Links: GitHub  ·  Packagist
Maintainer: chimit

Prompt

Prompt is a simple Laravel package for managing your AI prompts in Markdown files, with the full power of Blade.

Installation

You can install the package via composer:

composer require chimit/prompt

Usage

Create Your Prompts

Create your prompt files in the resources/prompts directory using the .md extension. You can organize them in subdirectories as needed:

resources/
└── prompts/
    ├── seo/
    │   └── product-meta.md
    └── welcome.md

Use Blade Syntax in Your Prompts

Your prompt files support full Blade syntax, including variables, PHP expressions, and unsafe HTML rendering. Here's an example resources/prompts/seo/product-meta.md:

You are an SEO expert specializing in e-commerce. Generate a compelling meta description for this product.

**Product:** {{ $product->name }}
**Price:** ${{ number_format($product->price, 2) }}

**Product Description:**
---
{!! $product->description !!}
---

@if($product->discount_percentage > 0)
**Special Offer:** {{ $product->discount_percentage }}% OFF - Limited Time!
@endif

Requirements:
- Maximum 160 characters
- Include the product name and key benefits
- Create urgency if there's a discount
- Target keywords: {{ implode(', ', $keywords) }}

Render Your Prompts

Use the Prompt::get() method to render your prompts with data, just like you would with Blade views:

use Chimit\Prompt;

$prompt = Prompt::get('seo/product-meta', [
    'product' => $product,
    'keywords' => ['wireless headphones', 'bluetooth', 'noise cancelling']
]);

Related Packages

pocketarc/ai-workflow

Production-ready AI workflows for Laravel — resilient calls with retries, fallba...

1,568 0
lvlup-dev/laravel-agent-editable-prompts

Store agent prompts in the database, resolve concatenated text by agent slug, an...

3 0
baconfy/prompt

Manage AI prompts in Laravel with Markdown + YAML front matter, multiple drivers...

1,463 3
laravel/ai

The official AI SDK for Laravel.

11,388,356 1,239
philo/laravel-blade

Use the simple and yet powerful Laravel Blade templating engine as a standalone...

689,955 355

Version History

Version Released Laravel License
v1.2.0 >=9.0 MIT
v1.1.0 ^9.0 || ^10.0 || ^11.0 || ^12.0 MIT
v1.0.0 ^9.0 || ^10.0 || ^11.0 || ^12.0 MIT