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 investbrainapp

Guides an AI assistant through building and testing AI features with the Laravel AI SDK (laravel/ai). Aimed at Laravel developers who want agents, chat, images, audio, embeddings, or vector stores in their app.

  • Score 85
  • 942 stars
  • NOASSERTION
  • 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/investbrainapp/investbrain /tmp/investbrain && mkdir -p ~/.claude/skills && cp -r /tmp/investbrain/.ai/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

This skill gives an AI assistant guidance for building, editing, debugging, and testing AI features in Laravel with the official laravel/ai package. It covers agents, text and chat responses, image and audio generation, speech transcription, embeddings, reranking, files, and vector stores across several providers, including OpenAI, Anthropic, Gemini, Cohere, Groq, xAI, ElevenLabs, Jina, and OpenRouter.

The skill points the assistant to the SDK documentation before writing code and includes a decision workflow that picks the right entry point, such as an agent class, Image::of(), or Embeddings::for(). It shows examples for structured output, streaming, tools, conversation memory, queueing, and provider failover, plus fakes and assertions for testing. It is aimed at developers who build Laravel apps with AI features.

Written from the project's SKILL.md and checked against it.

What it can do

  • AgentsCreates agent classes that use the Promptable trait for text and chat responses.
  • Conversation memoryStores and continues conversations manually or with the RemembersConversations trait.
  • Structured outputReturns JSON-shaped responses defined by a schema through the HasStructuredOutput interface.
  • Images and audioGenerates images with Image::of() and synthesizes speech with Audio::of().
  • TranscriptionTranscribes audio files from paths or storage, with optional diarization.
  • Embeddings and rerankingGenerates vector embeddings with optional caching and reranks documents by query.
  • Files and vector storesUploads documents with the provider and adds them to vector stores for retrieval.
  • FailoverPasses a list of providers so a prompt can fall back to another provider.
  • Testing fakesFakes each capability and asserts prompts, generations, and store additions in tests.

What you need

  • Laravel application
  • Composer to install laravel/ai

Try asking

  • Create a Laravel agent that answers support questions with conversation memory
  • Add a Laravel command that generates embeddings for my product descriptions
  • Write a Pest test that fakes an AI agent and asserts the prompt

Good to know

  • The source says the package is new, so the documentation should be checked before implementing features.
  • Calling a capability a provider does not support throws a LogicException.
  • Provider support differs by capability, so not every provider handles images, audio, embeddings, or files.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .ai/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 →

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 provider table lists OpenAI, Anthropic, Gemini, xAI, Groq, OpenRouter, ElevenLabs, Cohere, and Jina. Each one supports a different set of capabilities.

Does this skill write code that calls Prism directly?

No. The source says to use agents and entry-point classes such as Image and Audio, not Prism::text() directly, because the SDK wraps Prism internally.

How do I test AI features built with the SDK?

Each capability has a fake() method with assertions, such as SalesCoach::fake() and Image::assertGenerated(). The source also shows preventStrayPrompts().

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 85 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.

ai-sdk-development Install

Add to stack

Loading.