Agent skill

Laravel Idioms

by irahardianto in irahardianto/awesome-agv

Laravel framework patterns: Eloquent ORM relationships, N+1 query prevention, Form Request validation, Service layer architecture, and Pest/PHPUnit testing.

MITAuto-check passedBackend & APIs

Install Laravel Idioms

skills CLI
$ npx skills add irahardianto/awesome-agv --skill laravel-idioms -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install irahardianto/awesome-agv laravel-idioms --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/irahardianto/awesome-agv.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/laravel-idioms .claude/skills/laravel-idioms && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
laravel-idioms
GitHub stars
156
Token cost
~624 tokens
SKILL.md length
119 words
Files
1
Skills in repo
34
Repo updated
First seen
Licence
MIT

At a glance

Laravel framework patterns: Eloquent ORM relationships, N+1 query prevention, Form Request validation, Service layer architecture, and Pest/PHPUnit testing.

  • Works in 3 steps: Scopes for reusable queries → Eager loading to avoid N+1:… → Accessors/Mutators with Attribute cast…
  • Reviewing Laravel web apps and APIs
  • Calls composer
  • Tasks that involve Backend development

What it does

Laravel Idioms is an agent skill from irahardianto/awesome-agv. Laravel framework patterns: Eloquent ORM relationships, N+1 query prevention, Form Request validation, Service layer architecture, and Pest/PHPUnit testing. Use when building or reviewing Laravel web apps and APIs. Pair with php-idioms.

Its SKILL.md is about 620 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering Backend development. It works with Laravel and PHP. The repository describes itself as: Comprehensive sets of standards and practices designed to elevate the capabilities of AI coding agents. The licence is MIT.

When your agent uses it

  • Reviewing Laravel web apps and APIs
  • Tasks that involve Backend development

Example prompts

  • “/laravel-idioms”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Scopes for reusable queries
  2. Eager loading to avoid N+1: Task::with('user', 'tags')->get().
  3. Accessors/Mutators with Attribute cast (Laravel 9+).

What it can do on your machine

Read from SKILL.md and the folder at commit 9e997ba. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • composer

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Laravel Idioms loads about 624 tokens when it runs. Until then it costs about 63 tokens; SKILL.md has 119 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~63
When it runs · the whole SKILL.md, loaded when a task matches
~624

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from irahardianto/awesome-agv at commit 9e997ba, republished under its MIT licence (© irahardianto). 119 words, ~624 tokens.

