Netlify Edge Functions

🌐Community
by netlify · vlatest · Repository

Netlify Edge Functions lets you run serverless code at the edge of the network for instant global performance and reduced latency, boosting your website's speed.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add netlify-edge-functions npx -- -y @trustedskills/netlify-edge-functions
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "netlify-edge-functions": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/netlify-edge-functions"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill allows AI agents to execute Netlify Edge Functions. These functions run on Netlify's edge network, providing low latency and improved performance for tasks like A/B testing, image optimization, or authentication checks. They are serverless functions that can be triggered by various events within the Netlify ecosystem.

When to use it

  • A/B Testing: Dynamically serve different content variations based on user attributes or experiment configurations.
  • Image Optimization: Resize and optimize images on-the-fly, reducing bandwidth usage and improving page load times.
  • Authentication Checks: Verify user credentials before granting access to protected resources.
  • Dynamic Redirects: Implement complex redirect logic based on request headers or other factors.

Key capabilities

  • Execute serverless functions at the edge network.
  • Triggered by various Netlify events.
  • Low latency execution for improved performance.
  • Suitable for A/B testing, image optimization, and authentication.

Example prompts

  • "Run the 'optimize-image' Edge Function on this URL."
  • "Execute the 'authentication-check' function with user ID 12345."
  • "Trigger the 'redirect-logic' function based on the request headers."

Tips & gotchas

  • Requires a Netlify account and properly configured Edge Functions.
  • Ensure your Edge Function code is optimized for performance, as execution time is limited.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
netlify
Installs
2

🌐 Community

Passed automated security scans.