Laravel Agent Rules — Development skill for Claude Code
Directory-scoped Laravel CLAUDE.md rules — mirrors laravel/laravel structure.
How to install Laravel Agent Rules
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open leek/laravel-agent-rules and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Laravel Agent Rules does
Directory-scoped Laravel CLAUDE.md rules — mirrors laravel/laravel structure.
Alternatives in Development
- Project-Level Skills — This directory contains skills for developing and maintaining the claude-mem project itself, not skills that a 39.3k ★
- Agent.Extras.Workdir Structure — File structure of working directory {{folder}} 19k ★
- Claude Plugins Official — Anthropic-managed directory of high quality Claude Code Plugins 14.9k ★
README
laravel-agent-rules
Directory-scoped agent rules for Laravel projects. Each `CLAUDE.md` lives next to the code it governs and mirrors the [laravel/laravel](https://github.com/laravel/laravel) skeleton. The root rules direct agents to shared conventions and any guidance outside the edited file's directory.
Requirements
- Laravel 12 or 13 (bootstrap
withMiddleware/withExceptions, attribute model wiring,casts()method, schedule inroutes/console.php). Laravel 12 requires PHP 8.2+; Laravel 13 requires PHP 8.3+. Version-specific examples are labeled; check the project's installed version before copying them. See Laravel release notes. - Pest for new tests (
tests/CLAUDE.md). PHPUnit-style assertions still work under Pest. - Optional package dirs — install rules only matter when the package is present:
app/Livewire/— Livewire 4app/Features/—laravel/pennant(skip banner in file)app/States/—spatie/laravel-model-states(skip banner in file)
- Companion rulesets (not in this repo): Filament →
filament-agent-rules.
Install
Use [apply-agent-rules](https://github.com/leek/apply-agent-rules) to drop the rules into a Laravel project:
# Preview what will be written
npx apply-agent-rules list leek/laravel-agent-rules --agents claude
# Install into the current project, interactive agent picker
npx apply-agent-rules apply leek/laravel-agent-rules
# Non-interactive (pick agents explicitly)
npx apply-agent-rules apply leek/laravel-agent-rules --agents claude,codex
# Pin to a release tag
npx apply-agent-rules apply leek/laravel-agent-rules@v0.18.1 --agents claude
# Re-pull later, preserving local edits and pruning removed files
npx apply-agent-rules update
Supported agents: `claude`, `codex`, `gemini`, `cursor`, `windsurf`, `cline`.
How install works
Every `CLAUDE.md` in this repo is the canonical source. The installer walks the tree and, for each `CLAUDE.m
Related Skills
Laravel Simplifier
Simplify Laravel application structure
Install Rules
Copy this package's PHP/Laravel rules and CLAUDE.md into the current project (marketplace install only)
Init Rules
Scaffold opt-in path-scoped nested CLAUDE.md rule files into the project to lazy-load per-area conventions whi
Rails Template
Opinionated, agent-native Rails template — the production Rails starter ZAR uses internally, packaged with a C
Compact Prepare
Flush what this session learned into the files that outlive it - AGENTS.md, CLAUDE.md, project-conventions, pa
Save Learnings To Docs
Save session learnings to the CHEAPEST tier that carries each one (hook → .claude/rules/ path-scoped → .claude
Related Agents
Gsd Mempalace Curator
Ship-time MemPalace curation — writes the session diary, proposes/creates cross-project tunnels, mirrors extra
Claude Md Reviewer
Reviews CLAUDE.md improvement proposals against the existing codebase and CLAUDE.md files, producing tightly s
Module Scaffolder
Use this agent when you need to scaffold a new Laravel module in the LaraDashboard project, including generati