Download SKILL.mdSave it as .claude/skills/laravel-idioms/SKILL.md (or your agent's skills folder).
name
laravel-idioms
description
Laravel framework patterns: Eloquent ORM relationships, N+1 query prevention, Form Request validation, Service layer architecture, and Pest/PHPUnit testing. Use when building or reviewing Laravel web apps and APIs. Pair with php-idioms.

Laravel Idioms and Patterns

Laravel rewards convention, Eloquent, and expressive syntax. Idiomatic Laravel = DRY, service-oriented, well-tested.

Scope: Laravel-specific patterns. For PHP: @.agents/skills/php-idioms/SKILL.md.

Eloquent
  1. Scopes for reusable queries:

    php
    class Task extends Model {
        public function scopeActive(Builder $query): Builder {
            return $query->where('status', 'active');
        }
    }
    // Usage: Task::active()->paginate(25);
  2. Eager loading to avoid N+1: Task::with('user', 'tags')->get().

  3. Accessors/Mutators with Attribute cast (Laravel 9+).

Service Layer
  1. Services for business logic — controllers stay thin:
    php
    class TaskService {
        public function __construct(
            private readonly TaskRepository $repository,
        ) {}
    
        public function create(CreateTaskRequest $request): Task { ... }
    }
Validation
  1. Form Requests for validation — never validate in controllers:
    php
    class CreateTaskRequest extends FormRequest {
        public function rules(): array {
            return [
                'title' => ['required', 'string', 'max:200'],
                'priority' => ['required', Rule::enum(Priority::class)],
            ];
        }
    }
Testing

For universal testing principles, see .agents/rules/testing-strategy.md. Below: language-specific patterns only.

  1. Pest (preferred) or PHPUnit:

    php
    test('creating a task returns 201', function () {
        $response = $this->postJson('/api/tasks', ['title' => 'Test', 'priority' => 'high']);
        $response->assertCreated();
        $this->assertDatabaseHas('tasks', ['title' => 'Test']);
    });
  2. Factories for test data. RefreshDatabase trait for isolation.

Formatting and Static Analysis
ToolPurposeCommand
Laravel PintFormatting./vendor/bin/pint
PHPStan + LarastanStatic analysisphpstan analyse
composer auditCVE scanningcomposer audit
  • PHP Idioms @.agents/skills/php-idioms/SKILL.md
  • Database Design Principles @.agents/rules/database-design-principles.md

© irahardianto, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/laravel-idioms of irahardianto/awesome-agv.

Open the folder on GitHubat commit 9e997ba

Compare with similar skills

Laravel Idioms next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Laravel Idioms compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Laravel Idioms this skillirahardianto/awesome-agv156—~624Automated safety check: PassMIT
Configuring Horizoncoollabsio/coolify63k4 repos~898Automated safety check: PassMIT
Fortify Developmentcoollabsio/coolify63k4 repos~1.9kAutomated safety check: PassMIT
Laravel Best Practicesanonaddy/anonaddy4.9k13 repos~1.2kAutomated safety check: PassMIT
Geoflowyaojingang/GEOFlow3.8k—~722Automated safety check: PassAGPL-3.0
Livewire Developmentcoollabsio/coolify63k—~964Automated safety check: PassMIT

Similar skills

  • Configuring Horizon

    coollabsio/coolify

    A skill your agent uses whenever the user mentions Horizon by name in a Laravel context.

    63k GitHub starsUsed in 4 repos~898 tokens
    Backend & APIsAuto-check passed
  • Fortify Development

    coollabsio/coolify

    ACTIVATE when the user works on authentication in Laravel. An agent skill from coollabsio/coolify.

    63k GitHub starsUsed in 4 repos~1.9k tokens
    Backend & APIsAuto-check passed
  • Laravel Best Practices

    anonaddy/anonaddy

    Apply this skill whenever writing, reviewing, or refactoring Laravel PHP code.

    4.9k GitHub starsUsed in 13 repos~1.2k tokens
    Backend & APIsAuto-check passed
  • Geoflow

    yaojingang/GEOFlow

    Operate/develop GEOFlow CLI/Laravel/admin/API, topics/专题 and topic tasks, theme libraries/replication, sites/leads/Agent, channel sync and legacy yao-geoflow-cli/design/template migration.

    3.8k GitHub stars~722 tokensUpdated today
    Backend & APIsAuto-check passed
  • Livewire Development

    coollabsio/coolify

    A skill your agent uses for any task or question involving Livewire.

    63k GitHub stars~964 tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Laravel Specialist

    Jeffallan/claude-skills

    Builds Laravel 10+ applications with Eloquent models, Sanctum authentication, Horizon queues, API resources and Livewire components, tested with Pest or PHPUnit.

    12k GitHub starsUsed in 1 repo~2.1k tokens
    Backend & APIsAuto-check passed

More from irahardianto/awesome-agv

All 34 skills in this repo
  • Distinctive Frontend Design Builder

    irahardianto/awesome-agv

    Commits to one bold aesthetic direction, sets up a CSS token system for it, then builds the interface in Vue or plain HTML using those tokens.

    156 GitHub stars~2.4k tokensUpdated 6 days ago
    Auto-check passed
  • Perf Optimization

    irahardianto/awesome-agv

    Profile-driven performance optimization protocol. An agent skill from irahardianto/awesome-agv.

    156 GitHub stars~4.3k tokensUpdated 6 days ago
    Auto-check passed
  • Angular Idioms and Patterns

    irahardianto/awesome-agv

    Coding conventions for Angular 19 and later: standalone components, signals, OnPush change detection, lazy routes and where RxJS still belongs.

    156 GitHub stars~3.8k tokensUpdated 6 days ago
    Auto-check passed
  • CI/CD Pipeline Principles

    irahardianto/awesome-agv

    Rules for designing CI/CD pipelines in layers: universal lint, test and scan stages, container builds with SBOM attestation, and GitOps for orchestrated deployments.

    156 GitHub stars~2.7k tokensUpdated 6 days ago
    Auto-check: notes
  • Hono Idioms

    irahardianto/awesome-agv

    Hono lightweight web framework patterns: type-safe route handlers, middleware composition, Zod validation, and RPC clients for Cloudflare Workers, Node, or Bun.

    156 GitHub stars~3k tokensUpdated 6 days ago
    Auto-check passed
  • Mobile Testing

    irahardianto/awesome-agv

    Mobile E2E testing patterns — Flutter integrationtest, Patrol, Maestro, golden testing, device matrix, and test data management.

    156 GitHub stars~1.8k tokensUpdated 6 days ago
    Auto-check: notes

Works with

Categories

Questions about Laravel Idioms

What does Laravel Idioms do?

Laravel framework patterns: Eloquent ORM relationships, N+1 query prevention, Form Request validation, Service layer architecture, and Pest/PHPUnit testing. Laravel Idioms is an agent skill from irahardianto/awesome-agv. Laravel framework patterns: Eloquent ORM relationships, N+1 query prevention, Form Request validation, Service layer architecture, and Pest/PHPUnit testing.

When should I use Laravel Idioms?

Laravel Idioms fits situations like: reviewing Laravel web apps and APIs; tasks that involve Backend development.

How do I install Laravel Idioms in Claude Code?

Run `npx skills add irahardianto/awesome-agv --skill laravel-idioms -a claude-code`. Or copy the skill folder (.agents/skills/laravel-idioms in irahardianto/awesome-agv) into .claude/skills/laravel-idioms in your project. Claude Code loads it when a task matches its description.

How do I install Laravel Idioms in Codex?

Run `npx skills add irahardianto/awesome-agv --skill laravel-idioms -a codex`. Or copy the skill folder (.agents/skills/laravel-idioms in irahardianto/awesome-agv) into .agents/skills/laravel-idioms in your project. Codex loads it when a task matches its description.

Can I use Laravel Idioms in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add irahardianto/awesome-agv --skill laravel-idioms -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/laravel-idioms, .gemini/skills/laravel-idioms, .github/skills/laravel-idioms and .opencode/skills/laravel-idioms in your project.

What does Laravel Idioms need to run?

Going by SKILL.md and its folder, Laravel Idioms needs the command-line tools its instructions call (composer).

Does Laravel Idioms access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Laravel Idioms safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Laravel Idioms use?

Laravel Idioms is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Laravel Idioms use?

About 624 tokens (SKILL.md is roughly 2.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Laravel Idioms?

Skills that share tags, products or a category with Laravel Idioms: Configuring Horizon (coollabsio/coolify, 63k stars), Fortify Development (coollabsio/coolify, 63k stars), Laravel Best Practices (anonaddy/anonaddy, 4.9k stars) and Geoflow (yaojingang/GEOFlow, 3.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Laravel Idioms?

irahardianto (a GitHub user) maintains it in irahardianto/awesome-agv, which has 156 GitHub stars. The repository holds 34 skills in this directory. The repository was last updated on October 5, 2026.

Source: irahardianto/awesome-agv on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.