MJML HTML Email skill
Build MJML email source and compiled HTML with strict validation and client-specific checks.
Community · Framix| Author | Framix |
|---|---|
| Licence | MIT |
| Source | framix-team/skill-email-html-mjml · SKILL.md on GitHub |
| Project website | documentation.mjml.io |
| Works in | Claude 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
What it does
- Select component references for the requested email layout.
- Generate MJML with reusable attributes and accessible labels.
- 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 folder | What it is for |
|---|---|
SKILL.md | Email layout, accessibility and compatibility rules. |
compilation.md | Strict 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/| Agent | Project folder | Your user folder | Notes |
|---|---|---|---|
| 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). |
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
Copywriting skill
Community · Corey HainesDraft or revise page copy from real audience context, evidence and a chosen task scope.Fixing Accessibility skill
Community · ibelickReview names, keyboard access, focus, semantics and announcements with small targeted changes.Thumbnail Design skill
Community · Frank HeijdenrijkBrief honest, mobile-readable video thumbnails and plan a native comparison test.Design and Templates skill
Community · Frank HeijdenrijkSpecify a reusable brand kit, template family and production workflow for recurring social graphics.Quote Cards and Text Graphics skill
Community · Frank HeijdenrijkChoose and attribute one strong line, then brief a readable typographic card without fabricating quotes.Pinterest Pin Design skill
Community · Frank HeijdenrijkBrief vertical Pinterest concepts with readable keyword overlays and distinct variants for a real destination.