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 agentmods add skills/fusengine/agents/laravel-eloquentnpx skills add fusengine/agents --skill laravel-eloquentgit 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-eloquent)<a href="https://agentmods.dev/skills/fusengine/agents/laravel-eloquent"><img src="https://agentmods.dev/badge/skills/fusengine/agents/laravel-eloquent.svg" alt="Measured on agentmods" height="20"></a>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 | $0.00033 | $0.01835 |
| Opus 5 | $0.00016 | $0.00918 |
| Sonnet 5 | $0.00007 | $0.00367 |
| Haiku 4.5 | $0.00003 | $0.00184 |
Grade A, and why
laravel-eloquent 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 today.
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 — 160 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Laravel Eloquent ORM (L13 — Attributes-first)
Agent Workflow (MANDATORY)
Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:
- fuse-ai-pilot:explore-codebase - Inspect existing models, mixed property/attribute usage
- fuse-ai-pilot:research-expert - Verify Laravel 13 Eloquent + Attributes docs via Context7
- mcp__context7__query-docs - Query attribute patterns (#[Fillable], #[Casts], #[Scope])
After implementation, run fuse-ai-pilot:sniper for validation.
Overview
Laravel 13 promotes PHP 8.3 Attributes as the primary metadata mechanism on Eloquent models. Legacy properties ($fillable, $hidden, ...) remain supported for backward compatibility but should not be mixed with their attribute counterparts.
| Feature | Attribute (L13 MAIN) | Legacy property |
|---|---|---|
| Table name | #[Table('users')] |
protected $table |
| Mass assignment | #[Fillable([...])] |
protected $fillable |
| Hidden / Visible | #[Hidden([...])] / #[Visible([...])] |
protected $hidden / $visible |
| Guarded | #[Guarded([...])] / #[Unguarded] |
protected $guarded |
| Casts | #[Casts([...])] |
casts() method |
| Appends | #[Appends([...])] |
protected $appends |
| Touches | #[Touches([...])] |
protected $touches |
| Connection | #[Connection('mysql')] |
protected $connection |
What ships with it
29 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/accessors-mutators.md 2.8 KB
- references/aggregates.md 3.2 KB
- references/batch-operations.md 3.3 KB
- references/casts.md 3.2 KB
- references/collections.md 3.2 KB
- references/eager-loading.md 3.2 KB
- references/events-observers.md 3.2 KB
- references/factories.md 3.2 KB
- references/legacy-properties.md 3.4 KB
- references/models.md 2.7 KB
- references/pagination.md 2.8 KB
- references/performance.md 3.4 KB
- references/query-debugging.md 2.8 KB
- references/relationships-advanced.md 3.0 KB
- references/relationships-basic.md 2.8 KB
- references/relationships-many-to-many.md 3.2 KB
- references/relationships-polymorphic.md 3.3 KB
- references/resources.md 3.2 KB
- references/scopes.md 2.7 KB
- references/serialization.md 3.4 KB
- references/soft-deletes.md 2.9 KB
- references/templates/EagerLoadingExamples.php.md 7.7 KB
- references/templates/Factory.php.md 9.1 KB
- references/templates/ModelBasic.php.md 6.4 KB
- references/templates/ModelCasts.php.md 8.3 KB
- references/templates/ModelRelationships.php.md 8.1 KB
- references/templates/Observer.php.md 8.4 KB
- references/templates/Resource.php.md 9.0 KB
- references/transactions.md 2.7 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.
- today Changed 1dbd34244490
- yesterday First seen · 160 lines · 33 tokens per session scan A 9b42bbf342f7
laravel-eloquent is a skill published in the GitHub repository fusengine/agents (25 stars, last pushed today), licensed MIT. It adds 33 tokens to every session and 1,835 once invoked, about $0.0002 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-09-03.
Other skills, from other repositories
phoenix-contexts
Phoenix context design — creating/splitting contexts, Scope (1.8+), Ecto.Multi, PubSub, routers, plugs, controllers. Use when editing contexts, routers, or designing boundaries.
ecto-n1-check
Detect N+1 query anti-patterns specifically — Repo calls inside Enum/for loops, missing preloads on associations. Use when N+1 is explicitly suspected, NOT for unrelated Ecto questions or wider database performance.
constraint-debug
Compatibility alias for the Elixir/Phoenix plugin's Ecto constraint debugger. Invoke explicitly with /ecto:constraint-debug.
n1-check
Compatibility alias for the Elixir/Phoenix plugin's N+1 query checker. Invoke explicitly with /ecto:n1-check.
ts-db-perf
Optimize TypeScript code that interacts with databases. Use this skill when the user wants to fix N+1 queries, add caching, improve transaction safety, prevent race conditions, simplify async flows, or generally speed up a TypeScript backend. Triggers on phrases like "optimize", "slow query", "N+1", "race condition"…
backend-engineer
Use when designing APIs, working with databases, building microservices, handling authentication and authorisation, optimising server performance, designing data models, or any task involving server-side logic, infrastructure, or system architecture.