mcpField
E
email-design

email-design

github.com/magentosh营销与增长442 次安装12 周前更新
代码仓库

关于 email-design

Email Design 是 belt 命令行技能,提供营销邮件布局、文案和送达率方面的指导,并包含生成页眉视觉图的示例,适用于制作营销、欢迎、产品更新或交易邮件。

主要功能

  1. 01提供邮件布局和宽度建议
  2. 02指导撰写主题行和预览文本
  3. 03涵盖营销与交易邮件类型
  4. 04提供移动端和送达率检查清单
  5. 05包含使用 html-to-image 生成页眉图的示例

适用场景

  1. 01规划促销邮件营销活动
  2. 02设计欢迎邮件
  3. 03准备产品更新邮件
  4. 04检查移动端布局和送达率

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/magentosh/superpowers --skill email-design

安装后在 Claude Code 中输入/email-design确认已加载。

详细介绍

安装 belt CLI skill: npx skills add belt-sh/cli

邮件设计

通过 inference.sh CLI,借助 AI 生成的视觉素材设计高转化率的营销邮件。

快速入门

需要 inference.sh CLI(belt)。安装说明

belt login

# Generate email header banner
belt app run infsh/html-to-image --input '{
  "html": "<div style=\"width:600px;height:250px;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;justify-content:center;font-family:system-ui;color:white;text-align:center\"><div><h1 style=\"font-size:36px;margin:0\">Spring Sale — 30% Off</h1><p style=\"font-size:18px;opacity:0.9\">This weekend only</p></div></div>"
}'

邮件宽度与布局

约束值原因
最大宽度600pxGmail、Outlook 的渲染标准
移动设备宽度320-414px响应式回退
单栏优先采用在移动设备上的渲染效果更好
双栏谨慎使用许多客户端会出现显示问题
图片宽度最大 600px,双栏时为 300pxRetina 屏幕:提供 2 倍尺寸(1200px)
字体大小(正文)14-16px小于 14px 时,在移动设备上难以阅读
字体大小(标题)22-28px必须便于快速浏览
行高1.5在所有设备上都易于阅读
倒金字塔布局

最有效的邮件布局会将注意力引导至单个 CTA:

┌──────────────────────────────────┐
│           HEADER IMAGE           │  ← Brand/visual hook
│          (600 x 200-300)         │
├──────────────────────────────────┤
│                                  │
│     Headline (one line)          │  ← What's this about
│                                  │
│     2-3 sentences of body copy   │  ← Why should I care
│     explaining the value.        │
│                                  │
│        ┌──────────────┐          │
│        │   CTA BUTTON  │         │  ← One clear action
│        └──────────────┘          │
│                                  │
├──────────────────────────────────┤
│     Footer: Unsubscribe link     │
└──────────────────────────────────┘

邮件主题

有效公式
公式示例打开率影响
数字 + 优势"5 ways to cut your build time in half"高
问句"Are you still deploying on Fridays?"高
操作指南"How to automate your reports in 3 steps"中高
紧迫感(真实)"Last day: 30% off annual plans"高(如果属实)
个性化"[Name], your weekly report is ready"非常高
好奇心缺口"The one feature our users can't stop talking about"中高
规则
规则值
长度30-50 个字符(移动设备上约在 35 个字符处截断)
预览文本主题之后的前 40-100 个字符——应有意设计
表情符号最多 1 个,放在开头或结尾,并针对受众进行测试
全部大写切勿使用——会触发垃圾邮件过滤器
垃圾邮件触发词避免在主题中使用:"free"、"act now"、"limited time"、"click here"
个性化在主题中加入 [First name] 可使打开率提升 20% 以上
预览文本

预览文本会显示在收件箱中主题行之后。不要浪费这个位置。

❌ "View this email in your browser" (default, wasted space)
❌ "Having trouble viewing this?" (no one cares)

✅ Subject: "5 ways to cut build time"
   Preview: "Number 3 saved us 6 hours per week"

✅ Subject: "Your monthly report is ready"
   Preview: "Revenue up 23% — here's what drove it"

邮件类型

欢迎邮件(自动发送,第 0 天)
元素内容
主题"Welcome to [Product] — here's what's next"
页眉品牌图片或产品截图
正文3-4 句话:用户注册的内容、后续安排以及一个简单的初步收获
CTA"Complete your setup" 或 "Try your first [action]"
发送时间注册后立即发送
促销 / 营销活动
元素内容
主题突出优势;仅在确有其事时营造紧迫感
页眉展示优惠或效果的主视觉图片
正文问题 → 解决方案 → 优惠 → 截止日期
CTA"Get 30% Off" 或 "Start Free Trial"
紧迫感使用真实截止日期,不要制造虚假稀缺感
产品更新 / 更新日志
元素内容
主题"New: [Feature name] is here"
页眉功能截图或视觉展示
正文更新内容、重要性以及使用方法
CTA"Try [feature]"
事务性邮件(收据、确认信息)
规则原因
在主题中明确说明用途"Your order #1234 is confirmed"
设计简洁避免与营销邮件混淆
关键信息放在首屏订单号、金额、日期
基本不含促销内容CAN-SPAM 允许少量促销内容,但应尽量精简

