Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

email-campaign

БесплатноБез исполняемых скриптовНе проверен

This skill should be used when the user asks to "create an email", "build an email campaign", "design an email template", "generate an email for a segment"…

treasure-dataот treasure-data★ 23 звезды на GitHub

Об этом скилле

Email Campaign Builder

This skill produces channel-ready HTML email campaigns for defined audience segments. It generates strategy briefs, renders live previews in the Treasure Studio artifact panel, supports iterative natural language editing, and pushes finalized emails to Treasure Engage via a TD Workflow.

When to Use This Skill

Use this skill when:

  • The user asks to "create an email", "build an email campaign", or "design an email template"
  • The user wants to "generate an email for a segment" based on audience data
  • The user requests a "preview" of an email in Treasure Studio
  • The user says "push to Engage", "ship it", or "send to Engage" to publish a finalized email
  • The user needs A/B testing variants for an email campaign

Prerequisites

This skill requires:

  • Treasure Studio MCP server (tdx-studio) — for email preview via preview_document
  • tdx CLI — for workflow execution and Engage integration
  • (Optional) engage_email_builder TD Workflow — for automated push to Engage

If Studio preview is unavailable, emails will be saved to disk only. If the Engage workflow is not deployed, the skill falls back to manual HTML export.

Core Principles

1. Strategy Before Design

Always produce a strategy brief before writing any HTML. Analyze the audience segment, determine the right message and offer, then generate the email.

Example brief output:

Segment: Gold Tier — High Intent
Audience: 2,400 active members, 85% email open rate
Message: Urgency — "Your exclusive early access expires Friday"
Offer: No discount (high-intent segment). Use exclusivity + scarcity.
Imagery: Premium lifestyle, curated product selection

2. Offer Logic Is Segment-Driven

Not every segment should receive a discount. Match the offer strategy to the audience profile.

Segment Profile Offer Strategy
Low/medium-conversion, bronze/silver, inactive >30 days Discount or incentive
Gold/platinum, high intent, active Urgency, exclusivity, or social proof
New members, unknown intent Welcome series, value education

3. Email Client Compatibility First

All HTML must render correctly across Outlook, Gmail, Apple Mail, and Yahoo Mail. This means:

  • Table-based layout only — no <div> for structure
  • All CSS inline — no <style> blocks (Gmail strips them)
  • role="presentation" on all layout tables
  • Max width 600px for the content area
  • cellspacing="0" cellpadding="0" on all tables

See references/email-design-patterns.md for complete HTML patterns.

4. Personalization via Merge Tags

Use Liquid syntax for all dynamic content. Merge tags render as literal text in preview and are replaced at send time by Treasure Engage.

Available merge tags:

  • {{profile.first_name}} — customer first name
  • {{profile.loyalty_points}} — current points balance
  • {{profile.tier_name}} — loyalty tier (Bronze, Silver, Gold, Platinum)
  • {{profile.points_to_next_tier}} — points needed for next tier

Note: These merge tags assume a parent segment with the following output columns:

  • first_name (STRING)
  • loyalty_points (INTEGER)
  • tier_name (STRING)
  • points_to_next_tier (INTEGER)

Verify your parent segment includes these fields before using merge tags. To list available fields: tdx ps desc <ps_id> -o

Workflow

The skill follows a four-phase loop: Generate → Preview → Edit → Ship.

Phase 1: Generate

When the user requests an email campaign, produce a strategy brief first:

  1. Segment analysis — identify the audience by loyalty tier, conversion likelihood, and behavioral traits.
  2. Strategy brief — output a concise brief with: segment name, audience profile, next best channel, message copy, next best offer, and recommended imagery direction.
  3. HTML email — generate a complete, standalone HTML email following the design patterns in references/email-design-patterns.md. Use BeeFree-compatible, responsive table-based layout with inline CSS.
  4. Save to disk — write the HTML to /tmp/email_campaign_preview.html.

Note: /tmp is a temporary location cleared on system restart. Use "push to Engage" or manually export to a permanent location (e.g., ~/email_exports/) before rebooting.

Phase 2: Preview

After generating the HTML, render it in the Treasure Studio artifact panel:

preview_document(path="/tmp/email_campaign_preview.html")

Tell the user: "Here's the email preview. Describe any changes you'd like, or say push to Engage when you're ready."

Phase 3: Edit (iterative)

When the user requests changes:

  1. Read the current HTML from /tmp/email_campaign_preview.html.
  2. Apply the requested modifications (copy changes, color updates, image swaps, layout adjustments, CTA rewording, etc.).
  3. Write the updated HTML back to /tmp/email_campaign_preview.html.
  4. Re-render the preview with preview_document.
  5. Repeat until the user approves.

Keep a running list of merge tags used in the em

Полный SKILL.md на GitHub

Установить email-campaign в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

examples/sample-campaign.htmlreferences/email-design-patterns.mdreferences/engage-integration.md

FAQ

Что делает скилл email-campaign?

This skill should be used when the user asks to "create an email", "build an email campaign", "design an email template", "generate an email for a segment", "preview an email", or "push an email to Engage". Generates enterprise-grade HTML email templates with live preview in Treasure Studio and natural language editing, then pushes the final version to Treasure Engage.

Как установить скилл email-campaign?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл email-campaign запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить email-campaign с