scaledockhq/scaledock-skills/list-unsubscribe
Claude Code and agent skill by scaledockhq/scaledock-skills
- community
Checking that the SKILL.md file is still in the repository.
List-Unsubscribe (RFC 2369, RFC 8058 one-click): add and process email unsubscribe headers. Covers the current line, RFC 2369 with RFC 8058, plus RFC 2919 List-Id; no preview exists. Use when building or reviewing a newsletter, marketing or mailing list sender, a one-click unsubscribe HTTPS endpoint, or a mail client or mailbox provider that shows an unsubscribe button: List-Unsubscribe with angle-bracketed mailto and https URIs, List-Unsubscribe-Post: List-Unsubscribe=One-Click, the HTTPS POST a receiver sends, multipart/form-data or application/x-www-form-urlencoded bodies, no redirects, no cookies or HTTP authorization, opaque hard-to-forge tokens, covering both headers in the DKIM h= tag, List-Help, List-Subscribe, List-Post (including NO), List-Owner, List-Archive, List-Id, nested lists, and Gmail and Yahoo bulk sender one-click unsubscribe requirements (provider policy, not spec).
Install
npx vskill@latest install scaledockhq/scaledock-skills/list-unsubscribeSKILL.md
The same SKILL.md was published earlier as scaledockhq/scaledock-skills/list-unsubscribe.
List-Unsubscribe and list header fields
RFC 2369 (IETF, July 1998) defines the List-Help, List-Unsubscribe, List-Subscribe, List-Post, List-Owner and List-Archive header fields, which carry angle-bracketed URIs for mailing list commands. RFC 8058 (IETF, January 2017) adds List-Unsubscribe-Post, which signals that the HTTPS URI in List-Unsubscribe accepts a one-click POST. RFC 2919 (IETF, March 2001) defines List-Id, which identifies the list. With this skill the agent writes these header fields on the sender side, builds the one-click endpoint, and implements the receiver or mail client side that parses them and sends the POST.
Follow the workflow below step by step. Every rule here comes from a source in Sources, with the section it cites. When a rule and the pinned source disagree, the source wins; when the source has a newer revision than the pin, follow the refresh steps.
Inputs (fill in, or ask before starting)
- Role: sender (list manager, newsletter or marketing platform, transactional mailer that runs lists), receiver (mailbox provider or MUA that offers an unsubscribe action), or both.
- Target version: RFC 2369 with RFC 8058 (default and only line), with RFC 2919 for
List-Id. No legacy line and no preview exist. See `references/versions.md`. - Revision: the pinned revision in Sources, unless the user names another.
- Sources: when refreshing this skill or when a rule looks out of date, re-read every URL in Sources first, check the RFC Editor entries of RFC 2369, RFC 8058 and RFC 2919 for errata or updating RFCs, search the IETF Datatracker for drafts that update them, re-read the provider policy pages, and update the pins.
- Mail streams: which messages belong to a list (they get the headers) and which are one-off transactional mail.
- Signing: which domain signs with DKIM and whether you control its
h=list (one-click needs it, RFC 8058 § 4). - Mailbox providers: whether the sender has to meet Gmail or Yahoo bulk sender rules. These are provider policy, not part of the RFCs.
Invariants
- Only list software generates these fields, at most one of each per message (RFC 2369 § 3, RFC 2919 § 3). Strip user-originated list header fields from incoming posts (RFC 2369 § 5, RFC 2919 § 8).
- Values are angle-bracketed URIs, comma-separated, in order of preference (RFC 2369 § 2). No whitespace inside the brackets (RFC 2369 § 2).
List-Postalone may carry the valueNO(RFC 2369 § 3.4). - One-click needs exactly one HTTPS URI in
List-Unsubscribe, plus oneList-Unsubscribe-Postwhose value is exactlyList-Unsubscribe=One-Click(RFC 8058 § 3.1, § 5). Other non-HTTP URIs such asmailto:may sit next to it (§ 3.1). - Both headers are DKIM-signed. The message has at least one valid DKIM signature whose
h=tag includesList-UnsubscribeandList-Unsubscribe-Post(RFC 8058 § 3.1, § 4). Without it, receivers SHOULD NOT offer one-click (§ 4). - The URI alone identifies recipient and list (RFC 8058 § 3.1). There are no extra POST arguments, so everything is encoded in the URI, and it SHOULD carry an opaque or hard-to-forge component that the server verifies (§ 3.1, § 6).
- The endpoint never redirects a one-click POST (RFC 8058 § 3.1), and needs no cookies, HTTP authorization or other context: the receiver MUST NOT send them (§ 3.1, § 6).
- Receivers POST only with user consent (RFC 8058 § 3.2). The body is the key/value pair from
List-Unsubscribe-Post, sent asmultipart/form-data(SHOULD) orapplication/x-www-form-urlencoded(MAY) (§ 3.2). - Clients let the user confirm any list command before it runs (RFC 2369 § 5), and do not follow URIs that endanger the user's system, such as
file://(RFC 2369 § 5). - `List-Id` is a domain you control, compared case-insensitively and never trusted as authentication (RFC 2919 § 2, § 6, § 8). It is at most 255 octets (§ 2).
Workflow
- Pick the version. Use RFC 2369 with RFC 8058, and RFC 2919 for
List-Id.
-> `references/versions.md` ✓ The target is recorded, and the provider policies you must meet are listed separately from the RFC rules.
- Choose the header fields. Decide which RFC 2369 fields the list offers, include them on every list message including command responses (RFC 2369 § 3), and add a
mailto:URI next to any web URI (RFC 2369 § 1). Assign a stableList-Id(RFC 2919 § 4, § 5).
-> `references/headers.md` ✓ Each field appears at most once, every value starts with <, and List-Id sits under a domain the list owner controls.
- Mint the unsubscribe URI. Encode recipient and list in an opaque, hard-to-forge token in an HTTPS URI that reaches your endpoint directly.
-> `references/one-click-endpoint.md` ✓ The URI identifies one recipient on one list, cannot be guessed or edited into another subscriber's URI, and does not redirect.
- Sign the message. Add
List-Unsubscribe-Post: List-Unsubscribe=One-Clickand DKIM-sign with both list headers inh=(RFC 8058 § 4). Install thedkimskill for signing details.
✓ A verifier reports a passing DKIM signature whose h= contains List-Unsubscribe and List-Unsubscribe-Post.
- Build the endpoint. Handle POST with either form encoding as a completed unsubscribe without further interaction, and GET as the manual path with a confirmation step (RFC 8058 § 1, § 3.2).
-> `references/one-click-endpoint.md` ✓ A POST with List-Unsubscribe=One-Click and no cookies removes the recipient from that list; a GET alone removes nobody; no 3xx is ever returned to the POST.
- Meet the processing timeline your providers set. The RFCs set none. Gmail recommends fulfilling one-click requests within 48 hours and Yahoo requires honoring unsubscribes within 2 days (provider policy).
-> `references/one-click-endpoint.md` ✓ Removal reaches every sending system within the strictest provider window you must meet.
- Receiver or MUA side. Parse the fields with the RFC 2369 § 2 tolerance rules, check the DKIM condition, get user consent, then POST or open the URI.
-> `references/receiver-behavior.md` ✓ One-click is offered only for a validly signed message with one HTTPS URI and the exact List-Unsubscribe-Post value, and the POST carries no cookies or credentials.
- Nested lists and forwarding. A sublist replaces the parent's
List-Help,List-Subscribe,List-UnsubscribeandList-Owner, and leavesList-Idalone (RFC 2369 § 4, RFC 2919 § 7).
-> `references/headers.md` ✓ An unsubscribe from a sublist message removes the reader from the list that actually mailed them.
- Upgrade (only when asked). Turn an RFC 2369-only
List-Unsubscribeinto one-click by following the upgrade section.
-> `references/versions.md` ✓ The message carries one HTTPS URI, the List-Unsubscribe-Post field, and a DKIM signature over both, and the existing mailto: path still works.
Verify before done
- [ ] Every list message has at most one of each
List-*field, and every value starts with<(RFC 2369 § 2, § 3). - [ ]
List-Unsubscribehas exactly one HTTPS URI, andList-Unsubscribe-Postis exactlyList-Unsubscribe=One-Click(RFC 8058 § 3.1, § 5). - [ ] A valid DKIM signature lists both headers in
h=(RFC 8058 § 4). - [ ] The URI carries a verified opaque or hard-to-forge token identifying recipient and list (RFC 8058 § 3.1, § 6).
- [ ] The endpoint accepts
multipart/form-dataandapplication/x-www-form-urlencoded, never redirects the POST, and needs no cookie or login (RFC 8058 § 3.1, § 3.2). - [ ] Receivers POST only after user consent and without cookies, authorization or other context (RFC 8058 § 3.1, § 3.2, § 6).
- [ ]
List-Idis under a domain the owner controls (or a conforminglocalhostid), at most 255 octets, and unchanged across host moves (RFC 2919 § 2, § 4, § 5). - [ ] Provider rules (Gmail, Yahoo) are documented as provider policy, with their pinned page and check date, never as RFC requirements.
Reference index
- `references/versions.md`: the single version line, what RFC 8058 added to RFC 2369, the errata, the expired bis drafts, and the upgrade to one-click. Load for steps 1 and 9.
- `references/headers.md`: syntax and semantics of every RFC 2369 field,
List-Unsubscribe-Post, andList-Id, with examples, nested lists and the IANA registry entries. Load for steps 2 and 8. - `references/one-click-endpoint.md`: the sender side: URI design, the POST request, GET versus POST, response rules, security, and provider timelines. Load for steps 3 to 6.
- `references/receiver-behavior.md`: the receiver and MUA side: parsing, choosing a URI, the DKIM check, consent, sending the POST,
mailto:handling, andList-Iduse. Load for step 7.
Related skills
dkimfor signing the message withList-UnsubscribeandList-Unsubscribe-Postinh=:npx skills add ScaleDockHQ/scaledock-skills --skill dkim.dmarcfor From-domain alignment, which Gmail and Yahoo also require from bulk senders:npx skills add ScaleDockHQ/scaledock-skills --skill dmarc.spffor authorizing the sending hosts:npx skills add ScaleDockHQ/scaledock-skills --skill spf.
Sources
Status uses the publishing body's own maturity term. Checked is the date the source was last read.
- RFC 2369: The Use of URLs as Meta-Syntax for Core Mail List Commands and their Transport through Message Header Fields: RFC (Proposed Standard), RFC 2369 (July 1998), no errata, checked 2026-10-05.
- RFC 8058: Signaling One-Click Functionality for List Email Headers: RFC (Proposed Standard), RFC 8058 (January 2017), checked 2026-10-05.
- RFC 8058 errata: RFC Editor errata, verified EIDs 5117, 5559 and 8927, checked 2026-10-05.
- RFC 2919: List-Id: RFC (Proposed Standard), RFC 2919 (March 2001), checked 2026-10-05.
- RFC 2919 errata: RFC Editor errata, verified EID 3951, held EID 2499, checked 2026-10-05.
- IANA Message Headers registry: IANA registry, last updated 2026-05-13, checked 2026-10-05.
- Gmail: Email sender guidelines: provider policy (Google), page as read 2026-10-05, checked 2026-10-05.
- Gmail: Email sender guidelines FAQ: provider policy (Google), page as read 2026-10-05, checked 2026-10-05.
- Yahoo: Sender Requirements & Recommendations: provider policy (Yahoo), Senders Best Communications Practices Version 3.0, checked 2026-10-05.
- Yahoo: Sender FAQs: provider policy (Yahoo), page as read 2026-10-05, checked 2026-10-05.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/list-unsubscribe/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/scaledockhq/scaledock-skills/list-unsubscribe)