CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

netlify-edge-functions

Write, route, cache, and debug Netlify Edge Functions, the Deno-based TypeScript or JavaScript handlers in netlify/edge-functions that run at the network edge in front of static files and serverless functions. Activate this skill whenever someone wants to add auth middleware or a login gate, redirect or rewrite visitors by country or cookie, localize or personalize a page with geolocation, run A/B testing, transform or inject HTML into a response, stream server-side rendering at the edge, or cache an edge response. Also use it when an edge function silently does nothing, runs in the wrong order, ignores its Cache-Control headers, or cannot read an environment variable.

Quality

94%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

The canonical home for this skill is netlify-edge-functions in netlify/context-and-tools

SKILL.md
Quality
Evals
Security

Quality

Content

86%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A strong, highly actionable reference: nearly every section is executable copy-paste guidance with platform-specific footguns Claude would not know, and verification paths for local dev are included. The main weaknesses are inline bulk reference material with no progressive-disclosure file split, and a merged house-rules section that duplicates footgun content already in the body.

Suggestions

Split bulk reference material into one-level-deep bundle files — e.g. references/context-api.md for the Context table and web/module APIs, references/declarations.md for the config/toml keys and ordering rules, references/limits.md — keeping SKILL.md as an overview with clearly signaled links.

Deduplicate the merged 'Netlify house rules' section against the body: rules 2, 3, 5, 6, and 7 restate the Footguns, caching, and Order sections; keep only the genuinely new guidance (adapter-first check, edge-vs-serverless workload choice) inline.

Add a short ordered diagnostic workflow for the 'edge function silently does nothing' case (check config/toml declaration → check excludedPath and ordering → check Split Testing/same-name .js override → verify with netlify dev and the logs URL) so debugging has explicit checkpoints.

DimensionReasoningScore

Conciseness

The body is dense and lean — tables, terse footguns, complete code, no basic-concept explanations — but the merged 'Netlify house rules' section restates rules already covered above (path "/*" interception, cache needing both parts, context.user undefined cases, the two-pass order), and trailing gap/undocumented comments add tokens. It fits 'efficient; minor instances of over-explanation that could be trimmed' better than the noticeably-verbose anchor, since roughly half the house-rules content (adapter-first guidance, edge-vs-serverless workload split) is genuinely new.

4 / 5

Actionability

Every task has copy-paste-ready, complete code: the canonical handler form, redirect/rewrite, middleware transform, conditional requests, body re-read before next(), user gate, waitUntil, streaming SSR, and caching config, plus exact CLI flags (--edge-inspect, --geo=mock --country=DE), the logs URL pattern, and a worked toml ordering example. This matches the fully-executable anchor covering the common cases.

5 / 5

Workflow Clarity

Each recipe is unambiguous and there is a local verification loop (netlify dev, changes apply on next request, debugger and geo mocking) plus a debugging entry point ('check the route first'), but there is no explicit first-time setup sequence or validate→fix→retry checkpoint pattern. Not 5 because feedback loops are implicit; not 3 because per-task guidance is concrete, dev-loop verification is stated, and no destructive or batch operations lack validation.

4 / 5

Progressive Disclosure

No bundle files exist (references/, scripts/, assets/ are all absent) and the entire 18 KB reference lives inline in one SKILL.md; the Context API table, the declarations/toml reference, and the limits table are exactly the bulk material the anchors say belongs in one-level-deep separate files. Section headers are clear and external doc links are provided, so it sits at 'some structure... content that should be separate is inline' rather than the minimal-structure anchor.

3 / 5

Total

16

/

20

Passed

Description

100%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

The description is exemplary: it states concrete capabilities in third person, gives explicit and varied 'use when' triggers covering both build and debug scenarios, and occupies a distinct niche with negligible conflict risk. Every dimension lands on the top anchor.

DimensionReasoningScore

Specificity

Names the domain ('Deno-based TypeScript or JavaScript handlers in netlify/edge-functions') and lists multiple concrete actions — auth middleware, redirects/rewrites by country or cookie, geolocation personalization, A/B testing, HTML transformation, streaming SSR, caching, and debugging — with no notable coverage gaps, matching the comprehensive anchor rather than the 'minor gaps' anchor.

5 / 5

Completeness

Explicitly answers what ('Write, route, cache, and debug Netlify Edge Functions...') and when with two explicit trigger clauses ('Activate this skill whenever someone wants to...' and 'Also use it when an edge function silently does nothing...'), matching the both-clearly-answered anchor.

5 / 5

Trigger Term Quality

Covers natural phrases users would actually say ('auth middleware', 'login gate', 'redirect or rewrite visitors by country or cookie', 'A/B testing', 'cache an edge response', 'cannot read an environment variable', 'silently does nothing') including synonyms across both build-time and debug intents, fitting the comprehensive-synonyms anchor rather than 'a few natural terms missing'.

5 / 5

Distinctiveness Conflict Risk

A clear niche — Netlify Edge Functions specifically, with the directory path and runtime named — and all triggers are edge-specific (edge caching, edge function ordering, edge env vars), giving minimal overlap risk with generic Netlify or serverless-functions skills.

5 / 5

Total

20

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

netlify/context-and-tools

Path

agent-plugin/skills/netlify-edge-functions/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.