Communitygithub.com

YepAPI/技能

使用 Resend 與 React Email 處理交易郵件——JSX 模板與可靠送達率。

技能 是什麼?

這項技能提供了一套以 Resend 及 React Email 為基礎的交易郵件解決方案。透過 React 元件定義郵件模板,支援型別安全的 JSX 語法,並為每種郵件類型建立獨立元件以動態傳遞內容。同時包含郵件發送隊列管理(避免阻塞 API 回應)、退信監控(自動移除無效位址並更新記錄)、必備的取消訂閱連結(符合 CAN-SPAM 及 GDPR 法規)、SPF/DKIM/DMARC DNS 記錄設定以提升送達率,以及開發環境的測試模式(Resend 測試模式或 Ethereal)。最後強制要求提供純文字備用版本,確保郵件可讀性。該技能適用於需要高可靠郵件發送的後端服務、SaaS 平台或任何使用 Node.js 與 React 的生態系統。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/YepAPI/skills/tree/HEAD/skills/email

在你喜歡的 AI 中提問

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

說明文件

電子郵件

規則

  • 使用 Resend + React Email 處理交易郵件——JSX 模板,型別安全
  • 模板模式:每種郵件類型一個 React 元件,透過 props 傳遞動態內容
  • 將長時間執行的發送任務加入佇列——不阻塞等待郵件送達的 API 回應
  • 退信處理:監控退信、移除無效位址、更新使用者記錄
  • 取消訂閱連結:法律要求(CAN-SPAM、GDPR)——一鍵取消訂閱
  • SPF/DKIM/DMARC:設定 DNS 記錄以確保送達率
  • 測試郵件:開發環境使用 Resend 測試模式或 Ethereal
  • 純文字備用:務必在 HTML 之外提供文字版本

Individual skills in this repo

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

YepAPI/skills

WCAG 2.1 AA — semantic HTML, keyboard navigation, screen readers.

YepAPI/skills

Experiment setup, variant splitting, statistical significance, and feature flag integration.

YepAPI/skills

CRUD generators, data tables, user management, role-based access, and bulk operations.

YepAPI/skills

Monitor what ChatGPT and Gemini say about your brand using YepAPI.

YepAPI/skills

Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.

YepAPI/skills

Commander.js, interactive prompts with Clack, spinners, colors, config files, exit codes, and npm publishing.

YepAPI/skills

cmdk integration, Cmd+K trigger, fuzzy search, grouped actions, keyboard navigation, and dynamic action registration.

YepAPI/skills

Content planning with trend and sentiment data from YepAPI.

YepAPI/skills

Content calendar, keyword-driven planning, and content briefs.

YepAPI/skills

Theme switching with CSS variables, system preference detection, next-themes, and persistence.

YepAPI/skills

Threaded comments, @mentions, reactions, moderation queue, optimistic UI, and cursor pagination.

YepAPI/skills

Competitive analysis between domains using YepAPI.

YepAPI/skills

Layout grids, KPI cards, data tables with sorting/filtering, sidebar navigation, and responsive breakpoints.

YepAPI/skills

Data encryption — TLS everywhere, AES-256-GCM for PII, bcrypt passwords, encrypted backups.

YepAPI/skills

Chart patterns with Recharts/Nivo/D3, responsive containers, color scales, and accessibility.

YepAPI/skills

Drizzle schema definition, push vs migrate, type-safe queries, relations, transactions, and prepared statements.

YepAPI/skills

Upload handling, resize/compress, CDN delivery, blur placeholders, and next/image patterns.

YepAPI/skills

Local business and Google Maps research using YepAPI.

YepAPI/skills

Cursor-based pagination, IntersectionObserver, virtualized lists with @tanstack/react-virtual, and scroll position restoration.

YepAPI/skills

Chat UI components, streaming responses with AI SDK, context window management, and RAG patterns.

相關技能