Runs a full verification pipeline for Laravel projects: environment checks, code style, static analysis, tests with coverage, security audit, and deployment readiness.
How this skill is triggered — by the user, by Claude, or both
Slash command
/everything-claude-code:laravel-verificationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
在提交 PR、重大变更后和部署前运行。
在提交 PR、重大变更后和部署前运行。
php -v
composer --version
php artisan --version
.env 存在且必需的键已配置APP_DEBUG=falseAPP_ENV 与目标部署环境匹配(production、staging)如果本地使用 Laravel Sail:
./vendor/bin/sail php -v
./vendor/bin/sail artisan --version
composer validate
composer dump-autoload -o
vendor/bin/pint --test
vendor/bin/phpstan analyse
如果项目使用 Psalm 而非 PHPStan:
vendor/bin/psalm
php artisan test
覆盖率(CI):
XDEBUG_MODE=coverage php artisan test --coverage
CI 示例(格式化 -> 静态分析 -> 测试):
vendor/bin/pint --test
vendor/bin/phpstan analyse
XDEBUG_MODE=coverage php artisan test --coverage
composer audit
php artisan migrate --pretend
php artisan migrate:status
Y_m_d_His_* 格式(例如 2025_03_14_154210_create_orders_table.php)并清晰描述变更down() 方法,避免在没有显式备份的情况下造成不可逆的数据丢失php artisan optimize:clear
php artisan config:cache
php artisan route:cache
php artisan view:cache
storage/ 和 bootstrap/cache/ 在目标环境中可写php artisan schedule:list
php artisan queue:failed
如果使用 Horizon:
php artisan horizon:status
如果有 queue:monitor 可用,使用它检查积压而不处理任务:
php artisan queue:monitor default --max=100
主动验证(仅限 staging):向专用队列分发一个空操作任务,并运行单个工作者处理(确保配置了非 sync 的队列连接)。
php artisan tinker --execute="dispatch((new App\\Jobs\\QueueHealthcheck())->onQueue('healthcheck'))"
php artisan queue:work --once --queue=healthcheck
验证任务产生了预期的副作用(日志条目、健康检查表记录或指标)。
仅在处理测试任务安全的非生产环境中运行。
最小化流程:
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
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
npx claudepluginhub aaione/everything-claude-code-zhRuns Laravel verification pipeline: env/Composer checks, linting (Pint), static analysis (PHPStan), tests with coverage, security audits, migrations, deploy readiness.
Runs a multi-phase verification pipeline for Laravel projects: environment checks, Composer validation, linting (Pint), static analysis (PHPStan/Psalm), tests with coverage, security audit (Composer audit), migration review, build readiness (config/route/view cache), and queue/scheduler checks.
Runs quality gates for Laravel projects: Pint lint/fix, PHPStan/Psalm static analysis, tests, optional Insights, JS lint/types. Sail/non-Sail commands.