Community编程与开发github.com

Taldres/laravel-waitlist

在审查 Laravel 包在 Composer 约束、PHP 版本、Laravel 版本、Testbench 版本、依赖稳定性分支、Windows CI 或矩阵敏感代码和工作流变更时的兼容性时使用。

laravel-waitlist 是什么?

该技能旨在帮助开发者审查 Laravel 包的兼容性,确保代码、依赖项和工作流在支持的 Laravel 13 和 PHP 8.3+ 矩阵中保持兼容。它通过指导用户首先读取 composer.json 来确定 PHP、Laravel 和 Testbench 约束,然后检查代码是否与允许的最低 Laravel 版本(13.0.0)及 PHP 8.3+ 语法兼容,避免使用仅在新版本中可用的功能。此外,该技能还强调审查 .github/workflows/tests.yml 中的依赖稳定性分支、prefer-lowest 覆盖、prefer-stable 覆盖以及 Windows 相关问题。当更改依赖项时,需要确认约束仍允许预期的 Laravel 和 Testbench 版本。该技能适用于所有主要 AI 助手平台,通过引用 composer.json、测试工作流、PHPStan 配置文件和工作台文件来提供具体指导。它通过展示反模式(如假设本地最新依赖版本代表整个支持矩阵)来帮助避免常见错误。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Taldres/laravel-waitlist/tree/HEAD/.agents/skills/package-compatibility

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

包兼容性

主要目标

保持包的代码、依赖项和工作流与支持的 Laravel 13 和 PHP 8.3+ 矩阵兼容。

工作流

  1. 首先读取 composer.json 以确定 PHP、Laravel 和 Testbench 约束。
  2. 对照 composer.json 允许的最低 Laravel 版本(13.0.0)和 PHP 8.3+ 语法检查更改的代码,然后再采用更新的框架或语言特性。PHP 8.4 语法(如属性钩子)在 8.3 上是解析错误。不要直接调用 PHP 8.4 的函数(如 array_any()):Laravel 的 Arr::first()、Arr::some() 和 Arr::every() 涵盖了这些功能,后两者接受一个接受 mixed 的闭包,因为 PHPStan 拒绝狭窄的类型。
  3. 审查 .github/workflows/tests.yml 中的依赖稳定性分支、prefer-lowest 覆盖、prefer-stable 覆盖以及 Windows 相关问题。prefer-lowest 分支会关闭 Composer 对包含安全公告的版本的阻止,否则它将永远不会安装 Laravel 13.0;在本地,通过在副本中运行 composer config policy.advisories.block false 来测试最低版本。
  4. 更改依赖项时,确认约束仍然允许预期的 Laravel 和 Testbench 版本。
  5. 使用可用的最小本地命令进行验证,然后依赖 CI 进行全面操作系统和依赖矩阵覆盖。

引用

  • composer.json
  • .github/workflows/tests.yml
  • phpstan.neon.dist
  • tests/
  • workbench/

示例

  • 在合并共享包代码之前,通过检查新的 Laravel API 调用是否存在于 composer.json 允许的最低版本 Laravel 13.0.0 中来审查它。
  • 通过检查 Composer 约束、Testbench 约束、prefer-lowest 行为和 Windows 路径假设来审查依赖版本提升。

反模式

  • 假设最新的本地依赖版本代表整个支持矩阵。
  • 添加超出 composer.json 约束的 PHP 语法或 Laravel API。
  • 在测试和工作流中忽略 Windows 路径分隔符、可执行文件假设或仅限 shell 的语法。
  • 因为依赖稳定性分支比单条快乐路径慢而移除它们。

Individual skills in this repo

This repo contains 13 individual skills — each has its own dedicated page.

Taldres/laravel-waitlist

Use this skill when creating or updating the bundled Laravel Boost skill under resources/boost/skills from the package implementation and package documentation. Trigger after public APIs, commands, config, routes, views, publish tags, README content, or examples change.

Taldres/laravel-waitlist

Use this skill when preparing Laravel package releases: CHANGELOG.md updates, generated release notes, GitHub release workflows, version checks, tags, release validation, or release automation changes. Never publish autonomously.

Taldres/laravel-waitlist

Use this skill when adding Laravel package capabilities or wiring them through the service provider: commands, migrations, routes, config merges, views, translations, assets, middleware, publish tags, workbench files, or console-only behavior.

Taldres/laravel-waitlist

Use this skill when writing, editing, fixing, or reviewing package tests with Pest 4/5 and Orchestra Testbench, including TDD, feature tests, unit tests, type coverage, arch tests, workbench behavior, commands, routes, config, migrations, and publishable resources.

Taldres/laravel-waitlist

Integrate taldres/laravel-waitlist in a Laravel application: define purposes, lists and fields, build the signup form, send the confirmation mail from events, add a preference page, and keep consent, retention and encryption intact.

Taldres/laravel-waitlist

Build the pages of a taldres/laravel-waitlist integration: the signup form with the registered wording, and the confirm, unsubscribe and preference pages, either in Laravel controllers (Blade, Livewire, Inertia) or in an SPA or static site over the package's JSON API, including CORS and bot protection.

Taldres/laravel-waitlist

Turn a taldres/laravel-waitlist waitlist into a launch: invite people in batches in signup order, let invited addresses register, announce the launch to everyone who agreed, and erase the list once its purpose is fulfilled.

Taldres/laravel-waitlist

Send the mails of a taldres/laravel-waitlist integration: the double opt-in confirmation, the preference page link, a welcome mail, launch mails and newsletters to the people who agreed, with the right unsubscribe links, one-click headers and a sender per project.

Taldres/laravel-waitlist

Operate a taldres/laravel-waitlist installation: answer access and erasure requests, withdraw a purpose on request, apply retention, erase a list once its purpose is fulfilled, rotate APP_KEY with waitlist:rekey, export a list, and check the setup before going live.

Taldres/laravel-waitlist

Run the waitlists of several products in one Laravel app with taldres/laravel-waitlist projects: define projects, scope facade calls with project(), resolve the project of HTTP signups, send mail per project, handle requests across all projects, or keep projects in a database for a central waitlist API.

Taldres/laravel-waitlist

Keep a newsletter tool such as Brevo, Mailchimp or Mailcoach in step with a taldres/laravel-waitlist waitlist: add confirmed contacts per purpose, remove them on withdrawal and erasure, and carry unsubscribes made at the provider back into the waitlist via a webhook.

Taldres/laravel-waitlist

Build waitlist statistics with taldres/laravel-waitlist: signups and confirmations per day for charts, totals and confirmation rates for a period, the confirmed count on any past day, and how many people are on a list right now, for dashboards, admin pages and API endpoints.

Taldres/laravel-waitlist

Write feature tests for an application's taldres/laravel-waitlist integration: get the plain tokens from events, assert the confirmation and other mails, test the signup, confirm and unsubscribe flows in PHP and over the package's HTTP routes, and bypass rate limits and bot checks in tests.

相关技能