agentleFS
agentsdanceagentsdance/agentskills/skills/email-template-builder/SKILL.md

email-template-builder

Skill3 starsChanged 11 months agoApache-2.0View on GitHub

Create HTML email templates. Use when the user needs to build responsive email templates, design newsletters, or create transactional emails.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create responsive, cross-client compatible HTML emails.

    line 8

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Email Template Builder

Create responsive, cross-client compatible HTML emails.

Basic Template Structure

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Email Title</title>
  <!--[if mso]>
  <style type="text/css">
    table { border-collapse: collapse; }
  </style>
  <![endif]-->
</head>
<body style="margin: 0; padding: 0; background-color: #f4f4f4;">
  <table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
      <td align="center" style="padding: 20px 0;">
        <!-- Email content wrapper -->
        <table role="presentation" width="600" cellpadding="0" cellspacing="0" border="0" style="max-width: 600px; background-color: #ffffff;">

          <!-- Header -->
          <tr>
            <td style="padding: 20px; text-align: center; background-color: #4A90E2;">
              <img src="logo.png" alt="Company" width="150" style="display: block; margin: 0 auto;">
            </td>
          </tr>

          <!-- Content -->
          <tr>
            <td style="padding: 30px 20px;">
              <h1 style="margin: 0 0 20px; font-family: Arial, sans-serif; font-size: 24px; color: #333333;">
                Welcome to Our Service
              </h1>
              <p style="margin: 0 0 15px; font-family: Arial, sans-serif; font-size: 16px; line-height: 1.5; color: #666666;">
                Thank you for signing up! We're excited to have you on board.
              </p>

              <!-- Button -->
              <table role="presentation" cellpadding="0" cellspacing="0" border="0">
                <tr>
                  <td style="border-radius: 4px; background-color: #4A90E2;">
                    <a href="https://example.com" style="display: inline-block; padding: 14px 30px; font-family: Arial, sans-serif; font-size: 16px; color: #ffffff; text-decoration: none;">
                      Get Started
                    </a>
                  </td>
                </tr>
              </table>
            </td>
          </tr>

          <!-- Footer -->
          <tr>
            <td style="padding: 20px; text-align: center; background-color: #f8f8f8;">
              <p style="margin: 0; font-family: Arial, sans-serif; font-size: 12px; color: #999999;">
                © 2024 Company Name. All rights reserved.<br>
                <a href="#" style="color: #999999;">Unsubscribe</a>
              </p>
            </td>
          </tr>

        </table>
      </td>
    </tr>
  </table>
</body>
</html>

Responsive Email

<style>
  @media only screen and (max-width: 600px) {
    .wrapper { width: 100% !important; }
    .mobile-hide { display: none !important; }
    .mobile-full { width: 100% !important; display: block !important; }
    .mobile-padding { padding: 10px !important; }
  }
</style>

<table class="wrapper" width="600">
  <tr>
    <td class="mobile-full" width="50%">Column 1</td>
    <td class="mobile-full" width="50%">Column 2</td>
  </tr>
</table>

Email Best Practices

PracticeDescription
Use tablesFor layout structure
Inline stylesMost clients ignore <style>
System fontsArial, Helvetica, sans-serif
Alt textFor all images
Max width 600pxStandard email width
Test everywhereGmail, Outlook, Apple Mail

Template Variables (Handlebars)

<p>Hello {{name}},</p>
<p>Your order #{{orderId}} has shipped!</p>
{{#each items}}
  <tr>
    <td>{{this.name}}</td>
    <td>${{this.price}}</td>
  </tr>
{{/each}}

Testing Tools

  • Litmus - Cross-client testing
  • Email on Acid - Preview in clients
  • Mail-tester - Spam score check

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.