Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计通过

react-emailReact 邮件

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

955

周安装

39

GitHub Stars

10

下载量

309
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:react-email(React 邮件)
来源仓库:https://github.com/oakoss/agent-skills
仓库路径:skills/react-email
安装命令:
npx skills add https://github.com/oakoss/agent-skills --skill react-email
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/oakoss/agent-skills --skill react-email

简介

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。

  • 它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。
  • 使用时需要结合项目现有设计系统、路由和构建方式。
  • 避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。
  • react-email 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

React Email

Overview

React Email is a library for building responsive HTML emails using React components. It provides a set of unstyled, accessible components that render to email-client-compatible HTML. Supports inline styles, Tailwind CSS via a wrapper component, custom web fonts, and rendering to both HTML and plain text.

When to use: Transactional emails (welcome, password reset, receipts), marketing templates, email design systems, any project that renders emails server-side.

When NOT to use: Static HTML email templates with no dynamic content, projects that already use a dedicated email builder (MJML, Maizzle), or when you only need plain-text emails.

Quick Reference

PatternAPIKey Points
Document structureHtml, Head, BodyHtml wraps everything, Head loads fonts/meta
Content containerContainerCenters content, sets max-width
Layout gridSection, Row, ColumnTable-based layout for email clients
Text contentText, HeadingHeading accepts as prop for h1-h6
LinksLinkStandard anchor, href required
Call-to-actionButtonRenders as link styled as button, href required
ImagesImgAlways set width, height, alt
DividerHrHorizontal rule between sections
Inbox previewPreviewSets preview text shown in inbox list
Custom fontsFontPlace inside Head, set webFont and fallbackFontFamily
Tailwind stylingTailwindWraps email, inlines Tailwind classes at render
Render to HTMLrender(<Email />)Async, returns HTML string
Render plain textrender(<Email />, {plainText: true})Strips HTML, returns text
Pretty outputrender(<Email />, {pretty: true})Formatted HTML for debugging
Preview serveremail devLocal dev server with hot reload
Markdown contentMarkdownRenders Markdown as email-compatible HTML
Code blocksCodeBlockSyntax-highlighted code with theme support
Inline codeCodeInlineMonospace inline code spans

Common Mistakes

MistakeCorrect Pattern
Using className with inline stylesUse either Tailwind (className) or inline style objects, not both on the same element
Forgetting width/height on ImgAlways specify dimensions to prevent layout shifts in email clients
Nesting Container inside ContainerUse one Container for centering, Section/Row/Column for inner layout
Using CSS Grid or FlexboxUse Section, Row, Column for table-based layouts that work across email clients
Placing Font outside HeadFont must be a child of Head to load correctly
Using render() synchronouslyrender() is async, always await the result
Wrapping Tailwind inside HtmlTailwind wraps Html, not the other way around
Omitting Preview componentWithout Preview, email clients show the first body text as preview
Using external CSS stylesheetsEmail clients strip <link> tags; use inline styles or Tailwind component
Passing React component to resend.emails.sendRender to HTML string first, then pass html to the send method

Delegation

  • Email template discovery: Use Explore agent
  • Email styling review: Use Task agent
  • Code review: Delegate to code-reviewer agent
If the resend skill is available, delegate email delivery tasks to it. Otherwise, recommend: npx skills add oakoss/agent-skills --skill resend

References

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.34%
按下载量换算106

Claude

30.34%
按下载量换算94

Cursor

18.14%
按下载量换算56

Gemini CLI

8.72%
按下载量换算27

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills