react-email

A toolkit for building responsive HTML emails from React components, such as welcome messages, password resets, notifications, and order confirmations.

In plain words
What is it for?
Use it to create transactional email templates, add brand styling and translations, preview messages, and connect them to email services such as Resend.
Why use it?
It provides reusable email components and previews while handling the differences between email clients.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/agentset-ai/agentset/react-email
Any agent
npx skills add agentset-ai/agentset --skill react-email
Clone the repo
git clone --depth 1 https://github.com/agentset-ai/agentset

Made for: Claude Code, Codex.

Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,382 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00057 $0.03382
Opus 5 $0.00028 $0.01691
Sonnet 5 $0.00011 $0.00676
Haiku 4.5 $0.00006 $0.00338

Measured 2d ago against content hash c1b359291f9b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

react-email scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/react-email/SKILL.md · 457 lines

How it starts

The opening of the file, as written. The whole thing — 457 lines — stays where its author put it; the contents beside it link to each section on GitHub.

React Email

Build and send HTML emails using React components - a modern, component-based approach to email development that works across all major email clients.

Installation

New Project

Scaffold a new React Email project:

npx create-email@latest
cd react-email-starter
npm install
npm run dev

This creates a react-email-starter folder with sample templates. Also works with yarn, pnpm, or bun.

Existing Project

Add React Email to an existing codebase:

  1. Install dependencies:
npm install @react-email/components
npm install react-email @react-email/preview-server -D
  1. Create an emails directory:
mkdir emails
  1. Add a preview script to package.json:
{
  "scripts": {
    "email:dev": "email dev"
  }
}
  1. Start the preview server:
npm run email:dev

The --dir flag specifies where email templates are stored. Adjust the path to match your project structure (e.g., src/emails, app/emails).

Brand Setup (Required First Step)

Before creating any email template, gather brand information from the user. This ensures visual consistency across all emails.

Required Brand Information

Ask the user for:

  1. Brand colors

    • Primary color (main brand color for buttons, links, accents)
    • Secondary color (supporting color for backgrounds, borders)
    • Text color (default: #1a1a1a for light mode)
    • Background color (default: #f4f4f5 for light mode)
  2. Logo

    • Logo image URL (must be absolute URL, PNG or JPEG)
    • Logo dimensions or aspect ratio preference
    • Logo placement preference (centered, left-aligned)
    • Ask user for file and path of the local file if the logo is not a publicly accessible URL.
  3. Typography (optional)

    • Preferred font family (default: system fonts)
    • Custom web font URL if applicable
  4. Style preferences (optional)

    • Modern/minimal vs. classic/traditional
    • Rounded corners vs. sharp edges
    • Spacing density (compact vs. spacious)
    • Never add emojis unless the user explicitly requests them.

Read the full file on GitHub · 457 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 457 lines · 57 tokens per session scan A c1b359291f9b

Subscribe to this mod's changes

react-email is a skill published in the GitHub repository agentset-ai/agentset (2,079 stars, last pushed 1mo ago), licensed MIT. It adds 57 tokens to every session and 3,382 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

react-query-setup

Set up @trpc/tanstack-react-query with createTRPCContext(), TRPCProvider, useTRPC() hook, queryOptions/mutationOptions factories, query invalidation via queryClient.invalidateQueries with queryFilter, and type inference with inferInput/inferOutput.

trpc/trpc · 60 tokens

copilotkit-upgrade

Use when migrating a CopilotKit v1 application to v2 -- updating package imports, replacing deprecated hooks and components, switching from GraphQL runtime to AG-UI protocol runtime, and resolving breaking API changes.

CopilotKit/CopilotKit · 48 tokens

flags

Use when you need to check feature flag states, compare channels, or debug why a feature behaves differently across release channels.

react/react · 26 tokens

material-ui-tailwind

Integrates Material UI with Tailwind CSS v4 using cascade layers (enableCssLayer, @layer order) and documents Tailwind v3 interoperability (preflight, important, injectFirst, portals). Use when combining MUI with Tailwind utilities, slotProps className, or theme token bridges.

mui/material-ui · 67 tokens

migrate-oxlint

Guide for migrating a project from ESLint to Oxlint. Use when asked to migrate, convert, or switch a JavaScript/TypeScript project's linter from ESLint to Oxlint.

oxc-project/oxc · 44 tokens