BeClaude

laravel-simplifier

547Community RegistryGeneralby Taylor Otwell

Simplifies and refines PHP / Laravel code for clarity, consistency, and maintainability

First seen 4/17/2026

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

code
/plugin marketplace add laravel/agent-skills
/plugin install laravel@laravel
/plugin install laravel-cloud@laravel
/plugin install laravel-nightwatch@laravel

Cursor

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:

sh
# 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-upgrade

Usage

Laravel invoke the agent after a coding session:

code
> Review recent changes using the laravel agent

Laravel Cloud triggers automatically when you ask about deploying or managing Laravel Cloud resources:

code
> Deploy my app to Laravel Cloud
> Set up a database and cache for the staging environment

Laravel Nightwatch triggers when you ask about configuring Nightwatch:

code
> Configure Nightwatch sampling rates for production
> Set up PII redaction for Nightwatch

Starter Kit Upgrade triggers when you ask to pull upstream improvements into a project bootstrapped from a Laravel starter kit:

code
> Sync the latest toast notification feature from the Vue starter kit
> Pull the 2FA autofocus fix from my starter kit upstream

Plugins

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.

CapabilityDescription
Setup & configurationGuides Nightwatch setup in your application
Sampling & filteringManages data volume through sampling and filtering rules
PII redactionProtects sensitive data with redaction policies
Event optimizationOptimizes event collection for production workloads

Install & Usage

1
Add a marketplace
/plugin marketplace add <org/repo>
2
Install the plugin

Add the configuration to /plugin install laravel-simplifier@<marketplace>

3
Manage with /plugin
/plugin

Use Cases

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.

Usage Examples

1

/laravel-simplifier review this controller and suggest improvements

2

Refactor the User model to use newer Laravel conventions

3

Simplify the query logic in the ReportController index method

View source on GitHub

Security Audits

LicenseUnknownSourceWarnRepositoryPass

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