Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 91
  • 1.3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-development

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install ai-sdk-development in Claude Code

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

A

No 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 →

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.

ai-sdk-development Install

Add to stack

Loading.