ai-sdk-development
Skill by m3ue
Guides coding assistants in building with the Laravel AI SDK (laravel/ai). It covers agents, images, audio, transcription, embeddings, reranking, vector stores and provider failover for Laravel projects.
Install ai-sdk-development
Built from the published package, never by AI.
git clone --depth 1 https://github.com/m3ue/m3u-editor /tmp/m3u-editor && mkdir -p ~/.claude/skills && cp -r /tmp/m3u-editor/.claude/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/m3ue/m3u-editor /tmp/m3u-editor && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/m3u-editor/.claude/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
This skill gives an AI assistant the working rules and code patterns for the Laravel AI SDK, the official first-party AI package for Laravel. It covers agents, chatbots, text, images, audio and TTS, transcription, embeddings, reranking, files and vector stores. It tells the assistant to search the documentation first and not to guess at APIs. It also shows the namespace, entry-point classes, optional interfaces, testing helpers and provider support by capability.
The skill is aimed at developers working on Laravel applications that use the SDK. It lists providers including OpenAI, Anthropic, Gemini, Azure, Groq, xAI, DeepSeek, Mistral, Ollama, ElevenLabs, Cohere, Jina and VoyageAI. It is meant for work on ai-sdk features, not for Prism PHP or other AI packages used directly.
Written from the project's SKILL.md and checked against it.
What it can do
- AgentsBuilds agent classes that implement the Agent interface and use the Promptable trait.
- Conversation memoryExplains manual history via Conversational and automatic persistence via RemembersConversations.
- Structured outputDefines JSON schemas through the HasStructuredOutput interface for agent responses.
- Images and audioShows Image::of() and Audio::of() generation with storage and voice options.
- Transcription and embeddingsCovers speech-to-text with Transcription and vector generation with Embeddings.
- RerankingShows how to rank documents against a query with Reranking::of().
- Vector storesCreates stores with Stores::create() and adds files to them.
- Tools and provider toolsAdds custom tools via HasTools and built-in WebSearch, WebFetch and FileSearch tools.
- FailoverPasses a list of providers so a prompt can fall back to another provider.
- Testing helpersShows fake() and assertion methods for agents, images, audio, embeddings and stores.
What you need
- Laravel project
- Composer to install laravel/ai
Try asking
- Create an agent that scores customer feedback as JSON with a 1 to 10 score.
- Add conversation memory to my chatbot agent using RemembersConversations.
- Generate an image with Image::of() and store it on the default disk.
Good to know
- The source describes the package as new, so the skill asks the assistant to check current docs first.
- Calling a capability a provider does not support throws a LogicException.
- The skill says not to call Prism directly and to use the SDK's agents and entry-point classes instead.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/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.md12 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
What is the Laravel AI SDK?
The source describes it as the official first-party AI package for Laravel, with a unified API across multiple AI providers.
Which providers does it support for text generation?
The source lists OpenAI, Anthropic, Gemini, Azure, Groq, xAI, DeepSeek, Mistral and Ollama for text.
Should I use Prism PHP with this skill?
No. The source says to use the SDK's agents and entry-point classes, not Prism::text() directly, because the SDK wraps Prism internally.
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 NOASSERTION licence. The service it connects to may have its own pricing.
Is ai-sdk-development safe to use?
It scores 83 of 100. Grades: maintenance A, licence F, 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.
