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

93%

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

SKILL.md
Quality
Evals
Security

Quality

Content

82%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, dense reference skill: nearly every line carries Netlify-specific, non-inferable facts, and the executable examples cover the realistic use cases end to end. The main weaknesses are duplication between the footguns section and the appended house rules, and the absence of an explicit end-to-end workflow or bundle split for the API-detail material.

Suggestions

Deduplicate the house-rules section against the footguns list: rules 2, 3, 5, and 7 restate the path "/*" warning, the no-route silent no-op, the cache: manual both-parts requirement, and context.user semantics already covered above — keep only the genuinely new guidance (framework-adapter-first, edge vs serverless workload shape, never trust client-sent identity headers).

Add a short numbered workflow at the top (check framework adapter → write file with default export + config → declare route inline or in netlify.toml → netlify dev with --geo mock to verify → deploy) so the reference sections hang off an explicit sequence with validation checkpoints.

Move the Context property table, Web APIs, and module-loading lists into a references/ file (e.g. references/context-api.md) linked from the body, keeping SKILL.md as a leaner overview and enabling one-level-deep progressive disclosure.

DimensionReasoningScore

Conciseness

The body is dense and fact-bearing (footgun list, config tables, limits, terse code) with no padding of concepts Claude already knows, but the trailing house-rules section re-states several facts already covered above (no-route silent no-op, cache: manual + headers both-or-neither, path "/*" intercepts everything, context.user semantics), which is more than a minor trim.

4 / 5

Actionability

Ten complete, copy-paste-ready examples (hello, redirect/rewrite, middleware transform, conditional request, body replay, user gate, waitUntil, streaming SSR, caching) plus concrete CLI flags (--edge-inspect, --geo=mock --country=DE) and a worked ordering trace ("A request to /admin runs auth, then common, then injector") fully cover the common cases.

5 / 5

Workflow Clarity

The core path is unambiguous (template → declare route inline or in toml → netlify dev → deploy) with real checkpoints (check the framework adapter first, check the route first when a function does nothing, fail-closed onError guidance for auth), but the sections read as reference material with no explicit end-to-end step sequence tying them together, so it sits between the 4 and 5 anchors rather than clearly at 5.

4 / 5

Progressive Disclosure

A single self-contained file with well-organized sections and external doc links for deeper material (API, declarations, limits, examples). However, no bundle files exist and API-reference-like content (the full Context table, Web APIs and module lists, and ~40 lines of house rules) is inlined in the entry file, which is a minor organization gap rather than the clear split of the 5 anchor.

4 / 5

Total

17

/

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, enumerates comprehensive capabilities, and gives explicit, naturally-phrased trigger conditions for both build-time and debug-time use. Third-person imperative voice is used throughout with no fluff.

DimensionReasoningScore

Specificity

The description lists four concrete actions ("Write, route, cache, and debug") and pins the domain precisely ("Deno-based TypeScript or JavaScript handlers in netlify/edge-functions that run at the network edge in front of static files and serverless functions"), matching the comprehensive-coverage 5 anchor rather than the 4 anchor, which expects minor gaps.

5 / 5

Completeness

It explicitly answers both what (first sentence defines the capability and the artifact) and when ("Activate this skill whenever someone wants to... Also use it when an edge function silently does nothing..."), which is exactly the 5-anchor pattern of concrete trigger phrases; the 4 anchor's caveat about a less-explicit 'when' does not apply.

5 / 5

Trigger Term Quality

Natural user phrasings are comprehensive: "auth middleware", "login gate", "A/B testing", "localize or personalize a page with geolocation", "transform or inject HTML", plus failure-mode triggers like "silently does nothing" and "cannot read an environment variable" — no common synonym is obviously missing.

5 / 5

Distinctiveness Conflict Risk

"Netlify Edge Functions" is a clear niche named throughout, and every trigger is scoped to edge-function work (even debug triggers are qualified by "an edge function"), so conflict risk with adjacent skills (serverless functions, general Netlify deploys) is minimal.

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

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.