Skip to main content
skill CX Codex

email-sequence · openclaudia — Claude Code skill: drip campaigns

A skill that turns your coding agent into an email marketer: welcome series, abandoned cart, re-engagement and launch sequences.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add OpenClaudia/openclaudia-skills --skill email-sequence -a claude-code
Open on GitHub

What email-sequence does

The skill makes the agent write email sequences instead of guessing at copy. Before anything else it collects inputs: sequence type, product, audience, goal, sender, tone, ESP and existing open/click/conversion rates for benchmarking. Skip that step and you get generic text nobody reads.

Inside are rules for subject lines (30–50 characters, key word first), preview text (40–90 characters, never a repeat of the subject) and email structure: hook, 3–8 sentence body, one CTA, optional PS line. A timing table covers B2B, B2C, newsletters and urgent sends, and segmentation is split by behaviour, demographics, lifecycle stage and engagement level.

Templates ship for a 5-email welcome series, a 3-email abandoned cart flow, a 4-email re-engagement run and a 6-email product launch. Each email gets timing, subject formula, content focus and CTA. Only Bash is allowed, so the skill drafts copy and sequence logic — it does not send anything.

What it helps with

  • build a welcome series for new signups
  • win back shoppers who abandoned their cart
  • write launch emails before a product release
  • re-engage subscribers who stopped opening
  • plan send timing and audience segments

Example prompts for the agent

  • write a 5-email welcome series for a SaaS product, friendly tone
  • build a 3-email abandoned cart sequence for my store
  • draft a re-engagement series for subscribers with no opens in 60 days

How to install email-sequence

1Skills CLI (Vercel)

npx skills add OpenClaudia/openclaudia-skills --skill email-sequence -a claude-code

2Manually: put the files in place

~/.claude/skills/email-sequence/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/email-sequence/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about email-sequence

How do I install email-sequence in Claude?

Run npx skills add OpenClaudia/openclaudia-skills --skill email-sequence -a claude-code. The skill lands in ~/.claude/skills/email-sequence/SKILL.md.

What does email-sequence do?

It helps the agent write email sequences: welcome, abandoned cart, re-engagement, product launch and onboarding. Templates include timing, subject formulas and CTAs.

What tools does the skill need?

Only Bash is allowed. It does not send email — you move the copy and sequence logic into your own ESP.

Source text

SKILL.md · MIT
---
name: email-sequence
description: >
  Create email drip campaigns, nurture sequences, and automated email flows. Includes templates
  for welcome series, abandoned cart, re-engagement, product launch, and onboarding sequences.
  Trigger phrases: "email sequence", "drip campaign", "nurture sequence", "email flow",
  "welcome series", "abandoned cart emails", "onboarding emails", "email automation",
  "product launch emails", "re-engagement campaign", "send email", "send sequence".
allowed-tools:
  - Bash
---

# Email Sequence Skill

You are an expert email marketer specializing in automated sequences and drip campaigns.
Your job is to create high-converting email sequences that nurture leads, drive sales,
and retain customers.

## Gathering Requirements

Before creating any sequence, collect these inputs:

1. **Sequence type** - Welcome, abandoned cart, re-engagement, launch, onboarding, or custom.
2. **Product/service** - What is being sold or promoted?
3. **Target audience** - Who receives this sequence? Segment details.
4. **Primary goal** - Convert, activate, retain, re-engage, upsell?
5. **Sender** - Who is the "from" name and email? (Founder, brand, team member)
6. **Tone** - Friendly, professional, urgent, educational, witty.
7. **ESP** - What email platform? (Affects merge tags and HTML capabilities.)
8. **Existing data** - Open rates, click rates, conversion rates for benchmarking.

## Universal Email Principles

### Subject Line Rules
- Keep between 30-50 characters (6-10 words).
- Front-load the most important word.
- Use lowercase for a casual feel, title case for professional.
- Never use ALL CAPS for the full subject line.
- Include personalization (first name) sparingly, not in every email.
- A/B test every subject line in your ESP.

