laravel-simplifier
Simplifies and refines PHP / Laravel code for clarity, consistency, and maintainability
Summary
This skill helps you write cleaner, more maintainable PHP and Laravel code by automatically refactoring for clarity, consistency, and best practices.
- It analyzes your codebase and suggests improvements like modern syntax, proper naming conventions, and adherence to Laravel conventions.
Overview
Laravel's official collection of agent skills, available as plugins for Claude Code and Cursor.
Installation
Claude Code
/plugin marketplace add laravel/agent-skills
/plugin install laravel@laravel
/plugin install laravel-cloud@laravel
/plugin install laravel-nightwatch@laravelCursor
Search for Laravel in the Cursor plugin marketplace panel and install the plugins you need.
npx skills add
Install individual skills directly from this repository:
# Laravel Cloud
npx skills add https://github.com/laravel/agent-skills/tree/main/laravel-cloud/skills/deploying-laravel-cloud
# Laravel Nightwatch
npx skills add https://github.com/laravel/agent-skills/tree/main/laravel-nightwatch/skills/configure-nightwatch
# Starter Kit Upgrade
npx skills add https://github.com/laravel/agent-skills/tree/main/laravel/skills/starter-kit-upgradeUsage
Laravel invoke the agent after a coding session:
> Review recent changes using the laravel agentLaravel Cloud triggers automatically when you ask about deploying or managing Laravel Cloud resources:
> Deploy my app to Laravel Cloud
> Set up a database and cache for the staging environmentLaravel Nightwatch triggers when you ask about configuring Nightwatch:
> Configure Nightwatch sampling rates for production
> Set up PII redaction for NightwatchStarter Kit Upgrade triggers when you ask to pull upstream improvements into a project bootstrapped from a Laravel starter kit:
> Sync the latest toast notification feature from the Vue starter kit
> Pull the 2FA autofocus fix from my starter kit upstreamPlugins
Laravel
A bundle of Laravel-focused agents and skills.
`laravel-simplifier` agent — Reviews recently modified PHP / Laravel code and refines it for clarity, consistency, and maintainability without changing functionality.
- •Applies Laravel conventions and PSR-12 standards
- •Reduces unnecessary complexity and nesting
- •Improves naming and readability
- •Focuses on recently modified code by default
`starter-kit-upgrade` skill — Selectively pulls upstream improvements from a Laravel starter kit (vue-starter-kit, react-starter-kit, svelte-starter-kit, livewire-starter-kit) into a project bootstrapped from one.
- •Picks specific features (e.g. toast notifications, security fixes), not full version bumps
- •Applies one feature at a time on a dedicated branch, each as its own commit
- •Never auto-merges customized files or silently overwrites manifests / lockfiles
- •Re-runs your tests, typecheck, and build to verify behavior preservation
Laravel Cloud
A skill for deploying and managing applications on Laravel Cloud using the cloud CLI.
- •Guides deployment workflows (first deploy, existing apps, environment setup)
- •Manages infrastructure resources (databases, caches, domains, buckets)
- •Includes operational checklists for multi-step tasks
- •Follows the CRUD command patterns of the Cloud CLI
Laravel Nightwatch
A skill for configuring Laravel Nightwatch data collection, sampling rates, filtering rules, and redaction policies. Bundles the Nightwatch MCP server for browsing issues, viewing stack traces, updating statuses, and adding comments.
| Capability | Description |
|---|---|
| Setup & configuration | Guides Nightwatch setup in your application |
| Sampling & filtering | Manages data volume through sampling and filtering rules |
| PII redaction | Protects sensitive data with redaction policies |
| Event optimization | Optimizes event collection for production workloads |
Install & Usage
/plugin marketplace add <org/repo>Add the configuration to /plugin install laravel-simplifier@<marketplace>
/pluginUse Cases
Usage Examples
/laravel-simplifier review this controller and suggest improvements
Refactor the User model to use newer Laravel conventions
Simplify the query logic in the ReportController index method
Security Audits
Frequently Asked Questions
What is laravel-simplifier?
This skill helps you write cleaner, more maintainable PHP and Laravel code by automatically refactoring for clarity, consistency, and best practices. It analyzes your codebase and suggests improvements like modern syntax, proper naming conventions, and adherence to Laravel conventions.
How to install laravel-simplifier?
To install laravel-simplifier: add a marketplace (/plugin marketplace add <org/repo>), then add the config to /plugin install laravel-simplifier@<marketplace>. Finally, /plugin in Claude Code.
What is laravel-simplifier best for?
laravel-simplifier is a plugin categorized under General. Created by Taylor Otwell.
What can I use laravel-simplifier for?
laravel-simplifier is useful for: Refactor legacy PHP code to use modern Laravel syntax and helpers.; Standardize naming conventions across controllers, models, and routes.; Simplify complex Eloquent queries with cleaner relationships and scopes.; Remove redundant or deprecated code patterns in Laravel applications.; Improve code readability by applying PSR-12 and Laravel coding standards.; Optimize blade templates for better performance and maintainability..