agentleFS
DobroslavRadosavljevicDobroslavRadosavljevic/cabrakan/.agents/skills/react-email/SKILL.md

react-email

Skill1 starsChanged 3 months agoMITView on GitHub

Build, review, debug, render, migrate, or plan HTML email templates with React Email (react-email v6+). Use for react-email, create-email, @react-email/editor, @react-email/render, @react-email/ui, email templates, Tailwind email styling, pixelBasedPreset, render/toPlainText, PreviewProps, email CLI (email dev/export/build), transactional emails, newsletters, Resend/Nodemailer/SendGrid/Mailgun/Postmark/SES integrations, and upgrades from @react-email/components.

15 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use agent-email-inbox, email-best-practices and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • igoroliveirgSkill

    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.

    Also in 4 projects that use this

  • sirakinbSkill

    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.

    Also in 9 projects that use this

  • resendSkill

    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.

    Also in 4 projects that use this

  • VercelSkill

    resend

    Emulated Resend email API for local development and testing. Use when the user needs to send emails locally, test transactional email flows, implement magic link or verification code auth, inspect sent emails, manage domains/contacts/API keys, or work with the Resend API without sending real emails. Triggers include "Resend API", "emulate Resend", "send email locally", "test email", "magic link", "verification email", "email inbox", "RESEND_BASE_URL", or any task requiring a local email API.

    Also in 6 projects that use this

  • VercelSkill

    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.

    Also in 3 projects that use this

  • VercelSkill

    web-design-guidelines

    Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

    Also in 4 projects that use this

  • +1 more from vercel-labs

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 4 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill for HTML emails built with React Email (react-email 6.x): components, Tailwind styling, CLI preview, render, ESP sending, …

    line 8
  2. Distinctive:

    Prefer the project's existing email folder layout, brand tokens, and ESP.

    line 25
  3. Distinctive:

    Verify the smallest useful surface (preview, render smoke, typecheck, send dry-run).

    line 26
  4. Very specific:

    Import components and render from react-email, not @react-email/components (removed as the primary entry in v6).

    line 30
  5. Very specific:

    Always ship HTML and plain text (render(..., { plainText: true }) or ESP auto-plaintext).

    line 37
  6. Very specific:

    Use verified sending domains.

    line 38
  7. Distinctive:

    If the user did not specify brand/assets, ask briefly (or proceed with placeholders they can swap):

    line 42
  8. Distinctive:

    Prefer repository-owned commands.

    line 51

“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

React Email

Use this skill for HTML emails built with React Email (react-email 6.x): components, Tailwind styling, CLI preview, render, ESP sending, and the optional visual editor.

Workflow

  1. Inspect the local surface before changing code:
    • Packages: react-email (components + CLI + render), optional @react-email/editor, @react-email/ui, peers react / react-dom 18+.
    • Legacy installs still on @react-email/components or renderAsync → treat as a v5→v6 migration (see setup-cli.md).
    • Emails directory (default emails/), static/ assets, email script, shared Tailwind config if any.
    • How mail is sent: render + ESP HTML, Resend react: prop, or static email export.
  2. Refresh docs when versions are unclear or work touches Tailwind 4 email behavior, the editor, monorepos, or major upgrades. Start from source-map.md.
  3. Route deeper detail:
    • Install, CLI, monorepo, PreviewProps, static files: setup-cli.md.
    • Components API and structure: components.md.
    • Tailwind, pixelBasedPreset, client CSS limits: styling.md.
    • render, plain text, ESP integrations: render-send.md.
    • Embeddable TipTap editor: editor.md.
    • i18n and common template shapes: patterns.md.
  4. Prefer the project's existing email folder layout, brand tokens, and ESP. Do not invent a second emails package unless asked.
  5. Verify the smallest useful surface (preview, render smoke, typecheck, send dry-run).

Core Judgment

  • Import components and render from react-email, not @react-email/components (removed as the primary entry in v6).
  • render is async. Never use renderAsync (removed). Prefer await render(<Email />) at send time over email export unless a non-JS backend forces static HTML.
  • Style with <Tailwind config={{ presets: [pixelBasedPreset] }}> — email clients do not support rem. Avoid flex/grid, sm:/md:/dark: utilities, SVG/WEBP images.
  • Structure: <Html> → <Tailwind> → <Head /> → <Body> with <Preview> first inside <Body>. One <Container> for the main column (~600px / max-w-xl). Use Section / Row / Column for layout tables.
  • Buttons need box-border. Borders need an explicit style (border-solid). Linked images need meaningful alt (never decorative-empty alt on a link).
  • Props are TypeScript — never put ESP mustache ({{name}}) in JSX. If a host requires mustache samples, put them only in .PreviewProps.
  • Images: absolute CDN URLs in production; local emails/static/ only works in email dev. Gate with a production base URL env.
  • Always ship HTML and plain text (render(..., { plainText: true }) or ESP auto-plaintext). Keep HTML under ~102KB (Gmail clip).
  • Use verified sending domains. Prefer bun / bunx in command examples.

Clarifying Before New Templates

If the user did not specify brand/assets, ask briefly (or proceed with placeholders they can swap):

  1. Primary brand color (hex)
  2. Logo URL or file (PNG/JPEG only)
  3. Tone (transactional / marketing / minimal)
  4. Production asset base URL

Verification

Prefer repository-owned commands. Cover the relevant subset:

  • bun pm ls react-email (and @react-email/editor / @react-email/ui if used).
  • bun run email / bunx email dev --dir emails — preview compiles and PreviewProps render.
  • await render(<Template {...props} />) and optional { plainText: true } smoke in a script or test.
  • Typecheck template props and default exports.
  • ESP dry-run or sandbox send when changing send paths (Resend react:, Nodemailer html, etc.).
  • Client spot-check notes for Outlook/Gmail when layout or borders change.

Report which checks ran, which did not, and version assumptions that remain.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.