
Laravel Verification
FreeAutomate checks for Laravel projects pre-deployment.
Free · Opens the source repo
What Laravel Verification does
The Laravel Verification skill provides a comprehensive pipeline for ensuring the integrity and readiness of Laravel projects before deployment. It automates a series of critical checks, including environment verifications, linting, static analysis, testing with coverage, security scans, and deployment readiness. By running this skill, developers can ensure that their code meets quality standards and is free from errors before merging changes or deploying to production.
This skill is particularly useful for developers working in teams, as it helps maintain a consistent quality assurance process across the codebase. It can be executed before pull requests, after significant refactoring, or as a final check before deploying to staging or production environments. Each phase of the pipeline builds upon the last, ensuring that any failures are caught early in the process, thereby reducing the risk of introducing bugs or vulnerabilities into the production environment.
The skill operates in a sequential manner, starting with environment checks to confirm that the necessary configurations are in place. It then proceeds to linting and static analysis to catch potential issues in the code. Following this, it runs tests and checks for code coverage, ensuring that the application behaves as expected. Security audits and database migration checks are performed next, followed by final preparations for deployment. This structured approach not only saves time but also enhances the reliability of the deployment process.
When to use it
Use this skill before opening pull requests, after significant code changes, and prior to deployment to ensure code quality and security.
When not to use it
This skill may not be suitable for projects not using Laravel or for quick, informal checks where a full pipeline is unnecessary.
What you can build with it
Pre-Pull Request Verification
Run the skill to ensure all checks pass before submitting a pull request, maintaining code quality.
Post-Refactor Checks
Execute the skill after significant changes to validate that the application still meets quality standards.
Deployment Readiness
Use the skill to confirm that all necessary checks are completed before deploying to production, reducing the risk of issues.
How to install Laravel Verification
View source1. Install with the skills CLI
npx skills add affaan-m/ecc/laravel-verification --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by affaan-mBucle de Verificación Laravel
Ejecutar antes de PRs, después de cambios importantes y antes del despliegue.
Cuándo Usar
- Antes de abrir un pull request para un proyecto Laravel
- Después de refactorizaciones importantes o actualizaciones de dependencias
- Verificación previa al despliegue para staging o producción
- Ejecutar el pipeline completo de lint -> prueba -> seguridad -> preparación para despliegue
Cómo Funciona
- Ejecutar las fases secuencialmente desde las verificaciones de entorno hasta la preparación para despliegue, de modo que cada capa construya sobre la anterior.
- Las verificaciones de entorno y Composer son requisitos previos para todo lo demás; detener inmediatamente si fallan.
- El linting/análisis estático debe estar limpio antes de ejecutar pruebas completas y cobertura.
- Las revisiones de seguridad y migraciones ocurren después de las pruebas para verificar el comportamiento antes de los pasos de datos o lanzamiento.
- La preparación de build/despliegue y las verificaciones de cola/scheduler son los últimos filtros; cualquier fallo bloquea el lanzamiento.
Fase 1: Verificaciones de Entorno
php -v
composer --version
php artisan --version
- Verificar que
.envesté presente y que las claves requeridas existan - Confirmar
APP_DEBUG=falsepara entornos de producción - Confirmar que
APP_ENVcoincida con el despliegue objetivo (production,staging)
Si se usa Laravel Sail localmente:
./vendor/bin/sail php -v
./vendor/bin/sail artisan --version
Fase 1.5: Composer y Autoload
composer validate
composer dump-autoload -o
Fase 2: Linting y Análisis Estático
vendor/bin/pint --test
vendor/bin/phpstan analyse
Si el proyecto usa Psalm en lugar de PHPStan:
vendor/bin/psalm
Fase 3: Pruebas y Cobertura
php artisan test
Cobertura (CI):
XDEBUG_MODE=coverage php artisan test --coverage
Ejemplo de pipeline CI (formato -> análisis estático -> pruebas):
vendor/bin/pint --test
vendor/bin/phpstan analyse
XDEBUG_MODE=coverage php artisan test --coverage
Fase 4: Seguridad y Verificación de Dependencias
composer audit
Fase 5: Base de Datos y Migraciones
php artisan migrate --pretend
php artisan migrate:status
- Revisar cuidadosamente las migraciones destructivas
- Asegurarse de que los nombres de archivo de migración sigan el formato
Y_m_d_His_*(ej.2025_03_14_154210_create_orders_table.php) y describan el cambio claramente - Asegurarse de que los rollbacks sean posibles
- Verificar los métodos
down()y evitar la pérdida irreversible de datos sin copias de seguridad explícitas
Fase 6: Preparación de Build y Despliegue
php artisan optimize:clear
php artisan config:cache
php artisan route:cache
php artisan view:cache
- Asegurarse de que los warmups de caché tengan éxito en la configuración de producción
- Verificar que los workers de cola y el scheduler estén configurados
- Confirmar que
storage/ybootstrap/cache/sean escribibles en el entorno objetivo
Fase 7: Verificaciones de Cola y Scheduler
php artisan schedule:list
php artisan queue:failed
Si se usa Horizon:
php artisan horizon:status
Si queue:monitor está disponible, usarlo para verificar el backlog sin procesar jobs:
php artisan queue:monitor default --max=100
Verificación activa (solo staging): despachar un job no-op a una cola dedicada y ejecutar un solo worker para procesarlo (asegurarse de que esté configurada una conexión de cola que no sea sync).
php artisan tinker --execute="dispatch((new App\\Jobs\\QueueHealthcheck())->onQueue('healthcheck'))"
php artisan queue:work --once --queue=healthcheck
Verificar que el job produjera el efecto secundario esperado (entrada de log, fila en tabla de healthcheck o métrica).
Ejecutar esto solo en entornos que no sean producción donde procesar un job de prueba sea seguro.
Ejemplos
Flujo mínimo:
php -v
composer --version
php artisan --version
composer validate
vendor/bin/pint --test
vendor/bin/phpstan analyse
php artisan test
composer audit
php artisan migrate --pretend
php artisan config:cache
php artisan queue:failed
Pipeline estilo CI:
composer validate
composer dump-autoload -o
vendor/bin/pint --test
vendor/bin/phpstan analyse
XDEBUG_MODE=coverage php artisan test --coverage
composer audit
php artisan migrate --pretend
php artisan optimize:clear
php artisan config:cache
php artisan route:cache
php artisan view:cache
php artisan schedule:list
Frequently asked questions about Laravel Verification
Similar skills
Turborepo
Optimized build system for JavaScript/TypeScript monorepos.
Azure Pipelines Validation
Streamline your Azure DevOps pipeline changes locally.
Azure Developer CLI
Streamline your Azure project workflows with best practices.
Azure Container Registry CLI
Manage Azure Container Registry resources with ease.
Aspire
Build and orchestrate polyglot distributed applications seamlessly.
Vercel CLI
Manage and deploy Vercel projects from the command line.
