Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计通过

email-template-design电子邮件模板设计

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

432

周安装

18

GitHub Stars

9

下载量

144
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:email-template-design(电子邮件模板设计)
来源仓库:https://github.com/toilahuongg/shopify-agents-kit
仓库路径:skills/email-template-design
安装命令:
npx skills add https://github.com/toilahuongg/shopify-agents-kit --skill email-template-design
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/toilahuongg/shopify-agents-kit --skill email-template-design

简介

email-template-design 生成兼容主流客户端的 HTML 邮件模板,采用表格布局和内联 CSS。

  • 适用于营销活动、订单确认、系统通知等需跨平台显示一致的场合。
  • 提供基础结构、样式指南和兼容性检查工具链支持全流程开发。
  • 最终效果建议在真实邮箱客户端预览,避免依赖模拟器判断。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Email Template Design

Design production-ready HTML email templates using table-based layouts and inline CSS for maximum email client compatibility.

Workflow

  1. Clarify purpose - Determine the email type (marketing, transactional, lifecycle) and brand context
  2. Select base template - Start from an asset template in assets/ or build from scratch using the patterns below
  3. Build structure - Use table-based layout with the boilerplate from assets/base.html
  4. Style inline - Apply all CSS as inline styles; use <style> block only as progressive enhancement
  5. Test compatibility - Review against the client quirks in references/client-compatibility.md
  6. Optimize - Compress images, add alt text, verify dark mode, ensure accessibility

Email Type Selection

TypeKey characteristicsTemplate asset
Marketing / NewsletterHero image, CTA buttons, multi-section contentassets/marketing.html
TransactionalData-driven, minimal design, clear information hierarchyassets/transactional.html
Lifecycle / DripPersonal tone, single CTA, storytelling flowassets/lifecycle.html

Core Architecture

Every email template follows this skeleton:

