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 75repo +3 16d ago A scan Socket: passSnyk: warnSkillSpector: 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 19 Mar 2026
  • Snyk warn 19 Mar 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 $0.00035 $0.00531
Sonnet 5 $0.00014 $0.00213
Haiku 4.5 $0.00007 $0.00106

Measured 12d ago against content hash 96455eda54b9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 12d 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. 12d 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 (75 stars, last pushed 16d ago), licensed MIT. It adds 70 tokens to every session and 1,063 once invoked, about $0.0003 per session on Opus 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

aws-sdk-java-v2-bedrock

Provides Amazon Bedrock patterns using AWS SDK for Java 2.x. Invokes foundation models (Claude, Llama, Titan), generates text and images, creates embeddings for RAG, streams real-time responses, and configures Spring Boot integration. Use when asking about Bedrock integration, Java SDK for AI models, AWS generative…

giuseppe-trisciuoglio/developer-kit · 92 tokens

langchain4j-ai-services-patterns

Provides patterns to build declarative AI Services with LangChain4j for LLM integration, chatbot development, AI agent implementation, and conversational AI in Java. Generates type-safe AI services using interface-based patterns, annotations, memory management, and tools integration. Use when creating AI-powered Java…

giuseppe-trisciuoglio/developer-kit · 85 tokens

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

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

anti-slop-brain

Scaffold and operate Anti-Slop Brain, a source-cited Obsidian brain for detection and repair of AI slop in prose, code, documentation, and agent output, grounded in corpus evidence rather than authorship detection. Use when the user says "anti-slop-brain", "Anti-Slop Brain", "create a detection and repair of AI slop…

AgriciDaniel/anti-slop · 152 tokens

global-utils-knowledge

Domain knowledge for the globalutils shared Python library. Provides cross-service utilities: config, Redis, ports, helpers, embedding, Flask, and Celery app setup. Use when working on files under globalutils/.

redhat-community-ai-tools/UnifAI · 47 tokens