laravel-container

laravel-container is an agent for Claude Code from elmochilyas/laraskills. It costs 38 tokens per session (579 once invoked), scanned A, original, MIT.

A Laravel 13 architecture specialist for connecting services through the Service Container, which creates and supplies the objects an application needs.

In plain words
What is it for?
Use it to design bindings, singletons, request-scoped services, conditional implementations, service providers, facades, and interface-based code.
Why use it?
It helps keep dependencies replaceable and organizes service registration, configuration, and request-time object creation.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to design bindings, singletons, request-scoped services, conditional implementations, service providers, facades, and interface-based code.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/elmochilyas/laraskills/laravel-container
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.

Clone the repo
git clone --depth 1 https://github.com/elmochilyas/laraskills

Made for: Claude Code.

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-container

README.md
[![agentmods](https://agentmods.dev/badge/agents/elmochilyas/laraskills/laravel-container/github.svg)](https://agentmods.dev/agents/elmochilyas/laraskills/laravel-container)
Your own site
<a href="https://agentmods.dev/agents/elmochilyas/laraskills/laravel-container"><img src="https://agentmods.dev/badge/agents/elmochilyas/laraskills/laravel-container/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-container

Your own site · 80×15
<a href="https://agentmods.dev/agents/elmochilyas/laraskills/laravel-container"><img src="https://agentmods.dev/badge/agents/elmochilyas/laraskills/laravel-container.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 579 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.
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.00038 $0.00579
Opus 5 $0.00019 $0.00290
Sonnet 5 $0.00008 $0.00116
Haiku 4.5 $0.00004 $0.00058

Measured 9d ago against content hash 76d6a229e15e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

laravel-container 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 9d 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.

agents/laravel-container.md · 99 lines

How it starts

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

Laravel Container Agent

Purpose

Design and review Service Container bindings, Service Providers, Facade usage, Contract architecture, and Request Lifecycle decisions for Laravel 13 applications.

Key Patterns

Container Bindings

$this->app->bind(PaymentGatewayInterface::class, StripeGateway::class);
$this->app->singleton(PaymentClient::class);
$this->app->scoped(TenantContext::class);

Contextual Binding

$this->app->when(AdminController::class)
    ->needs(PaymentGatewayInterface::class)
    ->give(StripeGateway::class);

$this->app->when(ApiController::class)
    ->needs(PaymentGatewayInterface::class)
    ->give(PaypalGateway::class);

Tagged Services

$this->app->tag([StripeGateway::class, PaypalGateway::class], 'payment-gateways');
$gateways = app()->tagged('payment-gateways');

Service Provider

class BillingServiceProvider extends ServiceProvider
{
    public function register(): void
    {
        $this->app->bind(PaymentGatewayInterface::class, StripeGateway::class);
    }

    public function boot(): void
    {
        $this->loadRoutesFrom(__DIR__ . '/routes.php');
    }
}

Contract-Based Service

class OrderService
{
    public function __construct(
        private PaymentGatewayInterface $gateway,
        private CacheInterface $cache,
        private LoggerInterface $logger,
    ) {}
}

Tests

test('container binds stripe gateway', function () {
    $this->app->bind(PaymentGatewayInterface::class, StripeGateway::class);
    expect(app(PaymentGatewayInterface::class))->toBeInstanceOf(StripeGateway::class);
});

test('contextual binding works', function () {
    $controller = app(AdminController::class);
    expect($controller->gateway)->toBeInstanceOf(StripeGateway::class);
});

Reference

  • See skill: laravel-core-internals for comprehensive container patterns
  • See rules/laravel/service-container.md for container best practices
  • See rules/laravel/service-providers.md for provider guidelines
  • See rules/laravel/facades.md for facade usage rules
  • See rules/laravel/contracts.md for contract design rules

Read the full file on GitHub · 99 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. 9d ago First seen · 99 lines · 38 tokens per session scan A 76d6a229e15e

Subscribe to this mod's changes

laravel-container is an agent published in the GitHub repository elmochilyas/laraskills (8 stars, last pushed 2mo ago), licensed MIT. It adds 38 tokens to every session and 579 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.

Related

Other agents, from other repositories

Laravel Expert Agent

Expert Laravel development assistant specializing in modern Laravel 12+ applications with Eloquent, Artisan, testing, and best practices.

github/awesome-copilot · 27 tokens

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.

davepoon/buildwithclaude · 51 tokens

php-general-engineer

PHP development: features, debugging, code quality, security, modern PHP 8.x patterns.

notque/vexjoy-agent · 24 tokens

symfony-engineer

Implements Symfony application code following framework best practices, drawing on the superpowers-symfony skill library. Use for general Symfony coding — controllers, services, dependency injection, value objects/DTOs, forms, Twig components, configuration — when no more specialized agent (api-platform-builder…

dev-toolings/superpowers-symfony · 76 tokens

php-developer

Implementación de código PHP/Laravel siguiendo specs SDD aprobadas. Usar PROACTIVELY cuando: se implementa una feature en PHP/Laravel (controllers, services, migrations, models), se refactoriza código existente, o se corrige un bug con spec definida. SIEMPRE requiere una Spec SDD aprobada antes de empezar.

gonzalezpazmonica/savia · 77 tokens

api-infrastructure-generator

API & infrastructure patterns generator. Creates ADR (Action-Domain-Responder), API Versioning, Health Check, Unit of Work, Idempotency Handler, Structured Logger, Access Control, Distributed Lock, Read-Write Proxy, and Metrics Collector components for PHP 8.4. Called by acc:pattern-generator coordinator.

dykyi-roman/awesome-claude-code · 69 tokens