netlify-image-cdn

netlify-image-cdn is a skill for Codex from PracticalSwan/agent-skills. It costs 133 tokens per session (3,060 once invoked), scanned C, a copy of netlify-image-cdn, MIT.

A guide to using Netlify's built-in image service to resize, crop, convert, and optimize images when they are requested. It also covers responsive images, thumbnails, blurred placeholders, and remote-image access.

In plain words
What is it for?
Use it to build image URLs or framework image components that resize, crop, change format, adjust quality, or create placeholders.
Why use it?
It reduces the need to create and store many image versions manually, helping sites deliver images suited to different screen sizes and formats.

Skill for Codex

Written for Codex: reads $CODEX_HOME. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it to build image URLs or framework image components that resize, crop, change format, adjust quality, or create placeholders.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/practicalswan/agent-skills/netlify-image-cdn/github.svg)](https://agentmods.dev/skills/practicalswan/agent-skills/netlify-image-cdn)
Your own site
<a href="https://agentmods.dev/skills/practicalswan/agent-skills/netlify-image-cdn"><img src="https://agentmods.dev/badge/skills/practicalswan/agent-skills/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/practicalswan/agent-skills/netlify-image-cdn"><img src="https://agentmods.dev/badge/skills/practicalswan/agent-skills/netlify-image-cdn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 133 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,060 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.
Origin 86% copy Near-identical to another mod 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.00133 $0.03060
Opus 5.5 $0.00053 $0.01224
Sonnet 5.5 $0.00027 $0.00612
Haiku 4.5 $0.00013 $0.00306

Measured 1mo ago against content hash 69bca47f26b0, 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 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.

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 'https://mysitename.netlify.app/.netlify/images?url=/owl.jpeg&w=50'
Origin

This is a copy

86% identical to netlify-image-cdn — 245 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

netlify-image-cdn/SKILL.md · 232 lines

How it starts

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

Netlify Image CDN

Transform images by requesting the endpoint with a url query parameter. This is the current and only documented surface — there is no legacy form.

GET /.netlify/images?url=<source>[&w=][&h=][&fit=][&position=][&fm=][&q=]
# resize a deployed image to 50px wide
curl -vs 'https://mysitename.netlify.app/.netlify/images?url=/owl.jpeg&w=50'

url is required; all other parameters are optional.

Query parameters

Parameter Purpose Values Default
url Source asset (required) Relative path or remote URL —
w Width in pixels Integer —
h Height in pixels Integer —
fit Resize behavior contain, cover, fill contain
position Crop anchor when fit=cover top, bottom, left, right, center center
fm Output format avif, jpg, png, webp, gif, blurhash content-negotiated
q Quality for lossy output Integer 1–100 75

Common transformations

# resize + crop to a 50px square, retaining the left side
curl -vs 'https://mysitename.netlify.app/.netlify/images?url=/owl.jpeg&fit=cover&w=50&h=50&position=left'

# convert JPEG to PNG (response carries content-type: image/png)
curl -vs 'https://mysitename.netlify.app/.netlify/images?url=/owl.jpeg&fm=png'

# convert JPEG to AVIF at medium quality
curl -vs 'https://mysitename.netlify.app/.netlify/images?url=/owl.jpeg&fm=avif&q=50'

fit behavior

  • contain (default): maintains aspect ratio; one dimension may come back smaller than requested. Supply one dimension and the other is computed.
  • cover: fills exactly, cropping excess. Requires BOTH w and h — omitting either is invalid. Use position to choose what's retained.
  • fill: fills exactly, stretching/squishing if aspect ratios differ.

Format notes

  • q applies only when output is avif, jpg, gif, or webp.
  • webp and gif can be static or animated.
  • If fm is omitted, format is content-negotiated from the Accept header: webp if accepted, else avif if accepted, else the original format. A source-only request (no other params) still converts to webp/avif but keeps size and shape.

Read the full file on GitHub · 232 lines

Files

What ships with it

3 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 Changed · +20 lines 69bca47f26b0
  2. 2mo ago Changed 3f388838c3e5
  3. 2mo ago Changed ad974e06ca2a
  4. 3mo ago First seen · 212 lines · 133 tokens per session scan C 5d0a51aa23ad

Subscribe to this mod's changes

netlify-image-cdn is a skill published in the GitHub repository PracticalSwan/agent-skills (25 stars, last pushed 18d ago), licensed MIT. It adds 133 tokens to every session and 3,060 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). It is 86% identical to netlify-image-cdn, differing in 245 lines, and is treated as a copy.

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-cdnPracticalSwan/agent-skillsSkill2518d agoMITC133Codex
image-compareteimurjan/blazediffSkill3606d agoMITA49Claude Code, Codex
animejs-animationranbot-ai/awesome-skillsSkill15todaynoneA19Claude Code, Codex
anti-ui-slopranbot-ai/awesome-skillsSkill15todaynoneA39Claude Code, Codex
designdyeoman2/tanstack-start-templateSkill287mo agoMITA88Codex
anti-slop-designsickn33/agentic-awesome-skillsSkill51ktodayMITA34Claude Code
chakra-ui-builderchakra-ui/chakra-uiSkill41ktodayMITA214Claude Code, Codex