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.
npx skills add fusengine/agents --skill laravel-ai-sdkgit clone --depth 1 https://github.com/fusengine/agentsWrote 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.
[](https://agentmods.dev/skills/fusengine/agents/laravel-ai-sdk)<a href="https://agentmods.dev/skills/fusengine/agents/laravel-ai-sdk"><img src="https://agentmods.dev/badge/skills/fusengine/agents/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.
<a href="https://agentmods.dev/skills/fusengine/agents/laravel-ai-sdk"><img src="https://agentmods.dev/badge/skills/fusengine/agents/laravel-ai-sdk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Privilege Escalation · line 72 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00035 | $0.01397 |
| Opus 5.5 | $0.00014 | $0.00559 |
| Sonnet 5.5 | $0.00007 | $0.00279 |
| Haiku 4.5 | $0.00003 | $0.00140 |
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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Laravel AI SDK
Agent Workflow (MANDATORY)
Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:
- fuse-ai-pilot:explore-codebase - Map existing AI usage (custom HTTP clients, OpenAI PHP, etc.) to migrate
- fuse-ai-pilot:research-expert - Verify provider model IDs and pricing on the official Laravel AI SDK docs
- mcp__context7__query-docs - Pull latest
laravel.com/docs/13.x/ai-sdkexamples
After implementation, run fuse-ai-pilot:sniper for validation.
Overview
| Feature | Description |
|---|---|
| Unified API | Same code surface for 17 providers via Lab enum |
| Agents | Class-based with Agent contract + Promptable trait |
| Tool calling | First-party FileSearch + custom tools per agent |
| Embeddings | Embeddings::for([...])->generate() + Str::of(...)->toEmbeddings() |
| Streaming | Native SSE + Vercel AI SDK protocol compatibility |
| Structured output | agent(schema: fn ($s) => ...) with JsonSchema |
Critical Rules
- Use the
Labenum - Never hard-code provider strings; useLab::Anthropic,Lab::OpenAI, etc. - Configure keys in
.env- One env var per provider (OPENAI_API_KEY,ANTHROPIC_API_KEY, ...) read byconfig/ai.php - Agents are classes - Always implement
Laravel\Ai\Contracts\Agentand usePromptabletrait - Declare tools explicitly - Override
tools(): iterableto expose tool calls; never assume implicit registration - Stream via routes - Return
$agent->stream(...)directly from a route; do not buffer in memory
What ships with it
10 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/agents.md 1.7 KB
- references/embeddings.md 1.5 KB
- references/installation.md 3.0 KB
- references/streaming.md 1.7 KB
- references/structured-output.md 1.8 KB
- references/templates/Agent.php.md 1.3 KB
- references/templates/EmbeddingService.php.md 2.0 KB
- references/templates/StreamingController.php.md 1.2 KB
- references/templates/Tool.php.md 1.6 KB
- references/tools.md 2.1 KB
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.
- 2mo ago Changed · +1 lines 2bd674b9862b
- 3mo ago Changed 1547c2c2a933
- 3mo ago First seen · 142 lines · 35 tokens per session scan A 605f06f6ad41
laravel-ai-sdk is a skill published in the GitHub repository fusengine/agents (34 stars, last pushed 1mo ago), licensed MIT. It adds 35 tokens to every session and 1,397 once invoked, about $0.0001 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-09-03.
laravel-ai-sdk compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| laravel-ai-sdkfusengine/agents | Skill | 34 | 1mo ago | MIT | A | 35 | Claude Code |
| expert-ai-engineermehtab78/skills | Skill | 1 | 5mo ago | MIT | A | 59 | Claude Code |
| markitdownK-Dense-AI/scientific-agent-skills | Skill | 59k | 4d ago | MIT | A | 62 | Claude Code, Codex |
| ai-workflow-architectcbrock84/headcount | Skill | 2.6k | 3d ago | MIT | A | 89 | Claude Code |
| reviewing-ai-papersoaustegard/claude-skills | Skill | 428 | 3d ago | MIT | A | 105 | Claude Code |
| langchain-developmentMindrally/skills | Skill | 325 | 1mo ago | Apache-2.0 | A | 29 | Claude Code |
| ask-claudethoughtbot/rails-consultant | Skill | 39 | 14d ago | MIT | A | 97 | Claude Code |