Community编程与开发github.com

Taldres/laravel-waitlist

操作 Taldres/laravel-waitlist 安装:处理访问和删除请求、应请求撤回目的、应用保留策略、在目的达成后删除列表、使用 waitlist:rekey 轮换 APP_KEY、导出列表以及上线前检查配置。

laravel-waitlist 是什么?

该技能专门用于日常数据保护任务,围绕 `taldres/laravel-waitlist` 包进行操作。它允许 AI 代理处理来自列表中个人的访问请求和删除请求、根据请求撤回同意或目的、在目的实现后清除整个列表、应用保留策略(如待处理、取消订阅和元数据期限)、轮换 `APP_KEY` 并使用 `waitlist:rekey` 命令重新加密数据,以及将列表导出为 CSV。该技能还提供了全面的“上线前检查”清单,以确保配置符合法律要求,并且可以生成处理活动记录(Art. 30)。它支持 Laravel Artisan 命令和 PHP API(通过 `Waitlist` 门面),适用于单个或多个项目场景。关键限制由包强制执行,例如不要直接通过 SQL 删除记录或按电子邮件搜索,因为地址是加密的。该技能强调遵守数据保护法规,但不提供法律建议。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Taldres/laravel-waitlist/tree/HEAD/resources/boost/skills/laravel-waitlist-privacy-operations

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

在你喜欢的 AI 中提问

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

文档

Laravel Waitlist:隐私操作

使用此技能处理与 taldres/laravel-waitlist 相关的日常数据保护任务:列表中个人的请求、保留、密钥轮换、导出和上线前检查。

主要目标

  • 使用包自身的 API 和命令处理每个请求,涵盖请求涉及个人的每个项目,并说明哪些内容不在包的范围内

工作流

访问请求

php artisan waitlist:show [email protected] --pretty   # 每个项目;--json 用于机器可读副本
Waitlist::allProjects()->personalData('[email protected]'); // Collection<PersonalData>

删除请求

php artisan waitlist:forget [email protected]          # 每个项目
Waitlist::allProjects()->forget('[email protected]');  // 删除的条目数

删除操作会清除地址、其周期和同意,并清除其日志行中的标识字段;它会为每个条目触发 EntryForgotten,监听器使用该事件删除提供者的副本。备份、队列、日志、导出和提供者副本需要单独处理。

通过邮件收到的撤回请求

Waitlist::for('beta')->withdraw('[email protected]', 'newsletter'); // 可选目的:该项目的所有列表
Waitlist::for('beta')->unsubscribe('[email protected]');            // 离开此列表

在目的达成后删除列表

php artisan waitlist:forget --list=beta --all          # 先询问;--force 在非终端下使用
Waitlist::for('beta')->forgetAll();

保留

waitlist:prune 在包的调度表上运行(waitlist.retention.schedule,15 3 * * *;null 将调度留给你,一个永远无法运行的 cron 表达式会被拒绝);Laravel 的调度器必须运行(每分钟运行 php artisan schedule:run)。waitlist.retention 中的周期:pending_days(30)、unsubscribed_days(1095)、request_metadata_days(30);null 保留数据,而一个追溯到 1970 年之前(36500 天的“永久”)的周期会被拒绝。waitlist:prune 应用每个可读的周期,然后报告不可读的周期并使运行失败:监视日志和退出码。这些是技术默认值,不是法律建议。活跃的已确认条目和剩余的报表行不会自动过期。

轮换 APP_KEY

  1. 将旧密钥放入 APP_PREVIOUS_KEYS,设置新的 APP_KEY,部署。
  2. php artisan waitlist:rekey
  3. 一旦没有排队作业或备份需要旧密钥,将其移除。

没有旧密钥,既无法读取地址也无法按电子邮件查找地址,并且每个退订令牌在下次需要时都会被替换,因此之前发送的链接从那时起将停止工作。

导出

php artisan waitlist:export beta --status=confirmed --path=storage/app/beta.csv

列来自 waitlist.export.columns,限于 CsvExporter::EXPORTABLE(无令牌)。文件包含明文地址;使用后删除。

处理活动记录

php artisan waitlist:privacy [--project=]

它描述配置的包存储、目的、每个列表的元数据字段、保留以及为包事件注册的监听器。这是一个输入,不是完整的记录:它不审计基础设施或查找每个接收者。

上线前检查

  • APP_KEY 备份在与数据库分开的位置
  • 双重选择启用;除非必要,IP 和用户代理关闭
  • 每个项目和列表的字段(->fields())尽可能少,不确定时留空
  • 调度器运行;保留周期已选择并说明理由
  • 配置读取:.env 中没有空的 WAITLIST_*= 行(空值会被拒绝;删除该行以使用默认值),包更新后再次运行 php artisan config:cache(路由设置更改后运行 route:cache),日志中没有 InvalidConfigurationException
  • 注册表单渲染 Waitlist::purposes() 或 GET /waitlist/purposes;可选目的取消勾选
  • 确认监听器记录 Waitlist::confirmationMailed()
  • 每封邮件都有每个目的的退订链接和一键式标头
  • ManageLinkRequested 仅发送到该地址
  • 排队的监听器实现 ShouldBeEncrypted;EntryForgotten、EntryUnsubscribed 和 ConsentWithdrawn 到达每个提供者
  • 当路由部署时,配置机器人保护和受信任的代理

规则、参考和模板

示例

  • “用户要求我们删除他们的数据”:验证请求,然后运行 php artisan waitlist:forget <email>,并检查提供者和导出。
  • “我们上线了,beta 列表已完成其目的”:运行 waitlist:forget --list=beta --all。
  • “我们轮换了 APP_KEY,查找失败”:在 APP_PREVIOUS_KEYS 中恢复旧密钥,然后运行 waitlist:rekey。

反模式

  • 使用 SQL 或 WaitlistEntry::query()->delete() 删除行;删除必须通过包进行,以便日志被清理并触发 EntryForgotten。
  • 使用 where('email', ...) 搜索:地址已加密;使用 forEmail() 或门面。
  • 对跨多个项目的人员使用 Waitlist::forget()(仅默认项目)删除。
  • 在未设置 APP_PREVIOUS_KEYS 的情况下轮换 APP_KEY。
  • 将 waitlist:privacy 输出呈现为完整的第 30 条记录。

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

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

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.

相关技能