laravel

laravel is a skill for Claude Code, Codex from kouroshez/coding-os. It costs 89 tokens per session (537 once invoked), scanned A, original, Apache-2.0.

Project guidance for building Laravel applications in PHP, including web routes, controllers, database models, validation, middleware, and tests.

In plain words
What is it for?
Use it when changing Laravel endpoints, controllers, services, Eloquent models, form validation, middleware, or tests.
Why use it?
It prevents business rules and error handling from being scattered across controllers and requests. It also helps validate incoming data and avoid unsafe database updates.

Skill for Claude CodeCodex

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

Good fit Use it when changing Laravel endpoints, controllers, services, Eloquent models, form validation, middleware, or tests.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kouroshez/coding-os/laravel"><img src="https://agentmods.dev/badge/skills/kouroshez/coding-os/laravel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 537 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.00089 $0.00537
Opus 5 $0.00044 $0.00269
Sonnet 5 $0.00018 $0.00107
Haiku 4.5 $0.00009 $0.00054

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

Security

Grade A, and why

laravel 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 5d 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.

src/templates/laravel/skills/laravel/SKILL.md · 57 lines

What it actually says

REQUIRED BACKGROUND: You MUST also follow the core php skill (language idioms, typing, Composer) and clean-code. This skill adds Laravel-specific patterns on top.

laravel

Layer contract (matches structure.tree)

Layer May import Never
Http/Controllers/ services, Form Requests Eloquent queries, other controllers
Services/ models, other services Request/Response
Models/ the query builder services, controllers
Exceptions/Handler.php building responses anywhere else

Services stay framework-light so they are unit-testable and a delivery swap (HTTP → queue job → console) is a controller-layer-only change.

Controllers (thin)

  • Type-hint a Form Request to validate; the controller receives validated data.
  • Call ONE service method, return the value (Laravel serializes). No response envelope by hand, no try/catch for error shaping.

Validation

  • Every write endpoint has a Form Request; reject fail-closed. Raw $request->all() never crosses into a service.

Eloquent

  • $fillable/$guarded on every model (mass-assignment safety).
  • Eager-load relations (with()); a query inside a loop is an N+1 finding.
  • Queries live in models/services, never in controllers.

Error handling

  • ONE shaper: app/Exceptions/Handler.php returns the RFC 9457 problem shape (docs/api-contracts/error-format.md). 5xx logs full detail; the client never sees a stack trace.

Testing

  • Services: unit tests per public method. Routes: feature tests (happy + error).
  • DB tests use a disposable sqlite/in-memory connection; never the dev database.
Files

What ships with it

1 file 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.

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. 5d ago First seen · 57 lines · 89 tokens per session scan A a75f2a7b2374

Subscribe to this mod's changes

laravel is a skill published in the GitHub repository kouroshez/coding-os (6 stars, last pushed yesterday), licensed Apache-2.0. It adds 89 tokens to every session and 537 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

mvc-expert

Expert guidelines to refactor legacy PHP codebases into clean, modern, and scalable MVC-structured projects / Pedoman ahli untuk merefaktor codebase PHP lama menjadi proyek terstruktur MVC yang bersih, modern, dan skalabel.

roedyrustam/vibes-plug · 51 tokens

php-form-mailer

Wire any HTML form to a two-email PHP system. Generates a complete PHP handler that sends a structured notification email to the site owner and a branded HTML confirmation to the person who submitted, updates the form action and JS handler with a mailto fallback, then tests the live endpoint with curl. Works on any…

jqaisystems/jqai-ai-skills · 86 tokens

Cursor rules for Drupal 11 development

Skill "Cursor rules for Drupal 11 development" from AmariahAK/atlarix-skills, covering cursor rules for drupal 11 development, when to use this skill and source.

AmariahAK/atlarix-skills · 7 tokens

Cursor rules for Laravel development with PHP 8

Cursor rules for Laravel development with PHP 8.3 integration.

AmariahAK/atlarix-skills · 9 tokens

PHP Patterns

Use this skill when working in modern PHP (8+) codebases and you want predictable structure, safe IO boundaries, and maintainable application/service design.

AmariahAK/atlarix-skills · 2 tokens

laravel-patterns

Laravel architecture patterns, routing/controllers, Eloquent ORM, service layers, queues, events, caching, and API resources for production apps. Use when building or reviewing Laravel apps — controllers, Eloquent, service layers, queues, or API resources.

userInner/SKILLS · 54 tokens