/superpowers-laravel:laravel:ai-sdkfrom superpowers-laravel
Builds AI features with Laravel's first-party AI SDK: agents, embeddings, images, audio, and tool calling via provider-agnostic APIs. Includes patterns for configuration, testing, and failover.
Ships in superpowers-laravel. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use the first-party AI SDK for provider-agnostic text generation, agents, embeddings, images, and audio. Keep provider details in config; keep app code portable across OpenAI, Anthropic, Gemini, Bedrock, Ollama, and others.
# Install the SDK
sail composer require laravel/ai # or: composer require laravel/ai
# Basic agent prompt
use App\Ai\Agents\SalesCoach;
$response = SalesCoach::make()->prompt('Analyze this sales transcript...');
return (string) $response;
# Image generation
use Laravel\Ai\Image;
$image = Image::of('A donut sitting on the kitchen counter')->generate();
# Audio synthesis
use Laravel\Ai\Audio;
$audio = Audio::of('I love coding with Laravel.')->generate();
# Embeddings (also see laravel:vector-search)
use Illuminate\Support\Str;
$embeddings = Str::of('Napa Valley has great wine.')->toEmbeddings();
.env; never hardcode provider credentialsWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jpcaparas/superpowers-laravel --plugin superpowers-laravel57 skills in this plugin
/laravel:api-resources-and-paginationUse API Resources with pagination and conditional fields; keep response shapes stable and cache-friendly/laravel:api-surface-evolutionEvolve APIs safely using versioned DTOs/transformers, deprecations, and compatibility tests/laravel:blade-components-and-layoutsCompose UIs with Blade components, slots, and layouts; keep templates pure and testable/laravel:bootstrap-checkDetect Sail/non‑Sail and print the right command pairs for your environment; verify dependencies and key services are reachable/laravel:brainstormingInteractive design refinement tailored to Laravel projects; clarify domain, data, interfaces, testing, and quality gates while accounting for Sail/non‑Sail environments/laravel:code-review-requestsRequest effective code reviews—specify focus areas, provide context, ask for architectural feedback, reference Laravel conventionsOther plugins' skills for the same job