AGENT SKILL

email-best-practices

Use when building email features, emails going to spam, high bounce rates, setting up SPF/DKIM/DMARC authentication, implementing email capture, ensuring compliance (CAN-SPAM, GDPR, CASL), handling webhooks, retry logic, or deciding transactional vs marketing.

使用场景邮件与沟通
License 许可
MIT
最近更新
2026-05-04
Stars
★ 1
Forks
0

01 前言 Front Matter

name
email-best-practices
license
MIT
metadata
{ "author": "Resend", "source": "https://github.com/resend/email-best-practices", "version": "1.0.2", "homepage": "https://resend.com/agent-skills", "openclaw": { "links": { "repository": "https://github.com/resend/email-best-practices", "documentation": "https://resend.com/docs/email-best-practices-skill" } } }
description
Use when building email features, emails going to spam, high bounce rates, setting up SPF/DKIM/DMARC authentication, implementing email capture, ensuring compliance (CAN-SPAM, GDPR, CASL), handling webhooks, retry logic, or deciding transactional vs marketing.

03 SKILL.md 正文

Email Best Practices

Guidance for building deliverable, compliant, user-friendly emails.

Architecture Overview

[User] → [Email Form] → [Validation] → [Double Opt-In]
                                              ↓
                                    [Consent Recorded]
                                              ↓
[Suppression Check] ←──────────────[Ready to Send]
        ↓
[Idempotent Send + Retry] ──────→ [Email API]
                                       ↓
                              [Webhook Events]
                                       ↓
              ┌────────┬────────┬─────────────┐
              ↓        ↓        ↓             ↓
         Delivered  Bounced  Complained  Opened/Clicked
                       ↓        ↓
              [Suppression List Updated]
                       ↓
              [List Hygiene Jobs]

Quick Reference

Need to... See
Set up SPF/DKIM/DMARC, fix spam issues Deliverability (./references/deliverability.md)
Build password reset, OTP, confirmations Transactional Emails (./references/transactional_emails.md)
Plan which emails your app needs Transactional Email Catalog (./references/transactional_email_catalog.md)
Build newsletter signup, validate emails Email Capture (./references/email_capture.md)
Send newsletters, promotions Marketing Emails (./references/marketing_emails.md)
Ensure CAN-SPAM/GDPR/CASL compliance Compliance (./references/compliance.md)
Decide transactional vs marketing Email Types (./references/email_types.md)
Handle retries, idempotency, errors Sending Reliability (./references/sending_reliability.md)
Process delivery events, set up webhooks Webhooks & Events (./references/webhooks_events.md)
Manage bounces, complaints, suppression List Management (./references/list_management.md)

Start Here

New app? Start with the Catalog (./references/transactional_email_catalog.md) to plan which emails your app needs (password reset, verification, etc.), then set up Deliverability (./references/deliverability.md) (DNS authentication) before sending your first email.

Spam issues? Check Deliverability (./references/deliverability.md) first—authentication problems are the most common cause. Gmail/Yahoo reject unauthenticated emails.

Marketing emails? Follow this path: Email Capture (./references/email_capture.md) (collect consent) → Compliance (./references/compliance.md) (legal requirements) → Marketing Emails (./references/marketing_emails.md) (best practices).

Production-ready sending? Add reliability: Sending Reliability (./references/sending_reliability.md) (retry + idempotency) → Webhooks & Events (./references/webhooks_events.md) (track delivery) → List Management (./references/list_management.md) (handle bounces).

04 同仓库更多 Skills

iDorgham
iDorgham/Workspace-Factory

vercel-react-view-transitions

Guide for implementing smooth, native-feeling animations using React's View Transition API (`<ViewTransition>` component, `addTransitionType`, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter/exit of components, animate list reorder, implement directional (forward/back) navigation animations, or integrate view transitions in Next.js. Also use when the user mentions view transitions, `startViewTransition`, `ViewTransition`, transition types, or asks about animating between UI states in React without third-party animation libraries.

前端开发
★ 1
iDorgham
iDorgham/Workspace-Factory

vercel-react-native-skills

React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.

前端开发
★ 1
iDorgham
iDorgham/Workspace-Factory

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

前端开发
★ 1
iDorgham
iDorgham/Workspace-Factory

vercel-composition-patterns

React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.

前端开发
★ 1
iDorgham
iDorgham/Workspace-Factory

supabase-postgres-best-practices

Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.

后端与接口
★ 1
iDorgham
iDorgham/Workspace-Factory

portable-text-serialization

Render and serialize Portable Text to React, Svelte, Vue, Astro, HTML, Markdown, and plain text. Use when implementing Portable Text rendering in any frontend framework, building custom serializers for non-standard block types, converting Portable Text to HTML strings server-side, converting Portable Text to Markdown, extracting plain text from Portable Text, or troubleshooting rendering issues with marks, blocks, lists, or custom types.

前端开发
★ 1