# laravel-expert

A skill that makes Claude answer as a senior Laravel engineer: thin controllers, FormRequest validation, API Resources, queues and caching. Useful when you build or refactor a Laravel 10/11+ backend.

- skill · `type=skill` · Claude Code · 449 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/development/laravel-expert
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/laravel-expert

## What it does

The skill sets a role. The agent replies as a Senior Laravel Engineer, follows current framework standards and leaves legacy patterns alone unless you ask for them. Inside is a rule set covering architecture, routing, validation, Eloquent, API design, authentication, queues, caching and Blade. Business logic goes to services, validation to FormRequest classes, API output to Resources, authorization to Policies and Gates.

There is a separate list of anti-patterns: fat controllers, logic in routes, oversized service classes, blind mass assignment, hardcoded config values, duplicated logic across controllers. When writing code the skill asks for complete examples with namespace declarations, strict typing and return types. When reviewing, it wants structural problems named first, then Laravel-native fixes with the tradeoffs spelled out. Feature design follows a fixed outline: architecture overview, file structure, implementation, explanation, possible improvements.

The scope is Laravel 10/11+, so on an older project the advice may not match what your composer.json pins — worth checking the version before you accept the diff. The skill also tells the agent to prefer framework-native solutions over third-party packages, skip needless abstractions and not assume cloud infrastructure.

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill development/laravel-expert
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill laravel-expert -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/laravel-expert/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/laravel-expert/

### Codex

**Manually: put the files in place**
- File: `.agents/skills/laravel-expert/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

**Manually: put the files in place**
- File: `.cursor/skills/laravel-expert/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates laravel-expert
```

2. **Manually: put the files in place**
- File: `.github/skills/laravel-expert/SKILL.md`

### Gemini CLI

**Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/development/laravel-expert
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/laravel-expert/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/development/laravel-expert

## When to use it
- move business logic out of a fat controller into services
- design a REST API with Resources, pagination and status codes
- replace inline checks with FormRequest validation
- kill N+1 queries with eager loading and query scopes
- review Laravel code and get a refactor with reasoning

## Example prompts
- refactor this controller: pull the logic into a service and a FormRequest
- design the orders API with Resources and pagination
- check this code for N+1 queries and tell me what to fix

## Similar
- [laravel-patterns](https://affpapa.org/en/nevibecode/skills/laravel-patterns.md) — skill · 5100 installs
- [laravel-best-practices](https://affpapa.org/en/nevibecode/skills/laravel-best-practices.md) — skill · 2300 installs
- [laravel-development](https://affpapa.org/en/nevibecode/skills/laravel-development.md) — skill · 909 installs
- [laravel-specialist](https://affpapa.org/en/nevibecode/agents/laravel-specialist.md) — subagent · 418 installs
- [laravel-boost](https://affpapa.org/en/nevibecode/plugins/laravel-boost.md) — plugin · ★ 44635
- [Laravel Expert Agent](https://affpapa.org/en/nevibecode/agents/laravel-expert-agent.md) — subagent · ★ 40418

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 205 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
