# AI Sdk Development

TRIGGER when working with ai-sdk which is Laravel official first-party AI SDK.

- Repository: https://github.com/yaojingang/GEOFlow (3990 stars)
- Category: AI and agents
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add yaojingang/GEOFlow --skill ai-sdk-development -g -a claude-code -y`
Codex: `npx skills add yaojingang/GEOFlow --skill ai-sdk-development -g -a codex -y`
Cursor: `npx skills add yaojingang/GEOFlow --skill ai-sdk-development -g -a cursor -y`
Gemini CLI: `npx skills add yaojingang/GEOFlow --skill ai-sdk-development -g -a gemini-cli -y`

## Description

TRIGGER when working with ai-sdk which is Laravel official first-party AI SDK. Activate when building, editing AI agents, chatbots, text generation, image generation, audio/TTS, transcription/STT, embeddings, RAG, vector stores, reranking, structured output, streaming, conversation memory, tools, queueing, broadcasting, and provider failover across OpenAI, Anthropic, Gemini, Azure, Groq, xAI, DeepSeek, Mistral, Ollama, ElevenLabs, Cohere, Jina, and VoyageAI. Invoke when the user references ai-sdk, the `Laravel\Ai\` namespace, or this project's AI features, not for Prism PHP or other AI packages used directly.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Developing with the Laravel AI SDK

The Laravel AI SDK (`laravel/ai`) is the official AI package for Laravel, providing a unified API for agents, images, audio, transcription, embeddings, reranking, vector stores, and file management across multiple AI providers.

## Searching the Documentation

This package is new. Always search the documentation before implementing any feature. Never guess at APIs, the documentation is the single source of truth.

- Use broad, simple queries that match the documentation section headings below.
- Do not add package names to queries, package information is shared automatically. Use `test agent fake`, not `laravel ai test agent fake`.
- Run multiple queries at once, the most relevant results are returned first.

### Documentation Sections

Use these section headings as query terms for accurate results:

- Introduction, Installation, Configuration, Provider Support
- Agents: Prompting, Conversation Context, Structured Output, Attachments, Streaming, Broadcasting, Queueing, Tools, Provider Tools, Middleware, Anonymous Agents, Agent Configuration
- Images
- Audio (TTS)
- Transcription (STT)
- Embeddings: Querying Embeddings, Caching Embeddings
- Reranking
- Files
- Vector Stores: Adding Files to Stores
- Failover
- Testing: Agents, Images, Audio, Transcriptions, Embeddings, Reranking, Files, Vector Stores
- Events

## Decision Workflow

Determine the right entry point before writing code:

The rest: https://github.com/yaojingang/GEOFlow/blob/HEAD/.agents/skills/ai-sdk-development/SKILL.md
