用于 Laravel 项目的环境检查、测试、安全扫描与发布验收
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "laravel-verification" 技能: 1. 下载 https://raw.githubusercontent.com/affaan-m/ECC/main/skills/laravel-verification/SKILL.md 2. 保存为 ~/.claude/skills/laravel-verification/SKILL.md 3. 装好后重载技能,告诉我可以用了
请为这个 Laravel 项目执行发布前校验流程:检查 .env 与配置缓存状态,运行代码格式检查、静态分析、测试与覆盖率、安全扫描,并输出是否具备上线条件及修复建议。
一份发布验收报告,包含各检查项结果、失败原因、风险等级和上线建议。
我的 Laravel CI 流水线失败了,请按验证顺序排查:先检查环境变量和依赖,再看 lint、静态分析、测试覆盖率和安全扫描日志,帮我定位根因并给出修复步骤。
按优先级整理的问题定位结果,并附带可执行的修复清单。
请基于 Laravel 项目最佳实践,帮我设计一套团队统一的验证清单,覆盖本地开发、提交前检查、CI 流程、安全扫描和部署前验收,并说明每一步的命令与通过标准。
一套结构清晰的 Laravel 校验规范,可直接用于团队流程或 CI 文档。
Run before PRs, after major changes, and pre-deploy.
php -v
composer --version
php artisan --version
.env is present and required keys existAPP_DEBUG=false for production environmentsAPP_ENV matches the target deployment (production, staging)If using Laravel Sail locally:
./vendor/bin/sail php -v
./vendor/bin/sail artisan --version
composer validate
composer dump-autoload -o
vendor/bin/pint --test
vendor/bin/phpstan analyse
If your project uses Psalm instead of PHPStan:
vendor/bin/psalm
php artisan test
Coverage (CI):
XDEBUG_MODE=coverage php artisan test --coverage
CI example (format -> static analysis -> tests):
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_* (e.g., 2025_03_14_154210_create_orders_table.php) and describe the change clearlydown() methods and avoid irreversible data loss without explicit backupsphp artisan optimize:clear
php artisan config:cache
php artisan route:cache
php artisan view:cache
storage/ and bootstrap/cache/ are writable in the target environmentphp artisan schedule:list
php artisan queue:failed
If Horizon is used:
php artisan horizon:status
If queue:monitor is available, use it to check backlog without processing jobs:
php artisan queue:monitor default --max=100
Active verification (staging only): dispatch a no-op job to a dedicated queue and run a single worker to process it (ensure a non-sync queue connection is configured).
php artisan tinker --execute="dispatch((new App\\Jobs\\QueueHealthcheck())->onQueue('healthcheck'))"
php artisan queue:work --once --queue=healthcheck
Verify the job produced the expected side effect (log entry, healthcheck table row, or metric).
Only run this on non-production environments where processing a test job is safe.
Minimal flow:
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-style pipeline:
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
…
帮助开发者为代码代理配置性能优化、安全防护与研究优先工作流。
提供数据库迁移、回滚与零停机发布的最佳实践指导,适用于多种 ORM 与 SQL 数据库。
通过双评审智能体对结果进行对抗式校验,提升输出发布前的可靠性
帮助你掌握地道 Rust 模式、所有权与并发实践,编写安全高性能应用。
基于 C++ Core Guidelines 编写、审查并重构更安全现代的 C++ 代码。
为 Claude Code 会话提供系统化校验流程,帮助检查结果正确性与质量。
为 Django 项目执行发布前校验流程,涵盖迁移、测试、安全与部署检查。
为 Spring Boot 项目执行构建、测试、安全扫描与变更审查的发布前校验流程
为 Spring Boot 项目执行构建、测试、扫描与变更复核的发布前验证流程
为 Quarkus 项目执行发布前验证闭环,涵盖构建、测试、扫描与差异审查。
为 Quarkus 项目执行构建、测试、安全扫描与发布前验证闭环
帮助你完成 Quarkus 项目的构建、测试、安全扫描与发布前验证闭环