### Preview Text Rules
- Always write custom preview text (40-90 characters).
- Do not repeat the subject line.
- Complement the subject line by adding context or intrigue.
- If left empty, ESPs pull the first line of body copy, which often looks terrible.

### Email Structure
1. **Hook** (first 2 lines) - Must earn the scroll. Ask a question, state a bold claim,
   or reference something personal.
2. **Body** (3-8 sentences) - One idea per email. Do not try to cover everything.
3. **CTA** (1 primary) - One clear action. Link it 2-3 times in the body.
4. **PS line** (optional) - Second-most-read part of an email. Use for urgency or bonus info.

### Send Timing Guidelines

| Audience | Best Days | Best Times | Why |
|----------|-----------|------------|-----|
| B2B / SaaS | Tue, Wed, Thu | 9-11am local | Workday focus, inbox reviewed early |
| B2C / Ecommerce | Thu, Fri, Sat | 10am or 7-9pm local | Shopping mindset, evening browsing |
| Newsletter | Tue or Thu | 7-9am local | Morning reading habit |
| Urgent / Sales | Any day | Within 1 hour of trigger | Strike while interest is hot |

### Segmentation Rules

Segment sequences based on:
- **Behavior** - Pages visited, features used, emails opened, links clicked.
- **Demographics** - Industry, company size, role, location.
- **Lifecycle stage** - New lead, trial user, paying customer, churned user.
- **Engagement level** - Active (opened in 30 days), Inactive (no opens in 60+ days).
- **Source** - How did they enter the sequence? Organic, paid, referral, event.

## Sequence Templates

### 1. Welcome Series (5 Emails)

**Goal:** Introduce the brand, build trust, drive first conversion.
**Trigger:** New email signup or account creation.

| # | Timing | Subject Line Formula | Content Focus | CTA |
|---|--------|---------------------|---------------|-----|
| 1 | Immediate | "Welcome to [Brand] - here's what to expect" | Deliver promised lead magnet. Set expectations for email frequency. Quick brand story (2-3 sentences). | Access the resource / Explore the product |
| 2 | Day 2 | "[Name], here's the #1 mistake [audience] make" | Educate on the core problem your product solves. Share a surprising insight. Build authority. | Read the full guide / Watch the video |
| 3 | Day 4 | "How [Customer] achieved [specific result]" | Social proof through a customer story. Include specific numbers and timeline. | See the case study / Start free trial |
| 4 | Day 7 | "The fastest way to [desired outcome]" | Product-focused: show how your product solves the problem from Email 2. Keep it benefit-driven, not feature-focused. | Start free trial / Book a demo |
| 5 | Day 10 | "Quick question, [Name]" | Personal check-in from a real person. Ask what they are struggling with. Offer help. Soft sell. | Reply to this email / Book a call |

### 2. Abandoned Cart Series (3 Emails)

**Goal:** Recover abandoned purchases.
**Trigger:** Cart created but checkout not completed within 1 hour.

| # | Timing | Subject Line Formula | Content Focus | CTA |
|---|--------|---------------------|---------------|-----|
| 1 | 1 hour | "You left something behind" | Friendly reminder. Show the product image and name. No discount yet. Remove friction: "Need help? Reply to this email." | Complete your order |
| 2 | 24 hours | "Still thinking about [Product]?" | Address objections: shipping, returns, quality. Add 1-2 reviews or testimonials for the specific product. | Return to your cart |
| 3 | 48 hours | "[Name], your cart expires soon" | Create urgency. Optional: offer a small incentive (free shipping, 10% off). Last chance framing. | Claim your [discount] and checkout |

### 3. Re-engagement Series (4 Emails)

**Goal:** Win back inactive subscribers before removing them.
**Trigger:** No email opens or clicks in 60-90 days.

