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

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.

A dense, highly actionable reference: complete executable examples, precise tables, and a footguns section that directly answers the debugging triggers promised in the description. The main weaknesses are the monolithic single-file structure with no progressive disclosure, and a merged house-rules section that duplicates five points already stated in the body.

Suggestions

Move the full Context property table, Web APIs list, and Limits table into a references/ file (e.g. references/context-api.md), keeping SKILL.md as an overview with the core examples, footguns, and a clearly signaled pointer — this would also cut context-window cost.

Deduplicate the merged house-rules section against the body: rules 2, 3, 5, 6, and 7 restate the path-footgun, silent no-op, cache-both-parts, two-pass order, and context.user guidance already given above; keep only the novel rules (framework-adapter check and edge-vs-serverless workload selection) and reference the rest.

Drop or date-stamp the version pin "Manual deploys require CLI ≥ 12.2.8" — specific version numbers go stale and penalize conciseness when not placed in a deprecated/versions note.

DimensionReasoningScore

Conciseness

The core body is exceptionally lean — footguns and tables carry information with no padding, and nothing explains concepts Claude already knows. However, the merged house-rules section (~40 lines) restates five points already covered above (narrow path, silent no-op, cache needs both parts, two-pass order, context.user), and the CLI version pin "≥ 12.2.8" is time-sensitive, so it lands at 'efficient with trimmable instances' rather than 5. It is not a 3: the redundancy is confined to one marked section while the other ~330 lines earn every token.

4 / 5

Actionability

Eleven complete, copy-paste-ready examples cover the common cases (hello, Fetchable module, endpoint, redirect/rewrite, response transform, conditional requests, body re-read, user gate, waitUntil, streaming SSR, caching), each with correct imports and a config export. Concrete commands with flags ("netlify dev", "--geo=mock --country=DE", "--edge-inspect-brk") and a worked toml ordering example round out fully executable guidance.

5 / 5

Workflow Clarity

The multi-step processes that exist are clearly sequenced: declaration ordering is explained as a two-pass loop with a concrete worked example ("A request to /admin runs auth, then common, then injector"), local dev/debug/deploy/logs steps are concrete, and onError gives explicit recovery paths that map to the description's failure triggers. It is not 5 because there are no explicit validation/verification checkpoints (e.g., confirming a function is actually invoked after deploy), though the skill involves no destructive or batch operations that would cap the score.

4 / 5

Progressive Disclosure

No bundle files exist (no references/, scripts/, or assets/), so all ~370 lines — including the full Context property table, web APIs list, limits table, and the house-rules section — are inlined in SKILL.md. Section headers and the final well-signaled external doc links keep it navigable (so not 2), but content that would naturally live one level deep in a reference file is inline, matching the 'some structure; content that should be separate is inline' anchor 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, enumerates concrete capabilities, and provides two explicit trigger clauses covering both build-time use cases and the failure modes users actually describe. Trigger vocabulary is natural and comprehensive, and the skill is clearly distinguishable from adjacent serverless/static-site skills.

DimensionReasoningScore

Specificity

Opens with four concrete actions ("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"), covering creation, routing, caching, and debugging with no coverage gaps. This matches the 'multiple specific concrete actions; comprehensive coverage' anchor, not 4, because the action list is complete rather than having minor gaps.

5 / 5

Completeness

The first sentence explicitly answers 'what' (write, route, cache, debug edge functions, with a definition of what they are), and "Activate this skill whenever someone wants to..." plus "Also use it when..." provide explicit 'when' guidance with concrete trigger phrases. Both halves are explicit and concrete, which is the 5-anchor; a 4 would require the 'when' to be less specific.

5 / 5

Trigger Term Quality

Natural phrases a user would actually say appear throughout: "auth middleware", "login gate", "redirect or rewrite", "A/B testing", "localize or personalize", "stream server-side rendering", plus debugging phrasings like "silently does nothing" and "cannot read an environment variable". Coverage includes synonyms (login gate/auth middleware, localize/personalize) and the literal directory path netlify/edge-functions, matching the comprehensive-synonyms anchor.

5 / 5

Distinctiveness Conflict Risk

The niche is tightly pinned to "Netlify Edge Functions" and the netlify/edge-functions directory, and the definition even distinguishes them from "serverless functions" and "static files". Trigger phrases are edge-specific behaviors (geolocation redirects, edge caching, edge SSR), so overlap risk with a general Netlify or serverless skill is minimal — matching the clear-niche anchor.

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.