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.
npx skills add PracticalSwan/agent-skills --skill netlify-image-cdngit clone --depth 1 https://github.com/PracticalSwan/agent-skillsWrote 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.
[](https://agentmods.dev/skills/practicalswan/agent-skills/netlify-image-cdn)<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.
<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>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.
| Model | Per session | Once 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 |
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' 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.
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 BOTHwandh— omitting either is invalid. Usepositionto choose what's retained.fill: fills exactly, stretching/squishing if aspect ratios differ.
Format notes
qapplies only when output isavif,jpg,gif, orwebp.webpandgifcan be static or animated.- If
fmis omitted, format is content-negotiated from theAcceptheader:webpif accepted, elseavifif accepted, else the original format. A source-only request (no other params) still converts towebp/avifbut keeps size and shape.
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.
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.
- 1mo ago Changed · +20 lines 69bca47f26b0
- 2mo ago Changed 3f388838c3e5
- 2mo ago Changed ad974e06ca2a
- 3mo ago First seen · 212 lines · 133 tokens per session scan C 5d0a51aa23ad
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.
netlify-image-cdn compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| netlify-image-cdnPracticalSwan/agent-skills | Skill | 25 | 18d ago | MIT | C | 133 | Codex |
| image-compareteimurjan/blazediff | Skill | 360 | 6d ago | MIT | A | 49 | Claude Code, Codex |
| animejs-animationranbot-ai/awesome-skills | Skill | 15 | today | none | A | 19 | Claude Code, Codex |
| anti-ui-slopranbot-ai/awesome-skills | Skill | 15 | today | none | A | 39 | Claude Code, Codex |
| designdyeoman2/tanstack-start-template | Skill | 28 | 7mo ago | MIT | A | 88 | Codex |
| anti-slop-designsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 34 | Claude Code |
| chakra-ui-builderchakra-ui/chakra-ui | Skill | 41k | today | MIT | A | 214 | Claude Code, Codex |