What the agent does
Launch updates and newsletters from the production site must reach only people who agreed to them, and anyone must be able to stop them in one click. Gmail and Yahoo now reject bulk email without one-click unsubscribe, and privacy laws require consent. Make the code do this by default.
1. Separate the kinds of email
List every email and classify it: transactional (receipts, resets, security notices, which users cannot opt out of) or marketing (newsletters, product updates, promotions, which need consent). Flag any marketing email sent without a recorded opt-in.
2. Record consent
Store for each address what they agreed to, when and how (the form, the checkbox text). Opt-in checkboxes start unticked. Where the law or the list's quality calls for it, use double opt-in (a confirmation email).
3. One-click unsubscribe
Every marketing email carries
List-Unsubscribewith an HTTPS URL andList-Unsubscribe-Post: List-Unsubscribe=One-Click(RFC 8058), plus a visible unsubscribe link. The link opens a page that confirms with one click and works without signing in; the POST endpoint unsubscribes immediately.4. Suppress everywhere
An unsubscribe takes effect at once in the app's database and is synced to every sending tool, so the next send skips the address. Add a test that an unsubscribed address is excluded from a send.
Done means
- Every email is classified as transactional or marketing.
- Consent is recorded with when and how, from unticked checkboxes.
- Marketing emails carry one-click List-Unsubscribe headers and a visible link that works without signing in.
- Unsubscribed addresses are excluded from every later send, with a test.
Questions
Do receipts need an unsubscribe link?
No. Transactional emails that a user needs (receipts, password resets, security alerts) are exempt. Marketing emails always need one.
What is one-click unsubscribe?
Two email headers that let Gmail, Yahoo and others show an unsubscribe button and unsubscribe the reader with a single request. Bulk senders are now required to support it.
Is double opt-in required?
It depends on where your users are, and it is good practice everywhere: it keeps typos and fake addresses off your list, which protects deliverability.
Does this prompt add links to Aback Launch to my site?
No. Nothing in the prompt mentions Aback Launch or asks your agent to link to us. The only exception is an optional badge step, which stays off unless you tick it. Some prompt libraries slip their own link into your codebase by default; we think that should always be your choice.
Which coding agents does it work with?
Claude Code, Cursor, Codex, GitHub Copilot, Windsurf, Cline, and any agent that can read your project and edit files. You can copy it as a plain prompt, save it as a Claude Code skill or a Cursor rule, or add it to AGENTS.md.
Is it safe to run on my real codebase?
The prompt makes the agent read first, show a plan and wait for your approval, and it forbids touching secrets, deploying and deleting data. Still review the changes and run your tests before you deploy, as with any change.
Changelog
- v1.0First version.