Community寫作與編輯github.com

resend/email-best-practices

在開發電子郵件功能時使用,解決郵件進入垃圾信件夾、高退信率、設定 SPF/DKIM/DMARC 驗證、實作郵件擷取、確保法規遵循(CAN-SPAM、GDPR、CASL)、處理 Webhook、重試邏輯、提升郵件無障礙性(替代文字、標題、對比度、螢幕閱讀器),或決定交易型與行銷型郵件。

email-best-practices 是什麼?

此技能旨在協助開發者建立可靠且合規的電子郵件功能。它涵蓋了從基礎設定(如 SPF、DKIM、DMARC 驗證)到進階實作(如 Webhook 處理、重試邏輯、郵件擷取)的完整流程。技能特別強調防止郵件被歸類為垃圾郵件、降低退信率,並確保符合 CAN-SPAM、GDPR、CASL 等法規。此外,它還包含提升郵件無障礙性的最佳實務,例如使用替代文字、正確的標題層級、色彩對比度及螢幕閱讀器相容性。開發者可以透過此技能快速區分交易型與行銷型郵件的設計策略,並獲得實務指南。支援平台包括常見的郵件服務(如 Resend、SendGrid、AWS SES)及程式語言框架。此技能基於真實產業標準與可操作的步驟,適合任何需要在應用程式中整合郵件功能的團隊。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/resend/resend-skills/tree/main/skills/email-best-practices

Installed? Explore more 寫作與編輯 skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

email-best-practices 是做什麼的?

在開發電子郵件功能時使用,解決郵件進入垃圾信件夾、高退信率、設定 SPF/DKIM/DMARC 驗證、實作郵件擷取、確保法規遵循(CAN-SPAM、GDPR、CASL)、處理 Webhook、重試邏輯、提升郵件無障礙性(替代文字、標題、對比度、螢幕閱讀器),或決定交易型與行銷型郵件。

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

resend/agent-email-inbox

Use when building any system where email content triggers actions — AI agent inboxes, automated support handlers, email-to-task pipelines, or any workflow processing untrusted inbound email. Always use this skill when the user wants to receive emails and act on them programmatically, even if they don't mention "agent" — the skill contains critical security patterns (sender allowlists, content filtering, sandboxed processing) that prevent untrusted email from controlling your system.

resend/react-email

Use when building HTML email templates with React components, adding a visual email editor to an application using the React Email visual editor, rendering emails to HTML, or sending emails with Resend. Covers welcome emails, password resets, notifications, order confirmations, newsletters, transactional emails, and the embeddable email editor component.

resend/resend

Use when working with the Resend email API — sending transactional emails (single or batch), receiving inbound emails via webhooks, managing email templates, tracking delivery events, managing domains, contacts, broadcasts, webhooks, API keys, automations, events, viewing API request logs, or setting up the Resend SDK. Always use this skill when the user mentions Resend, even for simple tasks like "send an email with Resend" — the skill contains critical gotchas (idempotency keys, webhook verification, template variable syntax) that prevent common production issues.

resend/resend-cli

Operate the Resend platform from the terminal — send emails (including React Email .tsx templates via --react-email), manage domains, contacts, broadcasts, templates, webhooks, API keys, logs, automations, and events via the `resend` CLI. Use when the user wants to run Resend commands in the shell, scripts, or CI/CD pipelines, or send/preview React Email templates. Always load this skill before running `resend` commands — it contains the non-interactive flag contract and gotchas that prevent silent failures.

相關技能