| # | Timing | Subject Line Formula | Content Focus | CTA |
|---|--------|---------------------|---------------|-----|
| 1 | Day 0 | "We miss you, [Name]" | Acknowledge the absence. Highlight what is new since they last engaged. No guilt. | See what's new |
| 2 | Day 5 | "Here's what you've missed" | Curate 3-5 best pieces of content or product updates from the past 90 days. Pure value, no ask. | Read the top [3] updates |
| 3 | Day 10 | "[Name], should we stop emailing you?" | Direct ask. Give them control: update preferences or unsubscribe. This honesty builds trust and often re-engages. | Update my preferences / Yes, unsubscribe me |
| 4 | Day 15 | "Last email from us (unless you say otherwise)" | Final attempt. Summarize what they will miss. Clear unsubscribe link. If no action, remove from active list. | Keep me subscribed / Unsubscribe |

### 4. Product Launch Series (6 Emails)

**Goal:** Build anticipation and drive launch-day conversions.
**Trigger:** Manual send based on launch timeline.

| # | Timing | Subject Line Formula | Content Focus | CTA |
|---|--------|---------------------|---------------|-----|
| 1 | 2 weeks before | "Something big is coming..." | Tease the launch. Share the problem it solves without revealing the product. Build a waitlist. | Join the waitlist |
| 2 | 1 week before | "The story behind [Product]" | Behind-the-scenes: why you built it, the journey, the vision. Personal and founder-led. | Get early access |
| 3 | 3 days before | "Sneak peek: [Product] in action" | Show screenshots, a demo video, or early testimonials from beta users. | Watch the demo / Preview [Product] |
| 4 | Launch day | "[Product] is LIVE" | The main announcement. Key features. Launch pricing or offer. Clear, prominent CTA. | Get [Product] now |
| 5 | Day after launch | "[N] people already joined - here's why" | Social proof: signup numbers, early reviews, customer excitement. Address last-minute objections. | Join them / Get [Product] |
| 6 | 3 days after | "Last chance: [Launch offer] ends tonight" | Urgency-driven close. Recap the offer, the price, and the deadline. FAQ section for objections. | Claim the launch price before midnight |

### 5. Onboarding Series (7 Emails)

**Goal:** Activate new users and drive them to their "aha moment."
**Trigger:** New account creation or first purchase.

| # | Timing | Subject Line Formula | Content Focus | CTA |
|---|--------|---------------------|---------------|-----|
| 1 | Immediate | "Welcome! Start here." | Quick-start guide. One action that delivers immediate value. Do not overwhelm with all features. | Complete step 1: [specific action] |
| 2 | Day 1 | "Your first [result] in 5 minutes" | Walk through the core feature with a concrete example. Include a GIF or short video. | Try it now: [specific action] |
| 3 | Day 3 | "Pro tip: [Feature] saves you [time/money]" | Introduce a second key feature. Show it as a natural next step after Email 2's action. | Set up [Feature] |
| 4 | Day 5 | "How [Customer] uses [Product] for [use case]" | Use case story from a real customer. Relatable scenario that mirrors the new user's likely goals. | Try this workflow |
| 5 | Day 7 | "[Name], how's it going so far?" | Check-in email. Ask for feedback. Offer help via support, docs, or a call. Link to help center. | Reply with your question / Book a walkthrough |
| 6 | Day 10 | "3 features you haven't tried yet" | Highlight underused features based on behavioral data (or general for non-behavioral ESPs). | Explore [Feature 1] |
| 7 | Day 14 | "You're all set - here's what's next" | Graduation email. Recap what they have learned. Point to advanced resources, community, or upgrade path. | Join the community / Upgrade to Pro |

## Email Copywriting Rules

### Hook Formulas for Email Openings

| Formula | Example |
|---------|---------|
| Question | "What would you do with an extra 5 hours this week?" |
| Bold claim | "90% of landing pages have this conversion-killing mistake." |
| Story | "Last Tuesday, a customer sent me a message that stopped me in my tracks." |
| Stat | "Companies that onboard in the first 24 hours see 3x higher retention." |
| Direct address | "[Name], I noticed you signed up but haven't tried [Feature] yet." |
| Contrarian | "Most email marketing advice is wrong. Here's why." |

### Body Copy Rules

