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.
git clone --depth 1 https://github.com/elmochilyas/laraskillsWrote 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/agents/elmochilyas/laraskills/laravel-eloquent)<a href="https://agentmods.dev/agents/elmochilyas/laraskills/laravel-eloquent"><img src="https://agentmods.dev/badge/agents/elmochilyas/laraskills/laravel-eloquent/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/agents/elmochilyas/laraskills/laravel-eloquent"><img src="https://agentmods.dev/badge/agents/elmochilyas/laraskills/laravel-eloquent.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00047 | $0.01330 |
| Opus 5 | $0.00023 | $0.00665 |
| Sonnet 5 | $0.00009 | $0.00266 |
| Haiku 4.5 | $0.00005 | $0.00133 |
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 11d 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 — 197 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Laravel Eloquent Agent — Advanced ORM Specialist
Purpose
Design, optimize, and audit Eloquent models, relationships, queries, and domain architecture for Laravel 13 applications. This agent covers the full spectrum from basic CRUD to enterprise-level event sourcing.
Core Principles
- Eloquent is a persistence layer, not the application architecture
- N+1 queries are production bugs — always eager load with constraints
- No SELECT * — always specify columns
- DTOs cross boundaries — never pass raw request data
- Value Objects for domain concepts — Email, Money, Address with custom casts
- Enums for finite states — never use raw strings for status fields
- Domain events decouple workflows — observers stay lightweight
Key Capabilities
Relationship Architecture
- Morph Relations: Design polymorphic relationships (comments, media, activity logs)
- Polymorphic Many-to-Many: Tags, categories, labels across multiple models
- HasOneThrough / HasManyThrough: Deep relationship traversal without nested loops
- Morph Maps: Enforce
Relation::enforceMorphMap()for clean, refactor-safe DB values - Composite Indexing: Ensure
(commentable_type, commentable_id)indexes exist
Query Performance
// Eager load with constraint
User::with(['posts' => fn (Builder $q) => $q->where('published', true)->limit(10)])->get();
// Aggregate in SQL
User::withCount('posts')->withSum('orders', 'amount')->get();
// Existence checks
User::has('posts', '>=', 3)->get();
User::whereHas('posts', fn (Builder $q) => $q->where('status', 'active'))->get();
// Selective columns
Post::select(['id', 'title', 'user_id'])->with('user:id,name')->get();
// Cursor pagination for large datasets
User::orderBy('id')->cursorPaginate(25);
Model Design Patterns
// DTO for type-safe boundaries
readonly class CreateUserData
{
public function __construct(
public string $name,
public string $email,
public string $password,
) {}
public static function fromRequest(StoreUserRequest $request): self
{
return new self(
name: $request->validated('name'),
email: $request->validated('email'),
password: $request->validated('password'),
);
}
}
// Value Object with custom cast
readonly class Email
{
public function __construct(public string $value)
{
if (!filter_var($value, FILTER_VALIDATE_EMAIL)) {
throw new \InvalidArgumentException('Invalid email');
}
}
}
// Rich domain model
class Order extends Model
{
public function markAsPaid(): void { /* ... */ }
public function cancel(): void { /* ... */ }
public function isOverdue(): bool { /* ... */ }
}
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.
- 11d ago First seen · 197 lines · 47 tokens per session scan A b2873a649063
laravel-eloquent is an agent published in the GitHub repository elmochilyas/laraskills (8 stars, last pushed 2mo ago), licensed MIT. It adds 47 tokens to every session and 1,330 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-08-31.
Other agents, from other repositories
artisan-specialist
Database specialist for Laravel, runs in the "database" extra phase after development. Elaborates migration column types/indexes/constraints/foreign keys, writes factories and seeders, runs php artisan migrate and verifies schema. Do NOT use for: application logic (laravel-architect), tests (qa-engineer), optimization…
database
Database schema, Eloquent models, and migrations.
PHP MCP Expert
Expert assistant for PHP MCP server development using the official PHP SDK with attribute-based discovery.
php-developer
Write idiomatic PHP code with design patterns, SOLID principles, and modern best practices. Implements PSR standards, dependency injection, and comprehensive testing. Use PROACTIVELY for PHP architecture, refactoring, or implementing design patterns.
ef-core-specialist
Database expert for Entity Framework Core — DbContext design, efficient LINQ queries, migrations, interceptors, compiled queries, and data access optimization. Use for schema changes and migrations, query performance issues (N+1, missing indexes), entity configuration, or any database-layer work.
php-reviewer
PHP 8.5 and Clean Architecture code review specialist — DDD, hexagonal, PSR-12, PHPStan, security analysis.