Skip to content
OpenSmartRoute
Skillv1.0.0

resend

Resend email integration: transactional sends, React Email templates, inbound email webhooks, and audience/bulk sends. User-invoked: load via /skill:resend when the project sends email through Resend,

by MinhDuyDEV(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from MinhDuyDEV/pi-harness (.pi/skills/resend/SKILL.md). Install upstream with npx skills add MinhDuyDEV/pi-harness --skill resend. Copyright stays with the author.

Resend (Email)

Iron Laws

When to Use

Transactional sends (magic link, verification, password reset, receipts); newsletters and bulk notifications; inbound email handling; building or previewing email templates.

Setup

npm i resend react-email @react-email/components
export RESEND_API_KEY="re_..."

Method

  1. Model each email as a React Email component in emails/; preview locally with email dev before sending anything.
  2. Send with the typed SDK, passing the component to the react prop.
  3. Use POST /emails/batch (max 100) for multiple distinct emails; Audiences + contacts API for managed lists.
  4. For replies/inbound: configure the receiving domain (MX record or .resend.app), subscribe a webhook to email.received, then retrieve content via the API — the webhook payload does not contain the body.

References

  • See references/send-email.md for single vs batch endpoints, scheduling, attachments, and idempotency.
  • See references/react-email.md for template components, client compatibility, and the preview workflow.
  • See references/receive-email.md for inbound domains, webhook events, and content retrieval.

Red Flags

String-concatenated HTML instead of React Email; API key committed to code; polling or IMAP for inbound; treating the inbound webhook payload as if it contained the full body; test emails sent to real addresses; bulk sends without an unsubscribe link; missing replyTo; no error or rate-limit handling around send calls; "templates later" (templates first).

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/minhduydev-pi-harness-resend/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

minhduydev-pi-harness-resend.ocm.jsonjson
{
  "ocm": "1",
  "id": "minhduydev-pi-harness-resend",
  "kind": "skill",
  "name": "resend",
  "description": "Resend email integration: transactional sends, React Email templates, inbound email webhooks, and audience/bulk sends. User-invoked: load via /skill:resend when the project sends email through Resend, needs React Email templates, or handles inbound email webhooks.",
  "publisher": "MinhDuyDEV",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "integration",
      "mcp",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Resend email integration: transactional sends, React Email templates, inbound email webhooks, and audience/bulk sends. User-invoked: load via /skill:resend when the project sends email through Resend, needs React Email templates, or handles inbound email webhooks."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/MinhDuyDEV/pi-harness",
      "path": ".pi/skills/resend/SKILL.md",
      "ref": "b71a45f712913c93e0d5e4c8a9e27173ebceab19",
      "url": "https://github.com/MinhDuyDEV/pi-harness/blob/b71a45f712913c93e0d5e4c8a9e27173ebceab19/.pi/skills/resend/SKILL.md",
      "key": "MinhDuyDEV/pi-harness/.pi/skills/resend/SKILL.md"
    }
  },
  "instructions": "# Resend (Email)\n\n## Iron Laws\n\n<EXTREMELY-IMPORTANT>\n- **React Email for templates, not string-concatenated HTML.** Components live in `emails/`, typed props, compiled to email-client-compatible HTML. Inline styles only.\n- **Typed SDK send.** `resend.emails.send({ ..., react: Template(props) })` — not hand-built JSON against the raw API.\n- **Inbound email arrives via webhook, not polling or IMAP.** The `email.received` webhook carries metadata only — fetch body and attachments through the Receiving/Attachments APIs.\n- **API key in env (`RESEND_API_KEY`), never in code.**\n- **Single `to:` for ",
  "cost": {
    "context_tokens": 549
  }
}

Fetch it by URL: GET /api/v1/registry/minhduydev-pi-harness-resend/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.