页眉图片设计

# Welcome email header
belt app run infsh/html-to-image --input '{
  "html": "<div style=\"width:600px;height:250px;background:linear-gradient(135deg,#2d3436,#636e72);display:flex;align-items:center;padding:40px;font-family:system-ui;color:white\"><div><p style=\"font-size:14px;text-transform:uppercase;letter-spacing:2px;opacity:0.7;margin:0\">Welcome to</p><h1 style=\"font-size:42px;margin:8px 0 0;font-weight:800\">DataFlow</h1><p style=\"font-size:18px;opacity:0.8;margin-top:4px\">Your data, automated</p></div></div>"
}'

# Sale / promotional header
belt app run infsh/html-to-image --input '{
  "html": "<div style=\"width:600px;height:300px;background:linear-gradient(135deg,#e74c3c,#c0392b);display:flex;align-items:center;justify-content:center;font-family:system-ui;color:white;text-align:center\"><div><p style=\"font-size:20px;opacity:0.9;margin:0\">This Weekend Only</p><h1 style=\"font-size:72px;margin:8px 0;font-weight:900\">30% OFF</h1><p style=\"font-size:18px;opacity:0.8\">All annual plans. Ends Sunday.</p></div></div>"
}'

# Feature announcement header with AI visual
belt app run falai/flux-dev-lora --input '{
  "prompt": "clean modern email header banner, abstract flowing data visualization, dark blue gradient background, subtle glowing nodes and connections, tech aesthetic, minimal, no text, 600x250 equivalent",
  "width": 1200,
  "height": 500
}'

CTA 按钮

规则值
宽度200-300px,不要铺满全宽
高度最小 44-50px(便于点击)
颜色与背景形成高对比
文本行动动词 + 结果:"Start Free Trial"
形状圆角(4-8px border-radius)
位置放在首屏内;长邮件的底部也重复放置
数量每封邮件只设置一个主要 CTA
坚如磐石的按钮

HTML 按钮在不同邮件客户端中的呈现效果各不相同。使用“坚如磐石的按钮”技术(Outlook 使用 VML,其他客户端使用 HTML/CSS):


<table cellpadding="0" cellspacing="0" border="0">
  <tr>
    <td align="center" bgcolor="#22c55e" style="border-radius:6px;">
      <a href="https://yoursite.com/action" target="_blank"
         style="font-size:16px;font-family:sans-serif;color:#ffffff;
                text-decoration:none;padding:12px 24px;display:inline-block;
                font-weight:bold;">
        Start Free Trial
      </a>
    </td>
  </tr>
</table>

移动端优化

规则原因
单列布局多列布局在移动端会错乱
字体最小为 14px更小的字体难以阅读
CTA 按钮高度至少为 44px符合 Apple/Android 的触控目标尺寸
图片缩放至 100% 宽度防止出现水平滚动
元素垂直排列并排布局在窄屏上会错乱
在 Gmail 应用、Apple Mail、Outlook 上测试三大邮件客户端

60% 以上的邮件在移动设备上打开。 采用移动端优先的设计。

可送达性检查清单

因素规则
图片与文本比例图片最多占 40%,文本占 60%(垃圾邮件过滤器会标记图片过多的邮件)
图片替代文本始终添加——许多客户端默认会屏蔽图片
取消订阅链接法律要求(CAN-SPAM、GDPR)——确保用户容易找到
发件人名称使用易识别的人名或品牌名
回复地址使用真实地址,而不是 no-reply@(会损害邮件送达率)
邮件列表维护移除退信地址,每季度清理不活跃的订阅者
SPF/DKIM/DMARC技术身份验证——设置一次,对确保邮件进入收件箱至关重要

常见错误

错误问题修复方法
没有预览文本显示“在浏览器中查看”或随机代码有意设置预览文本
仅包含图片的邮件图片被屏蔽后,邮件变成空白且有垃圾邮件风险文本占 60% 以上,并为图片添加替代文本
多个 CTA让用户难以抉择,点击率更低每封邮件只设置一个主要 CTA
字体太小在移动端难以阅读正文至少 14px,标题至少 22px
使用 no-reply@ 发件损害邮件送达率,显得缺乏亲和力使用真实的回复地址
未进行移动端测试60% 以上的读者会看到错乱的布局在 Gmail 应用和 Apple Mail 上测试
缺少取消订阅链接违法(CAN-SPAM),还会引发垃圾邮件投诉在页脚添加清晰的取消订阅链接
过度设计邮件客户端对 CSS 的呈现不一致使用简洁布局和内联样式
虚假的紧迫感会侵蚀信任,让用户养成忽略提醒的习惯只使用真实的截止日期

相关技能

npx skills add inference-sh/skills@landing-page-design
npx skills add inference-sh/skills@ai-image-generation
npx skills add inference-sh/skills@prompt-engineering

浏览所有应用:belt app list

评论

支持 Markdown