Command Palette

Search for a command to run...

YepAPI
Free · All Tools

Email Marketing Agent Skill

Newsletter systems, drip campaigns, template builders with Resend/SendGrid, and list management.

emailnewslettercampaignsresend

The Skill

Full content, every format. Copy it, download it, or install with one command.

SKILL.md
---
description: Newsletter systems, drip campaigns, template builders with Resend/SendGrid, and list management.
homepage: https://yepapi.com/skills/email-marketing
metadata:
  tags: [email, newsletter, campaigns, resend]
---

# Email Marketing

## Rules

- Resend or SendGrid for sending — Resend for developer-first DX, SendGrid for high volume
- React Email for templates — JSX components, type-safe props, preview in browser
- Double opt-in: send confirmation email before adding to list — required for GDPR compliance
- Unsubscribe: one-click `List-Unsubscribe` header + visible link in every email — required by CAN-SPAM
- List segmentation: store subscriber attributes (signup source, plan, activity) for targeted campaigns
- Drip campaigns: define as a sequence of steps with delays — store current step per subscriber, process via cron/queue
- Template structure: preheader text, header, body, CTA button, footer with unsubscribe — keep under 100KB
- Track opens/clicks via Resend webhooks or SendGrid Event Webhook — store events for analytics

## Drip Campaign Pattern

```typescript
const drip = [
  { delay: "0d", template: "welcome" },
  { delay: "2d", template: "getting-started" },
  { delay: "5d", template: "feature-highlight" },
  { delay: "14d", template: "upgrade-prompt" },
];
```

Process with a daily cron: find subscribers where `currentStep < drip.length` and `lastSentAt + delay < now`.

## Avoid

- Single opt-in without confirmation — leads to spam complaints and blacklisting
- Sending from a no-reply address — hurts deliverability and trust
- No plain text fallback — some clients block HTML
- Missing SPF/DKIM/DMARC DNS records — emails land in spam
- Sending to unengaged subscribers — prune inactive addresses quarterly

Install

Why Use the Email Marketing Skill?

Without this skill, your AI guesses at email marketing patterns. It might hallucinate deprecated APIs, use outdated conventions, or miss best practices entirely. With it, your AI follows a proven ruleset — every suggestion aligns with current standards.

Drop this skill into your project and your AI instantly knows the rules. Better code suggestions, fewer errors, faster shipping.

Try These Prompts

These prompts work better with the Email Marketing skill installed. Your AI knows the context and writes code that fits.

"Build a newsletter system with Resend, subscriber management, and drip campaign automation"

"Create email templates with React Email that render consistently across all clients"

"Set up an email marketing workflow with segmentation, A/B subject lines, and analytics"

Email Marketing skill — FAQ

It covers newsletter systems, drip campaigns, template builders with Resend and SendGrid, and list management. Your AI builds email marketing workflows with segmentation and A/B testing.

Run `npx skills add YepAPI/skills --skill email-marketing` in your project root. This copies the skill file into your repo where your AI coding tool can read it automatically.

The skill covers Resend for developer-friendly APIs and React Email templates, plus SendGrid for high-volume sending. Resend is simpler to set up; SendGrid offers more enterprise features.

Want more skills?

Browse all 110 free skills for builders.

See All Skills