unlayer-image-editor

unlayer-image-editor is a skill for Codex from unlayer/unlayer-skills. It costs 101 tokens per session (640 once invoked), scanned A, original, MIT.

Instructions for embedding Unlayer’s standalone Image Editor, a component for editing images, in JavaScript or React. It covers loading the editor, configuring its appearance and tools, and handling saved images and errors.

In plain words
What is it for?
Use it to mount the editor, load image URLs or data URLs, save edited images, configure themes or localization, and clean up the editor when finished.
Why use it?
It clarifies how the standalone editor differs from the image editor inside Unlayer’s email and page builders and helps manage its lifecycle correctly.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to mount the editor, load image URLs or data URLs, save edited images, configure themes or localization, and clean up the editor when finished.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/unlayer/unlayer-skills/unlayer-image-editor
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-image-editor
Clone the repo
git clone --depth 1 https://github.com/unlayer/unlayer-skills

Made for: 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-image-editor

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/unlayer/unlayer-skills/unlayer-image-editor"><img src="https://agentmods.dev/badge/skills/unlayer/unlayer-skills/unlayer-image-editor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 640 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.00101 $0.00640
Opus 5.5 $0.00040 $0.00256
Sonnet 5.5 $0.00020 $0.00128
Haiku 4.5 $0.00010 $0.00064

Measured 1mo ago against content hash 0ede2caf926a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

unlayer-image-editor 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 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.

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-image-editor/SKILL.md · 49 lines

How it starts

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

Integrate Unlayer Image Editor

Overview

Embed Unlayer's standalone Image Editor with plain JavaScript or React. Keep it distinct from the image editor inside Unlayer's builders, which is configured through unlayer.init().

The standalone editor and all manual editing tools are free. The optional AI Assistant is paid.

Choose the Integration

Need Read
Plain JavaScript embed, loader, callbacks, or instance lifecycle references/javascript.md
React or Next.js with @unlayer/react-image-editor references/react.md
Tools, icons, dock, theme, localization, or AI Assistant references/configuration.md
Configure the image editor opened from an image inside a builder Use unlayer-config instead

Core Workflow

  1. Accept an image URL or base64 data URL.
  2. Mount into a container at least 1024px wide and 700px high when possible.
  3. Handle onSave and upload the returned blob; use dataUrl for previews or inline display.
  4. Handle onLoadError separately from script or lifecycle failures.
  5. Check hasChanges() before closing and call destroy() when the editor is no longer needed.

Guardrails

  • Use https://cdn.unlayer.com/image-editor/embed.js for the JavaScript loader.
  • Use @unlayer/react-image-editor for React; do not substitute react-email-editor.
  • Verify the package version with npm view @unlayer/react-image-editor version before pinning it.
  • Wait for the Promise returned by createEditor() before calling instance methods.
  • Treat projectId as required for AI features. Manual tools do not require a paid feature.
  • Expect remote image URLs to require CORS access; use onLoadError for fetch, decode, or 404 failures.
  • Preserve the distinction between dataUrl and blob: preview with the former, upload the latter.

Official Resources

Read the full file on GitHub · 49 lines

Files

What ships with it

4 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. 1mo ago First seen · 49 lines · 101 tokens per session scan A 0ede2caf926a

Subscribe to this mod's changes

unlayer-image-editor is a skill published in the GitHub repository unlayer/unlayer-skills (14 stars, last pushed 20d ago), licensed MIT. It adds 101 tokens to every session and 640 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

top-design

Create award-winning, immersive web experiences at the level of Awwwards-featured agencies. Use when the user mentions "Awwwards quality", "make my site stunning", "scroll animations", "parallax storytelling", "cinematic web design", "portfolio site", or "brand experience". Also trigger when elevating a standard…

wondelai/skills · 113 tokens

design-everyday-things

Apply foundational design principles: affordances, signifiers, constraints, feedback, and conceptual models. Use when the user mentions "why is this confusing", "affordance", "error prevention", "discoverability", "human-centered design", "mental model", "mapping", "seven stages of action", "users keep making…

wondelai/skills · 132 tokens

web-typography

Select, pair, and implement typefaces for web projects. Use when the user mentions "font pairing", "which typeface", "line height", "responsive typography", "web font loading", "type hierarchy", "variable fonts", "FOUT/FOIT", "typographic scale", or "the text is hard to read". Also trigger when choosing between system…

wondelai/skills · 128 tokens

hooked-ux

Design habit-forming product loops using the Hook Model (Trigger, Action, Variable Reward, Investment). Use when the user mentions "users arent coming back", "habit formation", "engagement loops", "habit zone", or "the manipulation matrix". Also trigger when designing notification or re-engagement strategies, building…

wondelai/skills · 109 tokens

tool-design-sprint-readiness

Pre-sprint diagnostic that determines whether a team should run a Design Sprint now, postpone it, or do prerequisite work first. Produces a Go / Conditional Go / Wait verdict with diagnosis, recommended preconditions, attendee list, customer recruiting plan, and pre-sprint activities. Use when a team is considering…

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

tool-design-sprint-decide-and-storyboard

Day 3 (Wednesday) move of a Design Sprint that runs the art museum layout, heat map, speed critique, straw poll, Decider supervote, rumble-vs-all-in-one decision, and the storyboard that drives Thursday's prototype build. The most decision-heavy day of the sprint. Use Wednesday morning and afternoon after Tuesday's…

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