php-laravel

php-laravel is a skill for Claude Code, Codex from j4flmao/agent-skills. It costs 87 tokens per session (4,034 once invoked), scanned A, original, MIT.

A coding guide for Laravel, a PHP framework for building web applications. It covers controllers, database models, validation, service classes, queues, and tests.

In plain words
What is it for?
Use it when building or changing Laravel applications, including Eloquent models, controllers, form requests, service classes, queue jobs, seeders, and tests.
Why use it?
It keeps application logic organized and helps avoid slow database access, oversized controllers, and inconsistent validation or background-job code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it when building or changing Laravel applications, including Eloquent models, controllers, form requests, service classes, queue jobs, seeders, and tests.

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

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 php-laravel

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/laravel"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/laravel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,034 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00087 $0.04034
Opus 5 $0.00044 $0.02017
Sonnet 5 $0.00017 $0.00807
Haiku 4.5 $0.00009 $0.00403

Measured 11d ago against content hash 677a06a72980, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

php-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 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.

skills/backend/php/laravel/SKILL.md · 589 lines

How it starts

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

Laravel

Purpose

Build Laravel applications with clean MVC structure, service layer separation, Eloquent ORM best practices, form request validation, queue jobs, and comprehensive testing.

Agent Protocol

Trigger

User request includes: Laravel structure, Laravel app, Eloquent, Laravel service, Laravel validation, Laravel queue, Laravel testing, Laravel job, Laravel seeder.

Input Context

  • Laravel version (10.x, 11.x)
  • PHP version (8.1+)
  • Database (MySQL, PostgreSQL, SQLite)
  • Features (Auth, Queues, Broadcasting, Notifications, Cashier)

Output Artifact

Controller structure, service class, Eloquent model, form request, job class, seeder, test.

Response Format

Produce artifact directly. No preamble, no postamble, no explanations.

Completion Criteria

  • Controller delegates to service layer
  • Eloquent model with scopes, relations, casts
  • Form request class with validation rules
  • Service class with business logic
  • Queue job with typed properties
  • Feature/unit tests for critical paths

Max Response Length

4096 tokens

Architecture Decision Trees

Service Layer vs Repository vs Active Record

Criterion Service Layer Repository Active Record (Vanilla)
Business logic location Service class Repository class Model methods
Query abstraction Service delegates to model Repository encapsulates Direct in controllers
Testability Easy (mock service) Moderate (mock repo) Hard (Eloquent facade)
Complexity Moderate High (extra layer) Low
Laravel fit Natural (dedicated directories) Possible but uncommon Default pattern

Decision: Business logic outside controllers → Service Layer (most common in production Laravel apps). Need query abstraction → Repository. Simple CRUD → Active Record in controllers is acceptable.

Form Request vs Controller Validation

Criterion Form Request Controller validate() Manual validation
Reusability Across controllers/actions Per method Per method
Authorization Built-in authorize() Manual in controller Manual
Naming StoreUserRequest Inline array Inline array
Logic complexity Custom rules, after hooks Simple rules Simple rules

Read the full file on GitHub · 589 lines

Files

What ships with it

6 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.

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. 11d ago First seen · 589 lines · 87 tokens per session scan A 677a06a72980

Subscribe to this mod's changes

php-laravel is a skill published in the GitHub repository j4flmao/agent-skills (22 stars, last pushed 4d ago), licensed MIT. It adds 87 tokens to every session and 4,034 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-08-30.

Related

Other skills, from other repositories

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

create-powergrid-plugin

Create a complete PowerGrid plugin from scratch, including PHP class, Column macro, Blade view, Alpine.js component, and registration.

Power-Components/livewire-powergrid · 31 tokens

owl-admin-devtools-generator

A development guide for Owl Admin, a Laravel-based administration system, covering its code generator, API templates, relationships, and visual pages.

slowlyo/owl-admin · 82 tokens

Laravel Dusk Testing

Expert-level Laravel Dusk browser testing skill for PHP/Laravel applications. Covers Chrome-based E2E testing, browser assertions, Page Objects, component testing, authentication helpers, and database integration.

PramodDutta/qaskills · 44 tokens

laravel

Use when building or extending a Laravel 11/12 app — Eloquent models, migrations and relationships, routing with controllers and Form Requests, queues and background jobs, framework-native security (validation, mass-assignment, policies, signed URLs, rate limiting), and Pest/PHPUnit feature tests. NOT pure PHP…

ericrisco/rsc-harness · 76 tokens

php-expert

Expert-level PHP development with PHP 8+, Laravel, Composer, and modern best practices. Use when the user mentions Laravel, Composer, Symfony, PHPUnit, or PSR standards, or when the task involves PHP 8+ Features, Object-Oriented PHP, Modern PHP, or Constructor Property Promotion.

personamanagmentlayer/pcl · 64 tokens