Skip to content
iSkllsSign up free

Serve images from a CDN

Compressed WebP copies on a CDN, originals kept, your app server serves zero image bytes.

Use this skill

Read https://isklls.com/s/serve-images-from-a-cdn and follow it.

Paste it into Claude, ChatGPT, Codex, Gemini or any agent that can open a link, then add your task.

serve-images-from-a-cdn.md
Raw

Purpose::

Project images load fast and cheap from a CDN; the app server serves zero image bytes.

Rules::

  • Originals stay local; only compressed WebP copies go up
  • One storage zone and one pull zone per project
  • No images in the public folder, no proxy routes, no paid image optimizing

Inventory::

  • A CDN with storage (Bunny, Cloudflare R2 or similar) and its API key
  • Your image folder

Steps::

  1. 1Create the storage and pull zone named after the project
  2. 2Convert images to WebP (plus thumbnails if needed) and upload; skip files already there
  3. 3Write a manifest JSON (url, size, thumb) the site reads
  4. 4Allow the CDN host in the framework's image settings; turn off server optimizing
  5. 5Check one URL answers 200 image/webp
  6. 6Reply in one line: files uploaded, MB stored, sample URL

Metrics::

  • Every image URL answers from the CDN
  • Re-running uploads nothing twice
Website.md

Purpose:: List the pages of the first website.

Steps::

  1. 1. Start with home, pricing
  2. 2. Add signup and signin if users get an account
  3. 3. Add the 1-3 pages where the idea and the success metric happen
  4. 4. Reply as one comma separated line

Plan a first sitemap

The 4-7 pages your first website needs, so every CTA and success metric has a page.

Website.md

Purpose:: Lock the main inspiration URL: the live site your first website follows in structure and craft.

Steps::

  1. 1. Think of 3 famous products that sell something close to your idea
  2. 2. Open each; note how the home page puts the main action first
  3. 3. Keep the one with the clearest, most detailed home
  4. 4. Reply with its homepage URL and one line on what you take from it

Pick an inspiration website

Lock one famous, live product site whose structure your first website will follow.

Website.md

Purpose:: Say in one concrete sentence why this project is a perfect fit for you.

Steps::

  1. 1. Read the project's purpose
  2. 2. Read what you are about and what you have
  3. 3. Find the overlap: what you already have that this project can offer
  4. 4. Write: we have <X> (evidence), so <project> offers <Y> to <buyer>

Prove the fit in one sentence

Say why this project is a perfect fit for you, with evidence of what you already have.

Website.md

Purpose:: Build the perfect alternative to your direct competitors: their best parts plus what visitors in this space are used to.

Steps::

  1. 1. Per competitor: note the landing, pages and flow
  2. 2. List what they all share (traditional) and the best part of each
  3. 3. Build the header, footer and home, then the other public pages from that list
  4. 4. Deploy; screenshot desktop and mobile; compare with the competitor screenshots; fix

Build the best alternative frontend

Take the best part of each direct competitor plus what visitors in the space expect, and build it better.