laravel-ai-sdk

laravel-ai-sdk is a skill for Claude Code, Codex from AsyrafHussin/agent-skills. It costs 70 tokens per session (1,063 once invoked), scanned A, original, MIT.

A guide to the Laravel AI SDK, a PHP toolkit for adding AI features to Laravel applications. It covers agents, tool calls, structured responses, embeddings, search, media generation, storage, and testing.

In plain words
What is it for?
Use it when building AI agents, image or audio generation, transcription, vector search, retrieval-augmented features, streaming responses, or tests with simulated AI behavior.
Why use it?
It gives developers a consistent way to design and test AI features without piecing together separate implementation patterns.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

not rated 95repo +3 2mo ago A scan Socket: passSnyk: passSkillSpector: pass 70 tokens original MIT

Good fit Use it when building AI agents, image or audio generation, transcription, vector search, retrieval-augmented features, streaming responses, or tests with simulated AI behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/asyrafhussin/agent-skills/laravel-ai-sdk
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AsyrafHussin/agent-skills --skill laravel-ai-sdk
Clone the repo
git clone --depth 1 https://github.com/AsyrafHussin/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for laravel-ai-sdk

README.md
[![agentmods](https://agentmods.dev/badge/skills/asyrafhussin/agent-skills/laravel-ai-sdk/github.svg)](https://agentmods.dev/skills/asyrafhussin/agent-skills/laravel-ai-sdk)
Your own site
<a href="https://agentmods.dev/skills/asyrafhussin/agent-skills/laravel-ai-sdk"><img src="https://agentmods.dev/badge/skills/asyrafhussin/agent-skills/laravel-ai-sdk/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for laravel-ai-sdk

Your own site · 80×15
<a href="https://agentmods.dev/skills/asyrafhussin/agent-skills/laravel-ai-sdk"><img src="https://agentmods.dev/badge/skills/asyrafhussin/agent-skills/laravel-ai-sdk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,063 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00070 $0.01063
Opus 5.5 $0.00028 $0.00425
Sonnet 5.5 $0.00014 $0.00213
Haiku 4.5 $0.00007 $0.00106

Measured 1mo ago against content hash 96455eda54b9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

laravel-ai-sdk scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/laravel-ai-sdk/SKILL.md · 158 lines

How it starts

The opening of the file, as written. The whole thing — 158 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Laravel AI SDK

Comprehensive guide for building AI-powered features with the Laravel AI SDK (laravel/ai). Contains 17 rules across 7 categories covering agents, tools, media generation, embeddings, vector stores, and testing.

When to Apply

Reference these guidelines when:

  • Creating AI agents with instructions, tools, and structured output
  • Prompting agents with conversation context
  • Streaming or queueing agent responses
  • Generating images, audio, or transcriptions
  • Creating and querying vector embeddings
  • Building RAG (retrieval-augmented generation) features
  • Testing AI features with fakes and assertions

Rule Categories by Priority

Priority Category Impact Prefix
1 Agents CRITICAL agent-
2 Tools HIGH tool-
3 Embeddings & Search HIGH embed-
4 Media Generation MEDIUM media-
5 Files & Storage MEDIUM files-
6 Infrastructure MEDIUM infra-
7 Testing HIGH test-

Quick Reference

1. Agents (CRITICAL)

  • agent-create-configure - Create agents with artisan, PHP attribute configuration
  • agent-prompting - Prompt agents, conversation context, RemembersConversations
  • agent-structured-output - Structured output with JSON schema
  • agent-streaming-async - Streaming, broadcasting, and queueing responses
  • agent-middleware - Agent middleware pipeline
  • agent-anonymous - Anonymous agents for quick interactions

2. Tools (HIGH)

  • tool-create - Create custom tools with schema and handle method
  • tool-provider - Provider tools: WebSearch, WebFetch, FileSearch, SimilaritySearch

3. Embeddings & Search (HIGH)

  • embed-generate-cache - Generate, store, and cache vector embeddings
  • embed-rerank - Rerank documents and collections by relevance

4. Media Generation (MEDIUM)

  • media-images - Generate, store, and queue images
  • media-audio-transcription - Text-to-speech and speech-to-text

5. Files & Storage (MEDIUM)

Read the full file on GitHub · 158 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 158 lines · 70 tokens per session scan A 96455eda54b9

Subscribe to this mod's changes

laravel-ai-sdk is a skill published in the GitHub repository AsyrafHussin/agent-skills (95 stars, last pushed 2mo ago), licensed MIT. It adds 70 tokens to every session and 1,063 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

azure-search-documents-ts

Build search applications using Azure AI Search SDK for JavaScript (@azure/search-documents). Use when creating/managing indexes, implementing vector/hybrid search, semantic ranking, or building ag...

benjaminasterA/antigravity-awesome-skills · 43 tokens

tree-sitter-language-pack-chunking-for-llms

Use when the user wants to split source code into chunks for an LLM context window without breaking syntax mid-construct. Covers ts-pack process --chunk-size, why syntax-aware splits beat fixed-byte splits, picking a size, and the chunk JSON shape.

xberg-io/tree-sitter-language-pack · 52 tokens

ring:adopting-lib-commons-huma-wrapper

Adopting the lib-commons/v5 shared Huma (OAS 3.1) OpenAPI wrapper + RFC 9457 problem model (commons/net/http/{openapi,problem}) in a Lerian Go service: wire openapi.New/ServeSpec + problem.Install (central >=500 scrub) on BOTH runtime and spec-gen paths, the per-rail problem.MapError flex seam, and rename-only spec…

LerianStudio/ring · 142 tokens

migrate-from-ai-sdk

Use when porting an app from the Vercel AI SDK (ai, @ai-sdk/) to @deuz-sdk/core. Triggers include "migrate from the AI SDK", "replace ai with @deuz-sdk/core", "we use streamText/generateText/useChat and want to switch", removing @ai-sdk/openai or @ai-sdk/anthropic, porting a toUIMessageStreamResponse route, converting…

Deuz-AI/Deuz-SDK · 118 tokens

aicore-sdk-js

Generate working TypeScript/JavaScript boilerplate for SAP GenAI Hub using @sap-ai-sdk/orchestration, @sap-ai-sdk/foundation-models, @sap-ai-sdk/openai (native OpenAI SDK), @sap-ai-sdk/langchain (LangChain), @sap-ai-sdk/document-grounding (RAG), @sap-ai-sdk/prompt-registry, @sap-ai-sdk/llm-batch (batch jobs)…

SAP/ai-skills-library · 246 tokens

aicore-sdk-java

Generate working Java boilerplate for SAP GenAI Hub using the SAP AI SDK for Java (com.sap.ai.sdk). Covers chat completion, streaming, multi-turn conversations, prompt templates, content filtering, data masking, embeddings, RAG/grounding, prompt registry, and Spring Boot streaming. WHEN: user asks for Java or Kotlin…

SAP/ai-skills-library · 135 tokens