netlify-image-cdn

netlify-image-cdn is a skill for Claude Code from netlify/context-and-tools. It costs 121 tokens per session (2,712 once invoked), scanned C, original, MIT.

A Netlify web endpoint that resizes, crops, converts, and optimizes images when the browser requests them. Netlify is a hosting platform for websites.

In plain words
What is it for?
Use it to create responsive images, thumbnails, WebP or AVIF files, cropped images, animated outputs, and blurred placeholders through image URLs.
Why use it?
It avoids preparing separate image files for every screen size or format. The same source image can be requested with different dimensions, crop settings, formats, and quality levels.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the netlify-skills plugin — 16 skills, 1 MCP server shipped together

Good fit Use it to create responsive images, thumbnails, WebP or AVIF files, cropped images, animated outputs, and blurred placeholders through image URLs.

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

Made for: Claude Code.

Or install netlify-skills, the plugin that ships this one along with the rest of its 16 skills, 1 MCP server.

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 netlify-image-cdn

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/netlify/context-and-tools/netlify-image-cdn"><img src="https://agentmods.dev/badge/skills/netlify/context-and-tools/netlify-image-cdn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 121 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,712 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 28 Sept 2026
  • Snyk fail 25 Nov 2026
How audits are shown
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.00121 $0.02712
Opus 5.5 $0.00048 $0.01085
Sonnet 5.5 $0.00024 $0.00542
Haiku 4.5 $0.00012 $0.00271

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

Security

Grade C, and why

netlify-image-cdn scanned grade C with 2 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 9d 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- system: agent-context/image-cdn/system.md — human-owned, merged by ctx-gen; edit system.md, not this section -->

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -vs "$S/.netlify/images?url=/owl.jpeg" # format negotiation only
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

agent-plugin/skills/netlify-image-cdn/SKILL.md · 197 lines

How it starts

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

Netlify Image CDN

Use this / avoid this

// USE: build the URL on the site's own domain; url is required, the rest optional
const src = `/.netlify/images?url=${encodeURIComponent(remoteOrPath)}&w=400&h=300&fit=cover&fm=webp&q=75`;
# USE: single-quoted literal regex in netlify.toml
[images]
  remote_images = ['https://my-images\.com/.*']

Avoid:

  • _headers / [[headers]] rules targeting a path that rewrites to /.netlify/images (including /_next/image). They are silently ignored. Use an edge function instead.
  • headers() in next.config.js for next/image. It is ignored for the same reason.
  • fit=cover with only w or only h. Cover requires both.
  • Hand-rolling /.netlify/images URLs in Angular, Astro, Gatsby, Next.js, or Nuxt. Use the framework's image component, which already uses Image CDN (see Frameworks).

Endpoint

/.netlify/images?url=<source>[&w=<int>][&h=<int>][&fit=contain|cover|fill][&position=top|bottom|left|right|center][&fm=avif|jpg|png|webp|gif|blurhash][&q=1-100]
Param Values Default Notes
url relative (/owl.jpeg) or absolute remote URL required Remote URLs must match remote_images
w, h integer px — Applied according to fit
fit contain / cover / fill contain Same semantics as CSS object-fit
position top / bottom / left / right / center center The part of the image retained when fit=cover
fm avif jpg png webp gif blurhash negotiated webp and gif may be animated
q integer 1–100 75 Lossy quality for avif, jpg, gif, webp

Format negotiation when fm is omitted (from the Accept header): webp if accepted, else avif, else the original format. A url-only request keeps the image's dimensions but still converts the format.

Response codes:

  • 200: new transformation, with the correct content-type (for example image/png for fm=png).
  • 304: previously transformed image.
  • 404: any invalid parameter value. Check the parameters before suspecting the source.

Read the full file on GitHub · 197 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. 9d ago Changed · +16 lines · -3 tokens per session 8c83a5a117e6
  2. 2mo ago Changed · +20 lines · -9 tokens per session cc7e05af6c15
  3. 3mo ago First seen · 161 lines · 133 tokens per session scan C 4d6b1944b0dd

Subscribe to this mod's changes

netlify-image-cdn is a skill published in the GitHub repository netlify/context-and-tools (58 stars, last pushed yesterday), licensed MIT. It adds 121 tokens to every session and 2,712 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it C with 2 findings (hidden instructions, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

netlify-image-cdn compared with skills from other repositories

netlify-image-cdn next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
netlify-image-cdnnetlify/context-and-toolsSkill58yesterdayMITC121Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill332k6d agoMITA21Claude Code