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

Written for no agent in particular: nothing here depends on one.

Good fit Use it to save and restore Unlayer designs, publish HTML, create plain-text fallbacks, or produce image, PDF, and ZIP exports.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/unlayer/unlayer-skills/unlayer-export
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.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for unlayer-export

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00037 $0.02042
Opus 5.5 $0.00015 $0.00817
Sonnet 5.5 $0.00007 $0.00408
Haiku 4.5 $0.00004 $0.00204

Measured 1mo ago against content hash c6b59d044f6d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (14 stars, last pushed 20d ago), licensed MIT. It adds 37 tokens to every session and 2,042 once invoked, about $0.0001 per session on Opus 5.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

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

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

opencite

Use this skill for "search for papers", "find citations", "look up a DOI", "get BibTeX", "download PDF", "convert PDF to markdown", "find canonical papers", "convert identifiers", "batch download papers", "configure opencite", "literature review", "find related papers", "what papers cite this", "export references"…

neuromechanist/research-skills · 111 tokens

ai-provider-claude-vision

Image understanding and document analysis with Claude's multimodal capabilities -- image input formats, PDF processing, multi-image patterns, structured extraction, and token cost estimation.

agents-inc/skills · 38 tokens

document-processing

This skill should be used when the user says "process documents", "extract text from PDF", "OCR this document", "convert PDF to markdown", "extract emails from documents", "parse document", "document conversion", "batch OCR", "extract structured data from PDF", "read PDF", "extract tables from PDF", "convert Word…

neuromechanist/research-skills · 94 tokens

tageszeitung

Creates a personalised daily newspaper from RSS feeds and web sources. Ported from the BACH news system (news.py + newspapergenerator.py). Own SQLite store (no Origin-DB). feedparser optional — XML fallback via stdlib. PDF export via Edge Headless (msedge.exe).

ellmos-ai/skills · 63 tokens