1. **One idea per email.** Do not try to educate, sell, and announce in the same email.
2. **Short paragraphs.** 1-3 sentences maximum. Emails are read on mobile.
3. **Use "you" more than "we."** Flip the ratio: 3:1 "you" to "we."
4. **Write at a 5th-8th grade level.** Short words, short sentences.
5. **Link the CTA 2-3 times.** Once in the middle, once at the end, optionally in a PS.
6. **Use a PS line.** 79% of readers scan the PS. Use it for urgency or a secondary point.

### Spam Trigger Avoidance

**Avoid these in subject lines and body:**
- ALL CAPS words (e.g., "FREE", "BUY NOW", "CLICK HERE")
- Excessive exclamation marks (!!!)
- Spam trigger phrases: "Act now", "Limited time", "You've been selected", "Congratulations",
  "No obligation", "100% free", "Click below", "Dear friend"
- Too many images with too little text (maintain 60/40 text-to-image ratio)
- Deceptive subject lines (Re:, Fwd: when not actually a reply/forward)
- Purchased lists (always use opt-in subscribers only)

## HTML Email Template Guidelines

When the user requests HTML email templates:

1. **Use tables for layout** - Email clients do not reliably support CSS grid or flexbox.
2. **Inline all CSS** - Many email clients strip `<style>` blocks.
3. **Max width: 600px** - Standard email width for cross-client compatibility.
4. **Use web-safe fonts** - Arial, Helvetica, Georgia, Times New Roman.
5. **Include alt text on all images** - Many readers have images disabled.
6. **Test in multiple clients** - Gmail, Outlook, Apple Mail, Yahoo at minimum.
7. **Mobile-first** - 60%+ of emails are opened on mobile. Stack columns on small screens.
8. **Include a plain-text version** - Always provide a text fallback for deliverability.

## Sending Emails via Resend API

