HTML Email Template Generator skill for Claude and Codex
Responsive, client-safe HTML for a marketing or transactional email: table-based layout, inlined CSS, a bulletproof button, dark-mode and Outlook fallbacks…
Install it once and Claude or Codex runs it for you. When your request matches, your AI loads the skill, asks for anything it is missing, and works through the template itself. Prefer to fill it in by hand? See the full prompt template.
Download the skill (.zip) · View SKILL.md
When it is used
Use when an email campaign or transactional message needs responsive HTML that renders in Gmail, Outlook, and Apple Mail and can be pasted into a sending platform. Do not use for writing the email copy or subject line, or building web pages. Related topics: coding, email, marketing.
What it will ask you for
- Type of email (choose one: Newsletter, Welcome Email, Password Reset, Receipt/Invoice, Promo Offer, Abandoned Cart)
- Primary brand colour (free text, e.g. "Hex value e.g. #FF5733")
- Font preference (free text, e.g. "Arial or Helvetica with a web font fallback")
- Main copy (longer free text)
- Call to action link (free text, e.g. "The URL the button goes to")
- Layout style (choose one: Single Column (Mobile First), Two Columns, Image Heavy)
- Elements to include (choose any: Header Image, CTA Button, Social Media Icons, Unsubscribe Footer, Preheader Text, Order Summary Table)
- Inline the CSS (choose one: Yes, No)
- Sending platform (choose one: Mailchimp, SendGrid, Klaviyo, Postmark, Custom SMTP, Other)
How it works
- Build the layout with nested presentation tables and a 600px container that collapses to full width under a media query.
- Construct the button as a padded table cell with an Outlook conditional and a plain text link beside it for image-blocking clients.
- Inline every style when the toggle is on, keeping only the media query and dark-mode overrides in a style block.
- Insert the platform's merge tags for unsubscribe and recipient name, alt text on every image, and a preheader when selected.
- Return the complete HTML in one block with a note naming the clients that most need a visual check.
What you get
One fenced HTML block containing the full email, followed by a three-line note on which clients to preview and why.
What it watches out for
- Using flexbox or CSS grid for the layout, which Outlook and older Gmail apps ignore entirely.
- Relying on a background image for the hero, which most clients block by default so the headline disappears.
- Putting marketing blocks or tracking pixels in a transactional email, which can breach consent rules and hurt deliverability.
How to install
Claude.ai and the Claude desktop app
- Download the skill .zip.
- Open Settings, then Capabilities, and find Skills.
- Choose Upload skill and select the .zip.
- Ask Claude for help with the task. It loads the skill when your request matches.
Claude Code
- Download the skill .zip.
- Unzip it into ~/.claude/skills/ (or .claude/skills/ inside a project).
- Start a new session. Claude Code loads the skill when your request matches.
Codex
- Download the skill .zip.
- Unzip it into ~/.agents/skills/ (or .agents/skills/ inside a project).
- Codex picks it up on its own. Type $ and the skill name to use it, or just ask for the task.
Cursor
- Download the Cursor rule (.mdc).
- Save it in .cursor/rules/ inside your project.
- Cursor's agent applies the rule when your request matches its description.
AGENTS.md (Codex, Cursor, and other coding agents)
- Copy the AGENTS.md section.
- Paste it into AGENTS.md at the root of your repository, creating the file if needed.
- Coding agents that read AGENTS.md follow it when your request fits.