Community程式設計與開發github.com

Taldres/laravel-waitlist

在審查 Laravel 套件的相容性時使用此技能,涵蓋 Composer 約束、PHP 版本、Laravel 版本、Testbench 版本、依賴穩定性通道、Windows CI 以及與矩陣相關的程式碼或工作流程變更。

laravel-waitlist 是什麼?

此技能旨在協助開發者或 AI 代理程式審查 Laravel 套件時,確保程式碼、依賴套件及 CI 工作流程與支援的 Laravel 13 及 PHP 8.3+ 矩陣保持相容。它指導使用者從 composer.json 開始,檢查 PHP、Laravel 和 Testbench 的最低約束條件,避免採用超出這些約束的新功能(例如 PHP 8.4 語法)。此外,它強調審查 .github/workflows/tests.yml 中的穩定性通道、優先使用最低依賴版本(prefer-lowest)及 Windows 相關問題,並在變更依賴時確認約束仍允許目標版本。最後,它建議先使用本地最小指令驗證,再依賴 CI 進行完整矩陣測試。支援平台為 Claude Code、Cursor 等 AI 代理工具。

相容平台~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 相關問題。偏好最低版本通道會關閉 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 呼叫時,檢查它是否存在於 Laravel 13.0.0(composer.json 允許的最低版本),然後再將其合併到共用套件程式碼中。
  • 審查依賴套件升級時,檢查 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.

相關技能