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

91%

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

78%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.

An unusually dense, high-signal reference: executable examples for every common pattern, precise ordering and caching semantics, and a well-curated footgun list with no beginner padding. Its main weaknesses are the absence of progressive disclosure (everything inlined in one long file with no reference bundle) and redundancy between the main body and the appended house-rules section.

Suggestions

Split reference material into bundle files — e.g. references/context-api.md for the Context property and Web API tables, references/declarations.md for the config/toml/ordering details, and references/examples.md for the recipe collection — keeping SKILL.md as a lean overview with one-level-deep, clearly signaled links.

Deduplicate the appended house-rules section against the main body: the no-route silent no-op, cache-needs-both-parts, two-pass ordering, and context.user-undefined points each appear twice; state them once and have the merged section reference them.

Add a short end-to-end 'create, test locally, verify routing, deploy' sequence with an explicit verification step (e.g. confirm the function appears in the deployed function list and the route responds) to complement the per-pattern recipes.

DimensionReasoningScore

Conciseness

The body is dense and factual throughout — footguns, tables, and code with zero conceptual padding (no 'what is an edge function' prose) — so it is well above the midpoint. However, the appended house-rules section duplicates several facts already stated above (no-route silent no-op, cache needs both parts, the two-pass ordering loop, context.user undefined handling), which is trimmable redundancy. Not a 5 because of that repeated content; not a 3 because nothing is over-explained for a competent reader.

4 / 5

Actionability

Nearly every section is copy-paste-ready: a minimal working handler, redirect/rewrite, middleware transform, conditional requests, body-read-then-continue, user gate, waitUntil, streaming SSR, inline and toml config forms, and concrete CLI commands with flags ("netlify dev", "--geo=mock --country=DE", "--edge-inspect-brk"). Common cases are covered by complete executable examples, matching the 5 anchor; a 4 would imply minor gaps in the examples.

5 / 5

Workflow Clarity

This is a reference/recipe skill rather than a single multi-step pipeline, and each task pattern is unambiguous with explicit ordering rules (the two-pass declaration walk, redirect-after-functions), error-handling choices with fail-open/fail-closed guidance, and a debug-first rule ("check the route first" for silent no-ops). It sits at 4 rather than 5 because there is no explicit step sequence with validation checkpoints for a full build-verify-ship loop; it is above 3 since the per-task flows are complete and validation-relevant guidance (onError, local dev debugging) is present.

4 / 5

Progressive Disclosure

There are no bundle files (references/, scripts/, assets/ are absent), so ~370 lines of material — the Context API table, Web APIs list, examples, and limits tables — live inline in SKILL.md when they clearly belong in separate reference files. Section headers and clear organization prevent a 2, but content that should be split out is inlined and there are no one-level-deep internal references, which caps it at 3 rather than 4.

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.

An exemplary description: it defines the artifact precisely, lists concrete capabilities, and provides two explicit trigger clauses covering both build-time use cases and debugging symptoms in natural user language. It is dense but every phrase earns its place.

DimensionReasoningScore

Specificity

The description leads with four concrete verbs ("Write, route, cache, and debug") and precisely defines the artifact ("Deno-based TypeScript or JavaScript handlers in netlify/edge-functions that run at the network edge in front of static files and serverless functions"), then enumerates specific scenario actions (auth middleware, redirect/rewrite by country or cookie, A/B testing, HTML injection, streaming SSR). Coverage is comprehensive for the domain with no filler; not below 5 because no concrete capability area is missing, and not a 4 since there are no minor gaps.

5 / 5

Completeness

It explicitly answers both questions: the first sentence states what the skill does, and two explicit trigger clauses ("Activate this skill whenever someone wants to..." and "Also use it when...") state when to use it with concrete trigger phrases. This matches the 5 anchor exactly; a 4 would require the 'when' to be less explicit or specific.

5 / 5

Trigger Term Quality

It captures natural user phrasing comprehensively, including synonyms ("auth middleware or a login gate", "localize or personalize", "redirect or rewrite") and especially debugging phrasings users would actually say: "silently does nothing", "runs in the wrong order", "ignores its Cache-Control headers", "cannot read an environment variable". Not a 4 because the natural-term coverage, including symptom-language for failures, leaves no common variation missing.

5 / 5

Distinctiveness Conflict Risk

It names a clear niche ("Netlify Edge Functions", directory "netlify/edge-functions", "Deno-based") with triggers tied to Netlify-specific behaviors, so overlap with generic Netlify or serverless skills is minimal. Not a 4: the product, runtime, and failure modes are all uniquely identifying, not merely 'mostly distinct'.

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

codex/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.