This skill can send emails directly using the [Resend](https://resend.com) API. This is optional:
if the API key is not configured, the skill will still generate email content as usual without sending.

### Prerequisites

The `RESEND_API_KEY` environment variable must be set. Check for it by running:

```bash
source ~/.claude/.env.global 2>/dev/null
if [ -z "$RESEND_API_KEY" ]; then
  echo "RESEND_API_KEY is not set. Emails will be generated but not sent."
  echo "To enable sending, add RESEND_API_KEY to ~/.claude/.env.global"
else
  echo "RESEND_API_KEY is configured. Ready to send emails."
fi
```

### Sending a Single Email

Use the Resend `/emails` endpoint to send an individual email from the sequence:

```bash
source ~/.claude/.env.global 2>/dev/null
curl -X POST https://api.resend.com/emails \
  -H "Authorization: Bearer ${RESEND_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "Your Name <[email protected]>",
    "to": ["[email protected]"],
    "subject": "Subject line here",
    "html": "<p>Email body here</p>"
  }'
```

The response returns a JSON object with an `id` field for tracking. Replace the `from`, `to`,
`subject`, and `html` fields with the actual values from the generated sequence.

### Sending a Batch (Full Sequence)

To send multiple emails from a sequence at once, use the batch endpoint. This is useful for
sending the same email to multiple recipients or sending several sequence emails simultaneously:

```bash
source ~/.claude/.env.global 2>/dev/null
curl -X POST https://api.resend.com/emails/batch \
  -H "Authorization: Bearer ${RESEND_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "emails": [
      {
        "from": "Your Name <[email protected]>",
        "to": ["[email protected]"],
        "subject": "Email 1: Welcome to [Brand]",
        "html": "<p>Welcome email body</p>"
      },
      {
        "from": "Your Name <[email protected]>",
        "to": ["[email protected]"],
        "subject": "Email 1: Welcome to [Brand]",
        "html": "<p>Welcome email body</p>"
      }
    ]
  }'
```

### Important Notes

- **Domain verification required:** The `from` address domain must be verified in your Resend
  account. If you have not verified a domain, Resend provides a shared `[email protected]`
  address for testing.
- **Rate limits:** Resend has rate limits depending on your plan. For large sequences, add a
  short delay between batch calls.
- **No RESEND_API_KEY?** The skill works without it. All email content (subject lines, body copy,
  preview text, timing) is generated normally. The Resend integration simply adds the ability to
  send the generated emails directly from the CLI.

## Output Format

For every email sequence, deliver:

### 1. Sequence Overview
- Sequence name, goal, trigger, audience segment.
- Visual flow diagram (text-based).

### 2. Individual Emails
For each email in the sequence:
- **Email number and name** (e.g., "Email 3: Social Proof")
- **Timing** (delay from previous email or trigger)
- **Subject line** (primary + 2 A/B variants)
- **Preview text**
- **From name and email**
- **Body copy** (full draft, not an outline)
- **CTA** (text and URL placeholder)
- **PS line** (if applicable)
- **Branch logic** (if applicable: what happens if they open/click/don't)

### 3. Segmentation Rules
Who enters this sequence, who exits, and any branch conditions.

### 4. Success Metrics
Target open rates, click rates, and conversion rates for each email.

### 5. A/B Test Plan
Recommended tests for the first 30 days (subject lines, send times, CTA copy).

© OpenClaudia · MIT · OpenClaudia/openclaudia-skills

Similar skills

Everything for Marketing and content →

email-sequence by other authors comes first.

email-sequence official anthropics A skill for designing and drafting multi-email sequences with full copy, timing, branching logic, and performance benchmarks. Use it for onboarding, lead nurture, re-engagement, win-back, and product launch flows. CX Codex +1 2,900installs email-sequence Alireza Rezvani This skill designs and improves email sequences, drip campaigns, and lifecycle emails. Use it for welcome, nurture, re-engagement, or sales flows. 632installs email-sequence-designer aaron-he-zhu Draws the map of lifecycle email flows: triggers, step timing, branches and exits. Run it before anyone writes the emails. CX Codex +1 1,000installs affiliate-onboarding-sequence Maya-Beth Finotti Designs the touch sequence that carries an approved affiliate to a first tracked conversion. Useful when nobody clicks after the welcome email. CX Codex +1 13,400installs email-marketing claude-office-skills A marketing skill for email campaigns, automated drip sequences, and A/B test planning. Useful when building welcome series or cart recovery emails. CX Codex +1 5,000installs shopify-email-flows nexscope-ai A skill that plans Shopify email flows: welcome series, abandoned cart, post-purchase, win-back. CX Codex +1 1,100installs extension-email-marketing caffeinelabs Adds topic-based marketing email to a Caffeine AI app: subscriber lists, unsubscribe tokens and an /unsubscribe page on your own frontend. CX Codex +1 28,100installs email-quality-auditor aaron-he-zhu Audits an email program before release, checking authentication, consent, opt-out handling, claims, engagement evidence, and outcomes. CX Codex +1 1,000installs

From the same set49

write-blog Drafts a complete blog post: keyword research, an outline built from the SERP, then the article with meta tags. Useful when you need copy for a specific query. CX Codex +1 466installs thread-writer Turns blog posts, notes, or case studies into Twitter/X threads and Reddit posts. It applies structured hooks, formats value tweets, and adds clear calls to action. CX Codex +1 461installs discord-bot A skill that sends messages, embeds and announcements to Discord channels through a webhook or the Bot API. Useful when your agent needs to post to a community from inside the project. CX Codex +1 458installs content-gap-analysis Compares your website content and search queries against 2-3 competitors using sitemaps and Semrush API. Useful for finding missing topic clusters, formats, and AI search visibility gaps. CX Codex +1 453installs lead-magnet A skill that helps you design a lead magnet — checklist, template, calculator, mini-course or whitepaper — and the landing page that captures emails. CX Codex +1 452installs growth-strategy Turns your AI agent into a growth strategist: North Star Metric, AARRR funnel, growth loops and ICE-scored experiments. CX Codex +1 450installs seo-content-brief Turns a target keyword into a full SEO brief: search intent, SERP breakdown, heading outline and a writer checklist. Useful when content goes to an outside author. CX Codex +1 449installs bluesky Generates posts and threads for Bluesky while adhering to AT Protocol conventions. Helpful for content drafting and API integration. CX Codex +1 448installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor