affaan-m/ECC

laravel-verification

Verification loop for Laravel projects: env checks, linting, static analysis, tests with coverage, security scans, and deployment readiness.

63Collecting
See how to use itView GitHub source
npx skills add https://github.com/affaan-m/ECC --skill "docs/zh-CN/skills/laravel-verification"
Automated source guide

Source checked Jul 28, 2026·Refresh due Oct 26, 2026

Reorganized from the pinned upstream SKILL.md

Turn laravel-verification's source instructions into a guide you can follow

According to the pinned SKILL.md from affaan-m/ECC: 在发起 PR 前、进行重大更改后以及部署前运行。

npx skills add https://github.com/affaan-m/ECC --skill "docs/zh-CN/skills/laravel-verification"
Check the pinned source

Best fit

  • Verification loop for Laravel projects: env checks, linting, static analysis, tests with coverage, security scans, and deployment readiness.

Bring this context

  • A concrete task that matches the documented purpose of laravel-verification.
  • The files, examples, or context the task depends on.
  • Your constraints, target environment, and definition of done.

Expected outputs

  • A result that follows the pinned laravel-verification instructions.
  • A concise record of assumptions, inputs used, and unresolved questions.
  • A final check against the source workflow and relevant permission signals.

Key source sections

Read laravel-verification through these 5 source sections

Sections are extracted automatically from the pinned SKILL.md and link back to the source.

01

使用时机

在为一个 Laravel 项目开启拉取请求之前 在重大重构或依赖升级之后 为预生产或生产环境进行部署前验证 运行完整的 代码检查 - 测试 - 安全检查 - 部署就绪 流水线

SKILL.md · 使用时机
在为一个 Laravel 项目开启拉取请求之前在重大重构或依赖升级之后为预生产或生产环境进行部署前验证
02

工作原理

按顺序运行从环境检查到部署就绪的各个阶段,每一层都建立在前一层的基础上。 环境和 Composer 检查是所有其他步骤的关卡;如果它们失败,立即停止。 代码检查/静态分析应在运行完整测试和覆盖率检查前确保通过。 安全性和迁移审查在测试之后进行,以便在涉及数据或发布步骤之前验证行为。 构建/部署就绪以及队列/调度器检查是最后的关卡;任何失败都会阻止发布。

SKILL.md · 工作原理
按顺序运行从环境检查到部署就绪的各个阶段,每一层都建立在前一层的基础上。环境和 Composer 检查是所有其他步骤的关卡;如果它们失败,立即停止。代码检查/静态分析应在运行完整测试和覆盖率检查前确保通过。
03

第一阶段:环境检查

验证 .env 文件存在且包含必需的键 确认生产环境已设置 APPDEBUG=false 确认 APPENV 与目标部署环境匹配(production、staging)

SKILL.md · 第一阶段:环境检查
验证 .env 文件存在且包含必需的键确认生产环境已设置 APPDEBUG=false确认 APPENV 与目标部署环境匹配(production、staging)
04

第一阶段补充:Composer 和自动加载

Review the “第一阶段补充:Composer 和自动加载” section in the pinned source before continuing.

SKILL.md · 第一阶段补充:Composer 和自动加载
Review and apply the “第一阶段补充:Composer 和自动加载” source section.

SkillSignal prompt templates

Provide the task, context, and acceptance criteria

These prompts were written by SkillSignal from the source structure; they are not upstream text.

Task-start prompt

Confirm source fit, inputs, and outputs before acting.

Use laravel-verification to help me with: [specific task]. Context: [files, data, or background]. Constraints: [environment, scope, and prohibited actions]. Before acting, check the pinned SKILL.md and explain which sections apply, what inputs are still missing, and what you will deliver.

Source-guided execution

Make the Agent explicitly follow the key extracted sections.

Apply the pinned laravel-verification source to [task]. Pay particular attention to these source sections: “使用时机”, “工作原理”, “第一阶段:环境检查”, “第一阶段补充:Composer 和自动加载”, “第二阶段:代码检查和静态分析”. Preserve the important decision at each step. Mark facts not covered by the source as “needs confirmation” instead of inventing them. Then verify the result against my acceptance criteria: [criteria].

Result-review prompt

Check omissions, permissions, and source drift before delivery.

Review the current laravel-verification result: (1) does it satisfy the original task; (2) were any applicable steps or limits in the pinned SKILL.md missed; (3) did it perform any unauthorized file, command, network, or data action; and (4) which conclusions remain unverified? List issues first, then fix only what the source or user authorization supports.

Output checklist

Verify each item before delivery

