Community코딩 & 개발github.com

Taldres/laravel-waitlist

Laravel 패키지 기능(명령어, 마이그레이션, 라우트, 설정 병합, 뷰, 번역, 에셋, 미들웨어, 퍼블리시 태그, 워크벤치 파일, 콘솔 전용 동작)을 추가하고 서비스 프로바이더를 통해 연결할 때 사용하는 스킬입니다.

laravel-waitlist란 무엇인가요?

이 스킬은 Laravel 패키지 개발자가 새로운 기능을 올바른 위치에 추가하고 서비스 프로바이더를 통해 명시적인 Laravel API로 연결하는 방법을 안내합니다. 명령어, 마이그레이션, 라우트, 설정, 뷰, 번역, 에셋, 미들웨어, 테스트 등 다양한 패키지 기능을 Laravel 네이티브 패키지 경로에 생성하고, 패키지 이름, 네임스페이스, 설정 키, 퍼블리시 태그의 일관성을 유지합니다. 서비스 프로바이더 내 `register()`와 `boot()` 메서드에서 적절한 위치에 바인딩, 설정 병합, 리소스 로딩, 콘솔 전용 게시를 수행하며, `package-testing`으로 테스트 커버리지를 확보하고 사용자 대상 변경 시 README를 업데이트합니다. 또한 `spatie/laravel-package-tools` 같은 기본 헬퍼 추상화 대신 명시적인 Laravel 패키지 코드를 권장합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Taldres/laravel-waitlist/tree/HEAD/.agents/skills/package-scaffold

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

패키지 스캐폴드

주요 목표

패키지 기능을 올바른 위치에 추가하고 명시적인 Laravel API를 사용하여 서비스 프로바이더를 통해 연결하며, 패키지 이름, 네임스페이스, 설정 키, 퍼블리시 태그의 일관성을 유지합니다.

워크플로우

  1. 파일을 생성하기 전에 기존 패키지 구조, 관련 예제, README 설정 노트, 현재 서비스 프로바이더를 검사합니다.
  2. 요청이 명령어, 마이그레이션, 라우트, 설정, 뷰, 번역, 에셋, 미들웨어, 테스트, README/기여 문서, 호환성 또는 릴리스 흐름 중 어떤 것과 관련된 것인지 식별합니다.
  3. Laravel 네이티브 패키지 경로 아래에 기능 파일을 생성하고 구성된 패키지 이름, 네임스페이스, 퍼블리시 태그, URL, 배지를 일관되게 사용합니다.
  4. 아래 프로바이더 연결의 패턴을 사용하여 서비스 프로바이더를 통해 기능을 연결합니다.
  5. 테스트 커버리지를 위해 package-testing을 사용하고, 사용자 대상 동작이 변경될 때 README 또는 기여 문서를 업데이트하며, 매트릭스에 민감한 변경 사항에는 package-compatibility를, 릴리스 작업에는 package-release를 사용합니다.
  6. 요청된 기능에 필요한 파일만 추가하고, 좁은 범위의 관련 명령어로 검증한 후 더 넓은 검사를 수행합니다.

프로바이더 연결

  1. 반복되는 실제 문제를 명확히 하기 위해 메서드를 추출해야 하는 경우가 아니라면 프로바이더 연결은 register() 또는 boot()에 유지합니다.
  2. 호스트 앱이 설정을 재정의할 수 있어야 하는 경우 컨테이너 바인딩과 mergeConfigFrom 호출을 register()에 배치합니다.
  3. loadRoutesFrom, loadViewsFrom, loadTranslationsFrom과 같은 Laravel 네이티브 API를 사용하여 부트 타임 메서드에 리소스 로딩을 배치합니다.
  4. publishes, publishesMigrations 또는 commands를 호출하기 전에 runningInConsole()로 콘솔 전용 게시 및 명령어 등록을 가드합니다.
  5. 소비자가 개별 리소스 그룹을 대상으로 할 수 있도록 waitlist-* 규칙으로 퍼블리시 태그를 명명합니다.
  6. 병합된 설정, 로드된 라우트, 퍼블리시 태그 또는 명령어 등록과 같은 관찰 가능한 프로바이더 동작에 대한 테스트를 추가합니다.

프로바이더 연결 안티 패턴:

  • 프로바이더 등록 중 호스트 앱 상태를 너무 일찍 로드합니다.
  • 설정 파일 외부에서 env()를 호출하는 대신 mergeConfigFrom 후 설정 값을 사용합니다.
  • 패키지가 콘솔 컨텍스트에서 실행될 수 있을 때 웹 전용 사항을 조건 없이 등록합니다.
  • 명시적인 프로바이더 메서드를 기본적으로 spatie/laravel-package-tools로 대체합니다.

참조

  • src/*ServiceProvider.php
  • config/*.php
  • routes/*.php
  • resources/views/
  • lang/
  • database/migrations/
  • public/
  • src/Console/Commands/
  • tests/Feature/ 및 tests/Unit/

예제

  • Artisan 명령어 추가: src/Console/Commands 아래에 명령어 클래스를 생성하고, runningInConsole() 가드 내부 commands 배열에 등록한 후, 관찰 가능한 콘솔 출력에 대한 기능 테스트를 추가하고, 명령어가 사용자 대상이면 문서화합니다.
  • 게시 가능한 마이그레이션 추가: 마이그레이션을 database/migrations에 배치하고, waitlist-migrations 태그와 함께 콘솔 가드된 publishesMigrations 호출을 통해 연결한 후, Testbench로 게시 동작을 테스트합니다.
  • 새 퍼블리시 태그 연결: 기존 콘솔 가드된 게시 메서드 내부에 publishes 맵을 추가하고 waitlist-*로 태그를 명명합니다.

안티 패턴

  • 패키지가 나중에 필요할 수도 있다는 이유로 사용되지 않는 파일을 추가합니다.
  • 패키지 이름, 네임스페이스, 설정 키 또는 퍼블리시 태그를 혼용합니다.
  • 승인 없이 종속성을 변경합니다.
  • 하나의 기능별 변경으로 충분할 때 명시적인 Laravel 패키지 코드를 헬퍼 추상화로 대체합니다.

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 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.

관련 스킬