ai-sdk-development
Skill by laravel
Guides AI assistants through building AI features with Laravel's official AI SDK (laravel/ai). It is for Laravel developers working on agents, chatbots, embeddings, RAG and provider failover.
Install ai-sdk-development
Built from the published package, never by AI.
git clone --depth 1 https://github.com/laravel/ai /tmp/ai && mkdir -p ~/.claude/skills && cp -r /tmp/ai/resources/boost/skills/ai-sdk-development ~/.claude/skills/ai-sdk-developmentRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/laravel/ai /tmp/ai && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ai/resources/boost/skills/ai-sdk-development ~/.gemini/antigravity-cli/skills/ai-sdk-developmentAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Guides an AI assistant through building with the Laravel AI SDK (laravel/ai), the official first-party AI package for Laravel. It covers agents, chatbots, text, image and audio generation, transcription, embeddings, reranking, vector stores and file management across multiple providers. The skill tells the assistant which entry point to use for each task and to search the documentation before writing code.
It shows example code for agents with the Promptable trait, conversation memory, structured output, streaming, queueing, tools, MCP servers and provider failover. It also covers testing with fake() and assertions. The source lists providers including OpenAI, Anthropic, Gemini, Azure, Groq, xAI, DeepSeek, Mistral, Ollama, ElevenLabs, Cohere, Jina and VoyageAI. It is aimed at developers working on Laravel projects that use these AI features.
Written from the project's SKILL.md and checked against it.
What it can do
- Build agentsCreates agent classes using the Promptable trait, with instructions and per-prompt provider or model overrides.
- Manage conversationsAdds conversation history through the Conversational interface or the RemembersConversations trait.
- Structured outputDefines a schema with HasStructuredOutput so responses come back as structured data.
- Tools and MCP serversAdds custom tools via HasTools, provider tools such as web search, and tools from MCP clients.
- Generate mediaCovers image generation, text-to-speech audio and transcription with the Image, Audio and Transcription classes.
- Embeddings and rerankingGenerates embeddings with Embeddings::for() and reranks documents with Reranking::of().
- Files and vector storesUploads documents with Document::fromPath() and creates vector stores with Stores::create().
- Provider failoverAccepts a list of providers in prompt() so requests can fall back to another provider.
- Testing with fakesSupports fake() and assertion methods for agents, images, audio, embeddings and other capabilities.
What you need
- A Laravel project using the laravel/ai package
Try asking
- Add a chatbot agent with conversation memory to this Laravel app.
- Create an agent that returns structured JSON review scores using ai-sdk.
- Set up embeddings and a vector store for a Laravel knowledge base.
Good to know
- The source describes the package as new.
- The skill tells the assistant to search the documentation rather than guess at APIs.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: resources/boost/skills/ai-sdk-development/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md16 KB
Alternatives to ai-sdk-development
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
ai-sdk-development: common questions
Which AI providers does the Laravel AI SDK support?
The source lists OpenAI, Anthropic, Gemini, Azure, Groq, xAI, DeepSeek, Mistral, Ollama, ElevenLabs, Cohere, Jina and VoyageAI.
Can the SDK fall back to another provider?
Yes. Passing an array of providers to prompt() sets up failover, for example OpenAI then Anthropic.
How are AI features tested with this SDK?
Each capability supports fake() with assertions, such as SalesCoach::fake() followed by assertPrompted().
How do I install ai-sdk-development?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is ai-sdk-development free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is ai-sdk-development safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to ai-sdk-development?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
