laravel-patterns

laravel-patterns is a skill for Claude Code, Codex from gongyijie85/dsh-ecc. It costs 54 tokens per session (2,341 once invoked), scanned A, a copy of laravel-patterns, MIT.

Architecture guidance for Laravel, a PHP framework for web applications, covering routes, controllers, database models, services, queues, events, caching, and APIs. It encourages clear boundaries between the parts of an application.

In plain words
What is it for?
Use it when building or reviewing Laravel applications and APIs, organizing controllers and services, working with Eloquent models, adding background jobs, or designing paginated API responses.
Why use it?
It helps prevent business logic, database access, and request handling from becoming tangled as a Laravel project grows.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when building or reviewing Laravel applications and APIs, organizing controllers and services, working with Eloquent models, adding background jobs, or designing paginated API responses.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gongyijie85/dsh-ecc/laravel-patterns
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 gongyijie85/dsh-ecc --skill laravel-patterns
Clone the repo
git clone --depth 1 https://github.com/gongyijie85/dsh-ecc

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/gongyijie85/dsh-ecc/laravel-patterns/github.svg)](https://agentmods.dev/skills/gongyijie85/dsh-ecc/laravel-patterns)
Your own site
<a href="https://agentmods.dev/skills/gongyijie85/dsh-ecc/laravel-patterns"><img src="https://agentmods.dev/badge/skills/gongyijie85/dsh-ecc/laravel-patterns/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-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/gongyijie85/dsh-ecc/laravel-patterns"><img src="https://agentmods.dev/badge/skills/gongyijie85/dsh-ecc/laravel-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,341 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 97% copy Near-identical to another mod 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.00054 $0.02341
Opus 5.5 $0.00022 $0.00936
Sonnet 5.5 $0.00011 $0.00468
Haiku 4.5 $0.00005 $0.00234

Measured 2mo ago against content hash 6fa9d96a7b94, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

laravel-patterns 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.

Origin

This is a copy

97% identical to laravel-patterns — 5 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/laravel-patterns/SKILL.md · 417 lines

How it starts

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

Laravel Development Patterns

Production-grade Laravel architecture patterns for scalable, maintainable applications.

When to Use

  • Building Laravel web applications or APIs
  • Structuring controllers, services, and domain logic
  • Working with Eloquent models and relationships
  • Designing APIs with resources and pagination
  • Adding queues, events, caching, and background jobs

How It Works

  • Structure the app around clear boundaries (controllers -> services/actions -> models).
  • Use explicit bindings and scoped bindings to keep routing predictable; still enforce authorization for access control.
  • Favor typed models, casts, and scopes to keep domain logic consistent.
  • Keep IO-heavy work in queues and cache expensive reads.
  • Centralize config in config/* and keep environments explicit.

Examples

Project Structure

Use a conventional Laravel layout with clear layer boundaries (HTTP, services/actions, models).

Recommended Layout

app/
├── Actions/            # Single-purpose use cases
├── Console/
├── Events/
├── Exceptions/
├── Http/
│   ├── Controllers/
│   ├── Middleware/
│   ├── Requests/       # Form request validation
│   └── Resources/      # API resources
├── Jobs/
├── Models/
├── Policies/
├── Providers/
├── Services/           # Coordinating domain services
└── Support/
config/
database/
├── factories/
├── migrations/
└── seeders/
resources/
├── views/
└── lang/
routes/
├── api.php
├── web.php
└── console.php

Controllers -> Services -> Actions

Keep controllers thin. Put orchestration in services and single-purpose logic in actions.

final class CreateOrderAction
{
    public function __construct(private OrderRepository $orders) {}

    public function handle(CreateOrderData $data): Order
    {
        return $this->orders->create($data);
    }
}

final class OrdersController extends Controller
{
    public function __construct(private CreateOrderAction $createOrder) {}

    public function store(StoreOrderRequest $request): JsonResponse
    {
        $order = $this->createOrder->handle($request->toDto());

        return response()->json([
            'success' => true,
            'data' => OrderResource::make($order),
            'error' => null,
            'meta' => null,
        ], 201);
    }
}

Read the full file on GitHub · 417 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. 2mo ago First seen · 417 lines · 54 tokens per session scan A 6fa9d96a7b94

Subscribe to this mod's changes

laravel-patterns is a skill published in the GitHub repository gongyijie85/dsh-ecc (13 stars, last pushed 13d ago), licensed MIT. It adds 54 tokens to every session and 2,341 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 97% identical to laravel-patterns, differing in 5 lines, and is treated as a copy.

Related

laravel-patterns compared with skills from other repositories

laravel-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
laravel-patternsgongyijie85/dsh-eccSkill1313d agoMITA54Claude Code, Codex
manage-taskboardshengsheng90/DSH-taskboardSkill33029d agoApache-2.0A88Codex
mcp-integrationSivan757/dsh-agent-plugins-marketSkill235d agoMITB95Claude Code, Codex
supabasestagewise-io/stagewiseSkill6.8k3d agoAGPL-3.0A35Claude Code, Codex
deep-researchomagents/omagentsSkill361yesterdayMITB24Codex
playlet-wechat-feedredfox-data/redfox-community-dshSkill137d agoMITA269Claude Code, Codex
xiaohongshu-searchredfox-data/redfox-community-dshSkill137d agoMITA84Claude Code, Codex