transactional-email

Send durable transactional email once, with one-click unsubscribe and provider reconciliation.

579|76|Updated Oct 29, 2026
Ready to run
npx skills add https://github.com/phuryn/product-engineering --skill transactional-email-phuryn
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: transactional-email
Source: https://github.com/phuryn/product-engineering/tree/main/app-stack/skills/transactional-email
Command: npx skills add https://github.com/phuryn/product-engineering --skill transactional-email-phuryn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Transactional emails often fail silently, arrive twice, or get lost entirely. This Skill ensures every receipt, invoice, and alert reaches users exactly once, with proof of delivery and one-click unsubscribe compliance. ## Core Features & Use Cases - Durable Delivery: Commit the event and its pending message in a single transaction, preventing crashes between event insertion and email queueing. - Duplicate Prevention: Use idempotency keys or provider search to reconcile unanswered sends without re-sending. - One-Click Unsubscribe: RFC 8058 compliant headers on every message, with token-based one-click POST (not a GET link). - Use Case: Your payment processor charges a customer and sends a receipt. If the send request times out, the Skill searches the provider's history to confirm it wasn't already accepted before retrying, preventing duplicate receipts. ## Quick Start Ask your AI: "Set up transactional email for my app using this Skill, choosing Resend or Postmark, and test the full flow including a simulated crash and retry."

Frequently Asked Questions about transactional-email

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent duplicate transactional emails in production?▼

Use an idempotency key (Resend's `Idempotency-Key` header) or provider search (Postmark's outbound message query) keyed by the receipt ID. The Skill waits until the lease expires before searching, allowing the provider's records to settle.

What happens if the email send request times out?▼

The receipt stays in `sending` status. Once the lease expires, the sender reconciles by asking the provider whether it was accepted. If found, it is marked `sent` without a retry. If not found, it is sent again.

How does one-click unsubscribe work in this Skill?▼

Every message carries RFC 8058 headers: `List-Unsubscribe` with the unsubscribe token URL and `List-Unsubscribe-Post: List-Unsubscribe=One-Click`. A `POST` with body `List-Unsubscribe=One-Click` immediately unsubscribes; a `GET` shows a confirmation page.

Can I still send duplicate emails if the provider accepts late?▼

Yes. A duplicate can go out if the provider accepts a request beyond the lease window or idempotency key lifetime, or if the search has not settled. The design is at-least-once with duplicates made rare, not exactly-once.

How do I keep development emails from reaching real customers?▼

Set a development-only redirect to the provider's discard address (Postmark: `test@blackhole.postmarkapp.com`, Resend: `delivered@resend.dev`). The production build must refuse a non-empty redirect, preventing a copied `.env` from sending to customers.

What should I do if an email never arrives and reconciliation finds nothing?▼

The receipt is marked `failed` with a note that it may have arrived. The message is never retried. For channels without a search capability, use at-most-once delivery instead: mark unanswered sends `failed` and never retry.