Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Create and send transactional emails using React Email. Covers templates, layout integration, and sending logic.
.claude/skills/aiskillstore-email-handler/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-08 | ✗→✓ | ▲ Improved | -25% | 0% |
| case-19 | ✗→✓ | ▲ Improved | -24% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -16% | 0% |
| case-01 | ✗→✓ | ▲ Improved | -30% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -34% | 0% |
You are the Email Specialist, responsible for creating beautiful transactional emails and ensuring they are delivered correctly.
src/emails/.src/emails/components/Layout.tsx.src/lib/email/sendMail.ts and render from @react-email/components to dispatch emails.Location: src/emails/{EmailName}.tsx
Every email must:
Html, Text, Button etc. from @react-email/components.<Layout previewText="...">.name, url, expiresAt).Example Template:
tsximport * as React from "react"; import { Button } from "@react-email/button"; import { Html } from "@react-email/html"; import { Text } from "@react-email/text"; import Layout from "./components/Layout"; import { appConfig } from "@/lib/config"; interface MyEmailProps { username: string; actionUrl: string; } export default function MyEmail({ username, actionUrl }: MyEmailProps) { return ( <Html> <Layout previewText="Action Required"> <Text>Hi {username},</Text> <Text>Please click the button below:</Text> <Button href={actionUrl} className="bg-primary text-primary-foreground rounded-md py-2 px-4 mt-4" > Click Me </Button> </Layout> </Html> ); }
Location: API Routes or Server Actions (e.g., src/app/api/...).
To send an email:
render from @react-email/components and your template.sendMail from @/lib/email/sendMail.sendMail.Example Usage:
typescriptimport { render } from "@react-email/components"; import MyEmail from "@/emails/MyEmail"; import sendMail from "@/lib/email/sendMail"; // Inside an async function const html = await render( MyEmail({ username: "John", actionUrl: "https://myapp.com/action" }) ); await sendMail( "user@example.com", "Subject Line Here", html );
src/emails/components/Layout.tsx handles the Head, Tailwind config, Body, and Footer automatically.className="text-muted").appConfig from @/lib/config for project names, colors, and support emails.When asked to "Create a welcome email" or "Send a notification":
.tsx file in src/emails/.| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-08 | fail→pass | 16,310 | 7,288 | -55% | 1 | 1 | 0% | 3,201 | 2,391 | -25% | 0 | 0 | — |
case-19 | fail→pass | 17,043 | 8,652 | -49% | 1 | 1 | 0% | 3,475 | 2,632 | -24% | 0 | 0 | — |
case-07 | fail→pass | 12,308 | 6,146 | -50% | 1 | 1 | 0% | 2,543 | 2,131 | -16% | 0 | 0 | — |
case-01 | fail→pass | 16,967 | 7,948 | -53% | 1 | 1 | 0% | 3,467 | 2,431 | -30% | 0 | 0 | — |
case-02 | fail→pass | 17,957 | 6,988 | -61% | 1 | 1 | 0% | 3,564 | 2,337 | -34% | 0 | 0 | — |
case-03 | fail→pass | 18,149 | 13,506 | -26% | 1 | 1 | 0% | 3,816 | 3,977 | +4% | 0 | 0 | — |
case-04 | pass→pass | 10,504 | 8,497 | -19% | 1 | 1 | 0% | 1,986 | 2,491 | +25% | 0 | 0 | — |
case-05 | pass→pass | 15,585 | 10,604 | -32% | 1 | 1 | 0% | 2,721 | 2,765 | +2% | 0 | 0 | — |
case-06 | pass→pass | 14,251 | 9,467 | -34% | 1 | 1 | 0% | 2,582 | 2,713 | +5% | 0 | 0 | — |
case-09 | fail→pass | 14,358 | 9,431 | -34% | 1 | 1 | 0% | 3,013 | 2,708 | -10% | 0 | 0 | — |
case-10 | fail→pass | 15,623 | 9,457 | -39% | 1 | 1 | 0% | 3,113 | 2,739 | -12% | 0 | 0 | — |
case-11 | fail→pass | 15,979 | 9,240 | -42% | 1 | 1 | 0% | 3,291 | 2,807 | -15% | 0 | 0 | — |
case-12 | fail→pass | 11,581 | 9,148 | -21% | 1 | 1 | 0% | 2,011 | 2,747 | +37% | 0 | 0 | — |
case-13 | fail→fail | 17,716 | 8,238 | -53% | 1 | 1 | 0% | 3,645 | 2,563 | -30% | 0 | 0 | — |
case-14 | fail→pass | 17,340 | 8,103 | -53% | 1 | 1 | 0% | 3,337 | 2,357 | -29% | 0 | 0 | — |
case-15 | fail→pass | 19,132 | 7,061 | -63% | 1 | 1 | 0% | 3,846 | 2,351 | -39% | 0 | 0 | — |
case-16 | pass→fail | 18,719 | 9,475 | -49% | 1 | 1 | 0% | 3,764 | 2,702 | -28% | 0 | 0 | — |
case-17 | fail→pass | 14,478 | 9,171 | -37% | 1 | 1 | 0% | 2,966 | 2,759 | -7% | 0 | 0 | — |
case-18 | fail→pass | 13,432 | 6,972 | -48% | 1 | 1 | 0% | 2,538 | 2,219 | -13% | 0 | 0 | — |
case-20 | fail→pass | 19,957 | 7,986 | -60% | 1 | 1 | 0% | 3,940 | 2,446 | -38% | 0 | 0 | — |
case-21 | fail→pass | 15,278 | 10,095 | -34% | 1 | 1 | 0% | 3,203 | 3,113 | -3% | 0 | 0 | — |
case-22 | fail→pass | 15,191 | 9,204 | -39% | 1 | 1 | 0% | 2,931 | 2,745 | -6% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +73 percentage points is the difference between those two pass rates over the 22 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.