Communityコーディング&開発github.com

Taldres/laravel-waitlist

Pest 4/5 と Orchestra Testbench を使用したパッケージテストの作成、編集、修正、レビューに使用します。TDD、フィーチャーテスト、ユニットテスト、型カバレッジ、アーキテクチャテスト、ワークベンチ動作、コマンド、ルート、設定、マイグレーション、公開可能なリソースなどを含みます。

laravel-waitlist とは?

このスキルは、Claude Code、Cursor、Codex などの AI エージェント向けに設計された、Laravel パッケージテストの専門知識を提供します。Pest 4/5 と Orchestra Testbench を活用し、テスト駆動開発 (TDD) のワークフローに従って、パッケージの動作を実装前に証明することを目的としています。このスキルは、フィーチャーテスト、ユニットテスト、型カバレッジ、アーキテクチャテストなど、幅広いテストタイプをサポートし、開発者が Happy Path、Unhappy Path、境界ケースを確実にカバーできるようにします。また、設定のマージ、アセットの公開、ルートテスト、Artisan コマンドのアサーションなどの具体的なテスト例を提供し、一般的なアンチパターン(本番テストの削除、実装の詳細のテストなど)を回避するのに役立ちます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Taldres/laravel-waitlist/tree/HEAD/.agents/skills/package-testing

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

パッケージテスト

主な目標

Pest 4/5、Orchestra Testbench、およびローカルの tests/TestCase.php セットアップを使用して、実装の前または並行してパッケージの動作を証明する。

ワークフロー

  1. TDD から始める:要求された動作に対して最小の失敗するパッケージテストを書き、それをパスさせる最小の変更を実装する。
  2. 機能に意味のある失敗モードがある場合は、Happy Path、Unhappy Path、および境界ケースの動作をカバーする。
  3. パッケージ統合動作にはフォーカスしたフィーチャーテストを、広範な制約にはアーキテクチャテストを優先する。
  4. 反復中は composer test:unit -- --filter ... を使用し、型に敏感なテストやコードが変更された場合は composer test:types を、終了前には composer test を使用する。
  5. 実際のパッケージテストはスイートに保持し、ローカルスキャフォールディング実験のために明示的に作成された使い捨てテストのみを削除する。

参考資料

  • tests/TestCase.php
  • tests/Pest.php
  • tests/Feature/
  • tests/Unit/
  • tests/ArchTest.php
  • composer.json スクリプト

例

  • デフォルトのパッケージ設定をアサートし、Testbench アプリでホスト設定値をオーバーライドすることで、設定のマージとオーバーライドをテストする。
  • 公開可能なアセット、マイグレーション、ビュー、言語ファイル、または設定を、ベンダー公開動作を呼び出してターゲットパスの存在をアサートすることでテストする。
  • Testbench HTTP リクエストでルートを、Artisan アサーションでコマンドを、SQLite テストデータベースでマイグレーションを、必要に応じて composer build 後にワークベンチ動作をテストする。

アンチパターン

  • 不便だからといって実際のパッケージテストを削除する。
  • 動作にアサーションが必要な場合にスモークテストのみに依存する。
  • 観測可能なパッケージ動作が利用可能な場合に実装の詳細をテストする。
  • 使い捨てのスキャフォールディング実験テストをパッケージテストスイートに残す。

Individual skills in this repo

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

Taldres/laravel-waitlist

Use this skill when reviewing Laravel package compatibility across composer constraints, PHP versions, Laravel versions, Testbench versions, dependency stability lanes, Windows CI, or matrix-sensitive code and workflow changes.

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

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.

関連スキル