react-zmage-integration

react-zmage-integration is a skill for Claude Code, Codex from Caldis/react-zmage. It costs 37 tokens per session (334 once invoked), scanned A, original, MIT.

A set of instructions for adding react-zmage, a React image viewer with fullscreen previews, zooming, and gallery browsing, to image content in an app.

In plain words
What is it for?
It is for integrating image previews into React, Next.js, MDX, CMS, Markdown, rich-text, and similar image surfaces.
Why use it?
It explains which integration approach fits ordinary React images, CMS content, Markdown, or generated HTML, reducing setup mistakes.

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/caldis/react-zmage/react-zmage-integration
Any agent
npx skills add Caldis/react-zmage --skill react-zmage-integration
Clone the repo
git clone --depth 1 https://github.com/Caldis/react-zmage

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 react-zmage-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/caldis/react-zmage/react-zmage-integration.svg)](https://agentmods.dev/skills/caldis/react-zmage/react-zmage-integration)
Your own site
<a href="https://agentmods.dev/skills/caldis/react-zmage/react-zmage-integration"><img src="https://agentmods.dev/badge/skills/caldis/react-zmage/react-zmage-integration.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 334 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00334
Opus 5 $0.00018 $0.00167
Sonnet 5 $0.00007 $0.00067
Haiku 4.5 $0.00004 $0.00033

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

Security

Grade A, and why

react-zmage-integration 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 3d 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.

docs/.well-known/agent-skills/react-zmage-integration/SKILL.md · 37 lines

What it actually says

react-zmage integration

When to use this skill

Use this skill when a user wants fullscreen image preview, image zoom, a React lightbox alternative, CMS image preview, MDX image preview, or gallery browsing in a React app.

Do not use this skill for unrelated image processing, server-side media transformation, account automation, OAuth setup, webhook setup, or MCP server work. react-zmage is a client-side React package.

Read first

Fetch https://zmage.caldis.me/llms.txt for the compact integration contract. Use https://zmage.caldis.me/llms-full.txt when you need the full README and repository agent notes in one request.

Install

npm install react-zmage

Import the stylesheet once from the app-level style entry:

import 'react-zmage/style.css'

Choose a mode

  • Component mode: replace owned React <img> markup with <Zmage src="..." alt="..." />.
  • Wrapper mode: wrap CMS, MDX, markdown, rich text, or generated HTML with <Zmage.Wrapper>.
  • Imperative mode: call Zmage.browsing(options) from a button, command, callback, or non-image event.

Prefer omitted preset so it resolves to auto. Keep optional behavior props unset during a basic install unless the user asks for them or testing exposes a concrete need.

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. 3d ago First seen · 37 lines · 37 tokens per session scan A e99645f90530

Subscribe to this mod's changes

react-zmage-integration is a skill published in the GitHub repository Caldis/react-zmage (943 stars, last pushed 3mo ago), licensed MIT. It adds 37 tokens to every session and 334 once invoked, about $0.0002 per session on Opus 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

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

row-selection

Maintain rowSelection ID state with stable getRowId, single, multi, subrow, and Shift-range rules, selected row models, handler anchors, and manual-pagination semantics. Load when implementing getToggleSelectedHandler, enableRowRangeSelection, selectChildren, deselectParents, or selected IDs that outlive loaded Row…

TanStack/table · 68 tokens

material-ui-tailwind

Integrates Material UI with Tailwind CSS v4 using cascade layers (enableCssLayer, @layer order) and documents Tailwind v3 interoperability (preflight, important, injectFirst, portals). Use when combining MUI with Tailwind utilities, slotProps className, or theme token bridges.

mui/material-ui · 67 tokens

wrdn-effect-promise-exit

Replace React/effect-atom mutation handlers that use promise-mode plus try/catch with promiseExit and explicit Exit handling. Use when lint or review flags try/catch around useAtomSet mutation calls, especially UI handlers that set error/busy state after a failed mutation.

UsefulSoftwareCo/executor · 63 tokens

fast-typescript-check

Keep www-sacred's TypeScript fast to type-check and fast to run. Use when touching the ASCII/canvas animation components (the only real per-frame code here), tightening type-check wall-clock, or auditing a change for runtime or compiler regressions. Scoped to this repo — a React 19 / Next.js 16 component library plus…

internet-development/www-sacred · 84 tokens

markstream-react

Integrate the beta markstream-react package into a React 18+ or Next app. Use when Codex needs to add the React renderer, choose the root, next, or server entrypoint, import CSS correctly, choose between content and nodes, keep client boundaries safe, add renderer-local streamingComponents or htmlComponents, use…

Simon-He95/markstream-vue · 94 tokens