<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="x-apple-disable-message-reformatting">
  <meta name="format-detection" content="telephone=no,address=no,email=no,date=no,url=no">
  <title>{{email_title}}</title>
  <!--[if mso]>
  <noscript><xml>
    <o:OfficeDocumentSettings>
      <o:AllowPNG/>
      <o:PixelPerInch>96</o:PixelPerInch>
    </o:OfficeDocumentSettings>
  </xml></noscript>
  <![endif]-->
  <style>
    /* Reset — progressive enhancement only */
    table, td { mso-table-lspace:0pt; mso-table-rspace:0pt; }
    img { -ms-interpolation-mode:bicubic; border:0; height:auto; line-height:100%; outline:none; text-decoration:none; }
    body { margin:0; padding:0; width:100%!important; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; }

    /* Dark mode */
    @media (prefers-color-scheme: dark) {
      .dark-bg { background-color: #1a1a2e !important; }
      .dark-text { color: #e0e0e0 !important; }
    }

    /* Responsive */
    @media only screen and (max-width: 600px) {
      .stack-column { display: block !important; width: 100% !important; max-width: 100% !important; }
      .mobile-padding { padding-left: 16px !important; padding-right: 16px !important; }
      .mobile-full-width { width: 100% !important; }
      .mobile-hide { display: none !important; }
      .mobile-center { text-align: center !important; }
    }
  </style>
</head>
<body style="margin:0; padding:0; background-color:#f4f4f4;">
  <!-- Preview text (hidden preheader) -->
  <div style="display:none; max-height:0; overflow:hidden;">
    {{preview_text}}͏&zwnj; ͏&zwnj; ͏&zwnj;
  </div>

  <!-- Outer wrapper -->
  <table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color:#f4f4f4;">
    <tr>
      <td align="center" style="padding: 20px 0;">
        <!-- Inner container (600px max) -->
        <table role="presentation" width="600" cellpadding="0" cellspacing="0" border="0" class="mobile-full-width" style="background-color:#ffffff; border-radius:8px; overflow:hidden;">
          <!-- CONTENT ROWS GO HERE -->
        </table>
      </td>
    </tr>
  </table>
</body>
</html>

Essential Patterns

CTA Buttons (Outlook-safe)

<table role="presentation" cellpadding="0" cellspacing="0" border="0" style="margin:0 auto;">
  <tr>
    <td align="center" style="border-radius:6px; background-color:#2563eb;">
      <!--[if mso]>
      <v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" href="{{url}}" style="height:44px; width:200px; v-text-anchor:middle;" arcsize="14%" fill="true" stroke="false">
        <v:fill type="tile" color="#2563eb"/>
        <v:textbox inset="0,0,0,0"><center style="color:#ffffff; font-family:Arial,sans-serif; font-size:16px; font-weight:bold;">Button Text</center></v:textbox>
      </v:roundrect>
      <![endif]-->
      <!--[if !mso]><!-->
      <a href="{{url}}" style="display:inline-block; padding:12px 32px; font-family:Arial,Helvetica,sans-serif; font-size:16px; font-weight:bold; color:#ffffff; text-decoration:none; border-radius:6px; background-color:#2563eb;">Button Text</a>
      <!--<![endif]-->
    </td>
  </tr>
</table>

Two-Column Layout (responsive)

<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr>
    <td style="padding: 20px;">
      <!--[if mso]><table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td width="280" valign="top"><![endif]-->
      <div class="stack-column" style="display:inline-block; width:280px; vertical-align:top;">
        <!-- Left column content -->
      </div>
      <!--[if mso]></td><td width="20"></td><td width="280" valign="top"><![endif]-->
      <div class="stack-column" style="display:inline-block; width:280px; vertical-align:top;">
        <!-- Right column content -->
      </div>
      <!--[if mso]></td></tr></table><![endif]-->
    </td>
  </tr>
</table>

Hero Image

<tr>
  <td style="padding:0; line-height:0;">
    <img src="{{hero_image_url}}" alt="{{hero_alt}}" width="600" style="display:block; width:100%; max-width:600px; height:auto;" class="mobile-full-width">
  </td>
</tr>

Design Rules

  1. 600px max width for the content container
  2. All critical styles inline<style> blocks are for progressive enhancement only (resets, dark mode, responsive)
  3. Tables for layout — use role="presentation" on every layout table
  4. System-safe font stacksfont-family: Arial, Helvetica, sans-serif; or Georgia, 'Times New Roman', serif;. Web fonts via @import work in Apple Mail, iOS Mail, and some Android clients only
  5. Images: always set explicit width, height:auto, display:block, border:0, and meaningful alt text
  6. Backgrounds: use inline background-color; background images require VML fallback for Outlook — see references/client-compatibility.md
  7. Spacing: use padding on <td> cells, never margin on tables
  8. Links: always use absolute URLs with https://
  9. Preheader text: hidden preview text improves open rates; pad with ͏&zwnj; to prevent email clients from pulling body content

Accessibility

  • Use semantic lang attribute on <html>
  • Add role="presentation" to all layout tables
  • Provide descriptive alt text for all images
  • Maintain minimum 4.5:1 contrast ratio for text
  • Use at least 14px font size for body text
  • Structure content in logical reading order (not reliant on visual layout)
  • Include a plain-text version or web-view link

Dark Mode

Support three strategies (apply all):

  1. @media (prefers-color-scheme: dark) in <style> — works in Apple Mail, Outlook.com
  2. color-scheme: light dark meta tag and CSS property — opts into native dark mode handling
  3. Transparent images — use PNGs with transparency so logos adapt to dark backgrounds; provide light/dark logo variants when possible

For full dark mode quirks per client, see references/client-compatibility.md.

Pre-Send Checklist

  • All CSS is inline (use a CSS inliner tool if needed)
  • Preview text is set and padded
  • All images have alt, width, display:block
  • CTA buttons use VML fallback for Outlook
  • Links are absolute https:// URLs
  • Responsive breakpoint at 600px tested
  • Dark mode classes applied to key elements
  • Unsubscribe link present (required for marketing emails by CAN-SPAM / GDPR)
  • Plain-text fallback available
  • Total email size under 102KB (Gmail clipping threshold)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.37%
按下载量换算49

Claude

31.22%
按下载量换算45

Cursor

19.05%
按下载量换算27

Gemini CLI

8.71%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills