1. Habit
  2. Skills
  3. Netlify Edge Functions skill
netlify · 3K installs

Netlify Edge Functions skill
Runs by itself, edge function file changed.

No silent edge functions ship.

Install the Netlify Edge Functions skill and make it a habit: follow https://gethabit.dev/skills/netlify/netlify-edge-functions.md

  1. 1Copy
  2. 2Paste into Claude Code, Codex or Cursor
  3. 3It runs by itself

3K installs41 starsMIT licenceSource on GitHub ↗

Netlify Edge Functions

by netlify · 3K installs

The skill

The netlify edge functions skill helps an agent write, route, cache and debug Deno-based edge handlers on Netlify, from auth gates and geo redirects to streaming SSR.

Only when you ask.

The habit

No silent edge functions ship.

↻ Runs by itselfedge function file changed

How the habit works.
You don't have to.

Three questionsWhen does it start? How does it check its work? What does it remember?

One run, step by step.
Then it stops.

Stop ruleStops after one pull request and at most 20 functions per run.

  1. 01

    Collect changed functions

    Your agent lists the changed files under netlify/edge-functions and the netlify.toml declarations.

  2. 02

    Check routes

    Each function needs a path, a pattern or a toml entry, or it never runs.

  3. 03

    Check caching

    A function with cache: "manual" must also set Cache-Control or a related header on its Response.

  4. 04

    Check scope

    A path of /* without excludedPath gets flagged, because it runs on every asset.

  5. 05

    Check env access

    Env reads must use Netlify.env.get, and no variables may rely on netlify.toml.

  6. 06

    Report findings

    The agent comments the failed checks and adds new footguns to the notes file.

What it may do.
Nothing more.

Safe by defaultIt writes only in its own folder and asks you before anything goes out.

Is it for you?
Use it when it fits.

Quick checkRead both lists. If the left one sounds like you, the Netlify Edge Functions skill helps.

Use it when

  • ✓ You add auth middleware at the edge
  • ✓ You redirect visitors by country or cookie
  • ✓ An edge function silently does nothing

Skip it when

  • – The job is long-running work
  • – Your site is not on Netlify

Questions

Netlify Edge Functions skill, answered.

Why check routes at all?

An edge function without a route still deploys but never runs, and there is no build warning.

Does it test the function live?

It can use netlify dev locally, but the hard checks are static reads of the code and config.

How do I install the Netlify Edge Functions skill?

Copy the prompt at the top into your agent. It installs the skill from netlify/context-and-tools and sets up the habit. Or run npx skills add netlify/context-and-tools --skill netlify-edge-functions.

Is the Netlify Edge Functions skill free?

Yes. It is published under MIT. Habit is free too.

Netlify Edge Functions. Now as a habit.

Install the Netlify Edge Functions skill and make it a habit: follow https://gethabit.dev/skills/netlify/netlify-edge-functions.md

  • Free
  • No account
  • Undo in one line

All netlify skills →More code skills →

Works in

  • Claude Code
  • Codex
  • Cursor
  • ChatGPT
  • Claude app

Made by netlify, published under MIT. Habit links to the original and never changes it. Is this your skill?

Copying didn't work here. Select the line and copy it by hand.