unlayer-export

unlayer-export is a skill for Claude Code, Codex from unlayer/unlayer-skills. It costs 37 tokens per session (2,042 once invoked), scanned B, original, MIT.

A guide for exporting designs from Unlayer, a drag-and-drop editor for emails, web pages, popups, and documents. It covers HTML, plain text, images, PDFs, ZIP files, and the editable design data behind each export.

In plain words
What is it for?
Use it to save and restore Unlayer designs, publish HTML, create plain-text fallbacks, or produce image, PDF, and ZIP exports.
Why use it?
It helps choose the right export method and prevents losing the design information needed to edit an exported result later. It also distinguishes free browser exports from paid cloud exports.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/unlayer/unlayer-skills/unlayer-export
Any agent
npx skills add unlayer/unlayer-skills --skill unlayer-export
Clone the repo
git clone --depth 1 https://github.com/unlayer/unlayer-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for unlayer-export

README.md
[![agentmods](https://agentmods.dev/badge/skills/unlayer/unlayer-skills/unlayer-export.svg)](https://agentmods.dev/skills/unlayer/unlayer-skills/unlayer-export)
Your own site
<a href="https://agentmods.dev/skills/unlayer/unlayer-skills/unlayer-export"><img src="https://agentmods.dev/badge/skills/unlayer/unlayer-skills/unlayer-export.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,042 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00037 $0.02042
Opus 5 $0.00018 $0.01021
Sonnet 5 $0.00007 $0.00408
Haiku 4.5 $0.00004 $0.00204

Measured 5d ago against content hash c6b59d044f6d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

unlayer-export scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

const response = await fetch('https://api.unlayer.com/v2/export/image', { method: 'POST',
unlayer-export/SKILL.md · 273 lines

How it starts

The opening of the file, as written. The whole thing — 273 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Export Content

Overview

Unlayer supports multiple export formats. Some are client-side (free), others use the Cloud API (paid).

Which Export Method?

Method Output Paid? Use When
exportHtml HTML + design JSON No Email sending, web publishing, saving designs
exportPlainText Plain text + design No SMS, accessibility fallback
exportImage PNG URL + design Yes Thumbnails, previews, social sharing
exportPdf PDF URL + design Yes Print-ready documents
exportZip ZIP URL + design Yes Offline download packages

Critical: Always save the design JSON alongside any export. All export methods return data.design — save it so users can edit later.


Save & Load Designs

// SAVE — use exportHtml to get both design JSON and HTML
unlayer.exportHtml(async (data) => {
  await fetch('/api/templates', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
      design: data.design,  // Save this — needed to edit later
      html: data.html,      // The rendered HTML output
    }),
  });
});

// LOAD — restore a saved design (must wait for editor:ready)
unlayer.addEventListener('editor:ready', async () => {
  const response = await fetch('/api/templates/123');
  const saved = await response.json();
  unlayer.loadDesign(saved.design);   // Pass the saved JSON object
});

// LOAD BLANK
unlayer.loadBlank({ backgroundColor: '#ffffff', contentWidth: '600px' });

// LOAD AN UNLAYER TEMPLATE
unlayer.loadTemplate(templateId);     // ID from Unlayer dashboard

Export HTML

unlayer.exportHtml((data) => {
  const { html, design, chunks } = data;

  // html     — Full HTML document (string)
  // design   — Design JSON (always save this!)
  // chunks   — { css, js, body, fonts, tags }
  //   body   — Just the content inside <body> (no wrapper)
  //   css    — Extracted CSS styles
  //   fonts  — Web fonts used in the design

  // Save both to your backend
  await fetch('/api/templates', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({ design, html }),
  });
}, {
  // All options are optional
  cleanup: true,          // Remove editor markup (default: true)
  minify: false,          // Minify HTML output
  inlineStyles: false,    // Move CSS inline (for email clients)
  mergeTags: {},          // Replace merge tags with real values
  title: 'My Email',     // Set HTML <title>
});

Read the full file on GitHub · 273 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 273 lines · 37 tokens per session scan B c6b59d044f6d

Subscribe to this mod's changes

unlayer-export is a skill published in the GitHub repository unlayer/unlayer-skills (13 stars, last pushed 1mo ago), licensed MIT. It adds 37 tokens to every session and 2,042 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (sends data to an external url). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

pptx-posters

Create research posters using HTML/CSS that can be exported to PDF or PPTX. Use this skill ONLY when the user explicitly requests PowerPoint/PPTX poster format. For standard research posters, use latex-posters instead. This skill provides modern web-based poster design with responsive layouts and easy visual…

foryourhealth111-pixel/Vibe-Skills · 66 tokens

report-generator

高级报告生成专家,支持多格式输出、数据可视化和交互式报告生成。.

foryourhealth111-pixel/Vibe-Skills · 24 tokens

pdf

PDF manipulation toolkit. Extract text/tables, create PDFs, merge/split, fill forms, for programmatic document processing and analysis.

foryourhealth111-pixel/Vibe-Skills · 29 tokens

datasheets

Extract structured specifications from electronic component datasheet PDFs — pinouts, electrical characteristics, peripherals, topology, and features. Cache extractions per project for consumption by schematic and PCB analyzers. Primary consumer infrastructure for kicad, emc, spice, and thermal analyzers. Use this…

aklofas/kicad-happy · 156 tokens

slides-as-code

Build research slides with text-first source (Slidev/Marp/Reveal/Quarto) and reproducible export (PDF). Includes structure, figure reuse rules, and quality checklist for top-tier scientific presentations.

foryourhealth111-pixel/Vibe-Skills · 46 tokens

utility-slideshow-creator

Generates professional presentations from a JSON deck specification using 18 slide types with dark/light variants, content-to-layout decision logic, and calibrated character limits. Ships with a default professional theme.

product-on-purpose/pm-skills · 43 tokens