LaraClaude
A comprehensive Laravel toolkit plugin for Claude Code. 27 specialized skills to analyze, debug, scaffold, and optimize Laravel applications directly from your terminal.
This is me
Installation
Requires Claude Code installed.
Database & Migrations
/lc:consolidate-migrations
Analyze and consolidate fragmented migration files. When your project accumulates hundreds of small migrations (add column, modify column, rename...), this skill merges them into clean, optimized files.
/lc:check-foreign-keys
Detect broken, orphaned, or missing foreign key constraints across your migrations and models.
/lc:migration-fresh-test
Run migrate:fresh in your Docker container and get detailed error analysis with fix suggestions.
Models & Queries
/lc:analyze-model
Deep analysis of any Eloquent model: relationships, scopes, casts, fillable, observers, keepers, actions, and potential issues.
/lc:find-n-plus-one
Detect N+1 query problems in Blade views, Livewire components, and controllers. Suggests the exact with() statement needed.
/lc:orphaned-records
Find database records where the parent (foreign key) no longer exists.
/lc:unused-columns
Detect database columns that are never referenced anywhere in the codebase.
Security & Performance
/lc:security-audit
Detect common Laravel security vulnerabilities: SQL injection, XSS, mass assignment, exposed secrets.
/lc:slow-queries
Detect queries without indexes, queries in loops, and unbounded selects.
/lc:cache-opportunities
Detect repeated queries and computations that should be cached.
Livewire & Blade
/lc:livewire-audit
Detect common Livewire/Volt problems: unserializable properties, missing wire:key, orphaned events, re-render issues.
/lc:livewire-optimize
Detect and fix Livewire performance issues: heavy renders, excessive queries, unnecessary reactivity.
/lc:blade-audit
Detect hardcoded text without @text(), duplicate CSS classes, unused Blade components, and accessibility issues.
Scaffolding
/lc:volt-component
Generate a Livewire Volt single-file component following your project's conventions.
/lc:generate-action
Create a Laractions action class with proper boilerplate and register it in the model.
/lc:extract-action
Extract business logic from a controller or Livewire component method into a Laractions Action class.
/lc:generate-modal
Generate a modal component using the project's x-modal pattern with Livewire integration.
/lc:generate-table
Generate a table component with filters, sorting, and infinite scroll.
/lc:generate-crud
Generate complete CRUD scaffolding: migration, model, controller, routes, views (index + create/edit modal).
Testing
/lc:generate-test
Generate feature/unit tests for a model, controller, action, or component by analyzing its code.
/lc:test-coverage
Analyze which models, controllers, and actions have tests and which don't.
Code Quality
/lc:dead-code
Find unused classes, methods, routes, views, and imports.
Debug
/lc:analyze-error
Paste a Laravel stacktrace and get root cause analysis with a specific fix. Parses the stacktrace, reads the relevant source files, identifies the root cause (not just the symptom), and provides a specific code fix.
Documentation
/lc:api-docs
Generate API documentation from routes, controllers, and form requests.
/lc:model-diagram
Generate an ER diagram of Eloquent models in Mermaid format.
DevOps
/lc:docker-check
Verify docker-compose.yml, Dockerfile, and .env are properly synchronized.
/lc:deploy-checklist
Verify the project is production-ready with a comprehensive checklist.
Requirements
- Claude Code
- A Laravel project (8+, 9+, 10+, 11+, 12+, 13+)
- Docker (optional, for migration-fresh-test and orphaned-records)
Sponsors
MIT License. View on GitHub