unlayer-elements

unlayer-elements is a skill for Claude Code, Codex from unlayer/unlayer-skills. It costs 88 tokens per session (2,589 once invoked), scanned A, original, MIT.

A code-based set of React components for creating emails, web pages, and printable documents. It can render email-safe HTML, responsive web HTML, or HTML prepared for printing and PDF export.

In plain words
What is it for?
Building reusable templates in JSX, generating emails, pages, or documents, and rendering them on the server in frameworks such as Next.js or Remix.
Why use it?
It lets developers generate templates programmatically without building them in a visual editor, while supporting different output formats.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Building reusable templates in JSX, generating emails, pages, or documents, and rendering them on the server in frameworks such as Next.js or Remix.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/unlayer/unlayer-skills/unlayer-elements/github.svg)](https://agentmods.dev/skills/unlayer/unlayer-skills/unlayer-elements)
Your own site
<a href="https://agentmods.dev/skills/unlayer/unlayer-skills/unlayer-elements"><img src="https://agentmods.dev/badge/skills/unlayer/unlayer-skills/unlayer-elements/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-elements

Your own site · 80×15
<a href="https://agentmods.dev/skills/unlayer/unlayer-skills/unlayer-elements"><img src="https://agentmods.dev/badge/skills/unlayer/unlayer-skills/unlayer-elements.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,589 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00088 $0.02589
Opus 5.5 $0.00035 $0.01036
Sonnet 5.5 $0.00018 $0.00518
Haiku 4.5 $0.00009 $0.00259

Measured 19d ago against content hash 94e383d90584, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

unlayer-elements scanned grade A with 0 findings 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 19d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

unlayer-elements/SKILL.md · 159 lines

How it starts

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

Build with Unlayer Elements (code-first)

Overview

@unlayer/react-elements is a set of React components for building emails, pages, and documents in code — no editor required. Write JSX once and render it to:

  • email — table-based HTML (Outlook/Gmail/Yahoo safe)
  • web — responsive div/flexbox HTML
  • document — print / PDF-optimized HTML

The output is a faithful reproduction of what the Unlayer editor produces, so designs round-trip into the editor as JSON: renderToJson() returns design JSON that the visual editor opens with loadDesign(), letting non-developers edit templates you built in code. Full SSR support (Next.js, Remix, renderToString).

When to use this skill vs the editor

You want to… Use
Generate/assemble templates in code (AI generation, programmatic emails, design systems) this skill (@unlayer/react-elements)
Build templates in code and let teammates edit them visually this skill (renderToJson()) + unlayer-integration (loadDesign())
Embed a drag-and-drop visual editor in your app unlayer-integration
Export HTML/PDF from a saved design / Cloud API unlayer-export

Install

npm view @unlayer/react-elements version   # verify the published version first
npm install @unlayer/react-elements

This skill targets @unlayer/react-elements 0.1.11+ (npm view @unlayer/react-elements version to check) and uses only forms verified against it. The natural forms below — string/number sizes, object or string fontFamily, factored-out style objects — all type-check on 0.1.11+; on older versions, upgrade.

Mental model — the structure is strict

<Email> | <Page> | <Document>        ← root wrapper, sets the render mode
  <Row layout={ColumnLayouts.X}>     ← layout container; column count MUST match the layout
    <Column>                         ← only Columns go directly in a Row
      <Heading /> <Paragraph />      ← items only inside Columns (no nesting)
      <Button /> <Image /> ...

Read the full file on GitHub · 159 lines

Files

What ships with it

2 files 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. 19d ago Changed · +1 lines · +36 tokens per session 94e383d90584
  2. 1mo ago First seen · 158 lines · 52 tokens per session scan A 358ee4cbf83d

Subscribe to this mod's changes

unlayer-elements is a skill published in the GitHub repository unlayer/unlayer-skills (14 stars, last pushed 20d ago), licensed MIT. It adds 88 tokens to every session and 2,589 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. 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

happiness-skill

A Chinese-language guide to happiness based on reducing unmet wants, focusing on the present, and treating happiness as a trainable skill.

kangarooking/cangjie-skill · 136 tokens

pcbway

PCBWay PCB fabrication and assembly — turnkey/consigned assembly, design rules, ordering workflow. Alternative to JLCPCB for manufacturing. Use with KiCad. Use this skill when the user mentions PCBWay, needs turnkey assembly (PCBWay sources parts by MPN), has parts not available on LCSC, needs assembled boards with…

aklofas/kicad-happy · 119 tokens

asc-subscription-localization

Bulk-localize subscription, subscription-group, and in-app purchase display names across App Store locales using asc, including API 4.4.1 version-scoped v2 resources. Use when filling or updating subscription/IAP names and descriptions without App Store Connect UI work.

rorkai/app-store-connect-cli-skills · 60 tokens

remotion-best-practices

Best practices and domain knowledge for building videos programmatically with Remotion (videos in React/TypeScript, rendered to MP4). Use whenever writing or editing Remotion code — scaffolding a video project, animating with interpolate/spring over useCurrentFrame(), sequencing scenes and transitions…

guanyang/open-agent-hub · 116 tokens

codex

Run benchmark-selected GPT-5.6 work through the Codex CLI.

notque/vexjoy-agent · 18 tokens

scienceworld-growth-focuser

Use when you have planted a seed or need to track a plant's growth stage (sprouting, flowering, reproduction). Applies the 'focus on' action to a specific plant or biological entity to signal intent and monitor its development. Trigger after planting or when you need to observe life cycle progression in the…

zjunlp/SkillNet · 71 tokens