Skip to content

MJML HTML Email skill

Build MJML email source and compiled HTML with strict validation and client-specific checks.

Community · Framix
AuthorFramix
LicenceMIT
Sourceframix-team/skill-email-html-mjml · SKILL.md on GitHub
Project websitedocumentation.mjml.io
Works inClaude Code · Codex, Gemini CLI, Cursor, Copilot
Read from the source on

email-html-mjml builds responsive email templates with MJML 5.x and delivers both MJML source and compiled HTML.

Its references cover Outlook fallbacks, Gmail clipping, accessible content and safe template includes. A successful compile does not prove rendering in every mail client.

From the skill's SKILL.md: # email-html-mjml — Responsive Email Developer

This is a community skill by Framix, not checked by us or by Anthropic. Skills can tell the agent to run code, read files or call the network. Before installing, read its SKILL.md and every script in the folder, and look for anything that does not match what it says it does.

What it does

  1. Select component references for the requested email layout.
  2. Generate MJML with reusable attributes and accessible labels.
  3. Compile with strict validation and minification, then inspect the output.

What you get

  • Editable .mjml source and compiled .html.
  • Client compatibility and compilation notes.

When to use it

  • Create transactional emails, newsletters and promotional templates.
  • Debug missing includes or Outlook background fallbacks.

When not to use it

  • Sending campaigns or claiming real-client testing without running it.

What it needs

  • Node.js 20 or later and a project-local MJML 5.x installation.
  • An email testing service is optional and may be paid; no sender account is needed to generate files.

Files in the skill

File or folderWhat it is for
SKILL.mdEmail layout, accessibility and compatibility rules.
compilation.mdStrict compilation and include verification.
components/MJML component references.
assets/examples/Newsletter, order and promotional examples.

Licence as found in the repository on 2026-11-17: MIT.

Example prompts

Type one of these after installing; naming the skill makes sure it is used.

  • Create an accessible order-confirmation email and deliver MJML plus strictly compiled HTML.
  • Find why my footer include vanished even though MJML exited successfully.
  • Adapt this newsletter for Outlook with a fallback font and background color.

How to install email-html-mjml

Compiler and includes

Install MJML in the target project and pin a compatible version. The skill folder itself does not install the compiler.

MJML 5 includes are disabled by default. Enable and allowlist them deliberately, then verify known content in the compiled output.

A skill is a folder with a SKILL.md file. You install it once; the agent reads its short description at the start of each session and loads the full instructions only when a request matches. Pick the place you use:

Claude Code: copy the folder into your skills folder

Put the skill's folder in ~/.claude/skills/ to use it in every project on this computer, or in .claude/skills/ inside a repository to share it with everyone who works there (commit it).

git clone --depth 1 https://github.com/framix-team/skill-email-html-mjml.git
mkdir -p ~/.claude/skills
cp -R skill-email-html-mjml/email-html-mjml ~/.claude/skills/

Claude Code notices new or changed skills in these folders during the session. If the skills folder did not exist when the session started, run /reload-skills once. Then type /email-html-mjml or just describe the task.

On Windows, run the commands in Git Bash or WSL, or copy the folder into the same place with File Explorer.

Codex, Gemini CLI, Cursor and GitHub Copilot

These agents read the same SKILL.md folders. The one folder all four accept inside a project is .agents/skills/, so this copies the skill there:

git clone --depth 1 https://github.com/framix-team/skill-email-html-mjml.git
mkdir -p .agents/skills
cp -R skill-email-html-mjml/email-html-mjml .agents/skills/
AgentProject folderYour user folderNotes
OpenAI Codex
.agents/skills/
~/.agents/skills/
Type $ or run /skills to pick a skill; Codex also chooses one when your task matches.
Gemini CLI
.agents/skills/
.gemini/skills/
~/.agents/skills/
~/.gemini/skills/
Or install from Git with gemini skills install <git URL> --path <folder> --consent. Google replaced Gemini CLI with Antigravity CLI for free-tier and Google One users on 18 June 2026; Antigravity uses .agents/skills/ in a project and ~/.gemini/config/skills/ for you.
Cursor
.agents/skills/
.cursor/skills/
~/.agents/skills/
~/.cursor/skills/
Type / in Agent chat to pick a skill. Cursor also reads Claude Code's .claude/skills/ folders.
GitHub Copilot
.github/skills/
.agents/skills/
.claude/skills/
~/.copilot/skills/
~/.agents/skills/
Works in Copilot CLI, the cloud agent, and agent mode in VS Code, Visual Studio and JetBrains (IDE support depends on the version). Or run gh skill install OWNER/REPOSITORY SKILL (public preview, GitHub CLI 2.90.0 or later).
Only install skills you trust. Anthropic's advice is to use skills only from trusted sources, and to read every file of any other skill before using it: a skill can direct the agent to run commands, read files or send data in ways its description does not mention.

Sources for these steps

Checked against each vendor's documentation on 2026-11-14:

Compilation is one check

Inspect the actual output, file size, included content and fallback styling. Minification does not guarantee that a message stays below Gmail’s clipping threshold.

Rendering tests in the email clients your recipients use remain a separate release check.

Questions about email-html-mjml

Does it send email?

No. It generates source and HTML; delivery and campaign platforms are separate.

Why keep both files?

MJML remains editable, while the compiled HTML is the artifact supplied to an email sender.

Does strict mode catch missing includes?

Not necessarily. The source warns that disabled or denied includes can be dropped without a failing exit code.

Can it run in Claude.ai or the API?

Source drafting can, but the complete Node compilation workflow is not verified in those sandbox environments here.

More AI skills

Related skills

Skill categories