The task matches the purpose documented in the SKILL.md.

The source section “使用时机” has been checked.

The source section “工作原理” has been checked.

The source section “第一阶段:环境检查” has been checked.

The source section “第一阶段补充:Composer 和自动加载” has been checked.

Inputs, constraints, and acceptance criteria are explicit.

Unverified facts, compatibility, and outcome claims are clearly marked.

Any file, command, network, or data action has been reviewed.

Choose a different workflow

When another Skill is the better fit

FAQ

What does laravel-verification do?

在发起 PR 前、进行重大更改后以及部署前运行。

How do I start using laravel-verification?

The catalog detected this source-specific install command: npx skills add https://github.com/affaan-m/ECC --skill "docs/zh-CN/skills/laravel-verification". Inspect the command and pinned source before running it.

Which Agent platforms does it declare?

No dedicated Agent platform is declared in the pinned source record.

Repository stars
234,327
Repository forks
35,711
Quality
63/100
Source repository last pushed

Quality breakdown

Based on traceable docs and repository signals; stars are not treated as quality.

63/100
Documentation21/30
Specificity10/25
Maintenance20/20
Trust signals12/25

Compare before choosing

Related Agent Skills and source variants

These links are selected from shared tasks, functions, stacks, platforms, and same-name variants. Compare the source owner, documentation, permissions, and maintenance signals.

laravel-verification by affaan-m

Verification loop for Laravel projects: env checks, linting, static analysis, tests with coverage, security scans, and deployment readiness.

laravel-verification by affaan-m

Verification loop for Laravel projects: env checks, linting, static analysis, tests with coverage, security scans, and deployment readiness.

geofeed-tuner by github

Use this skill whenever the user mentions IP geolocation feeds, RFC 8805, geofeeds, or wants help creating, tuning, validating, or publishing a self-published IP geolocation feed in CSV format. Intended user audience is a network operator, ISP, mobile carrier, cloud provider, hosting company, IXP, or satellite provider asking about IP geolocation accuracy, or geofeed authoring best practices. Helps create, refine, and improve CSV-format IP geolocation feeds with opinionated recommendations beyon

simpy by k-dense-ai

Build, inspect, test, and analyze bounded process-based discrete-event simulations with SimPy, including events, resources, interrupts, monitoring, replications, warm-up, and reproducible output analysis.

mcp-implementation-security-review by github

Review the implementation source code of MCP (Model Context Protocol) servers, clients, and tool handlers against a security baseline — authentication, sessions, rate limiting, input-schema validation, official-SDK usage, RCE vectors, and the OWASP MCP Top 10 — producing a report with file/line evidence. Use this skill when: - Reviewing an MCP server implementation for security before release - Checking a server against the baseline controls (MCP-01 to MCP-05) and the OWASP MCP Top 10 - Auditing

View original Skill.mdThis page is parsed directly from the repository SKILL.md without editorial rewriting. Collected: Jul 28, 2026 · about 1 min

Laravel 验证循环

在发起 PR 前、进行重大更改后以及部署前运行。

使用时机

  • 在为一个 Laravel 项目开启拉取请求之前
  • 在重大重构或依赖升级之后
  • 为预生产或生产环境进行部署前验证
  • 运行完整的 代码检查 -> 测试 -> 安全检查 -> 部署就绪 流水线

工作原理

  • 按顺序运行从环境检查到部署就绪的各个阶段,每一层都建立在前一层的基础上。
  • 环境和 Composer 检查是所有其他步骤的关卡;如果它们失败,立即停止。
  • 代码检查/静态分析应在运行完整测试和覆盖率检查前确保通过。
  • 安全性和迁移审查在测试之后进行,以便在涉及数据或发布步骤之前验证行为。
  • 构建/部署就绪以及队列/调度器检查是最后的关卡;任何失败都会阻止发布。

第一阶段:环境检查

php -v
composer --version
php artisan --version
  • 验证 .env 文件存在且包含必需的键
  • 确认生产环境已设置 APP_DEBUG=false
  • 确认 APP_ENV 与目标部署环境匹配(productionstaging

如果在本地使用 Laravel Sail:

./vendor/bin/sail php -v
./vendor/bin/sail artisan --version

第一阶段补充:Composer 和自动加载

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

主动验证(仅限预生产环境):向一个专用队列分发一个无操作作业,并运行一个单独的工作者来处理它(确保配置了一个非 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
Source repo
affaan-m/ECC
Skill path
docs/zh-CN/skills/laravel-verification/SKILL.md
Commit SHA
4e973d3eaf92
Repository license
MIT
Data collected