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.
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-developmentRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/investbrainapp/investbrain /tmp/investbrain && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/investbrain/.ai/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 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
ANo 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 →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 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.
