Cloudflare Workers & Edge AI Development

Cloudflare Workers & Edge AI Development is a skill for Claude Code, Codex from bobmatnyc/mcp-skillset. It costs 48 tokens per session (3,167 once invoked), scanned A, original, MIT.

Guidance for building applications on Cloudflare Workers, a serverless platform that runs code near users, including applications that use AI models at the edge.

In plain words
What is it for?
Use it for edge APIs, AI inference, authentication or rate-limiting middleware, real-time collaboration with Durable Objects, and sites with dynamic edge logic.
Why use it?
It helps developers build and deploy globally distributed backends without managing traditional servers, while covering Cloudflare-specific components and patterns.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for edge APIs, AI inference, authentication or rate-limiting middleware, real-time collaboration with Durable Objects, and sites with dynamic edge logic.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bobmatnyc/mcp-skillset/cloudflare-edge-ai
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bobmatnyc/mcp-skillset --skill cloudflare-edge-ai
Clone the repo
git clone --depth 1 https://github.com/bobmatnyc/mcp-skillset

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Cloudflare Workers & Edge AI Development

README.md
[![agentmods](https://agentmods.dev/badge/skills/bobmatnyc/mcp-skillset/cloudflare-edge-ai/github.svg)](https://agentmods.dev/skills/bobmatnyc/mcp-skillset/cloudflare-edge-ai)
Your own site
<a href="https://agentmods.dev/skills/bobmatnyc/mcp-skillset/cloudflare-edge-ai"><img src="https://agentmods.dev/badge/skills/bobmatnyc/mcp-skillset/cloudflare-edge-ai/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Cloudflare Workers & Edge AI Development

Your own site · 80×15
<a href="https://agentmods.dev/skills/bobmatnyc/mcp-skillset/cloudflare-edge-ai"><img src="https://agentmods.dev/badge/skills/bobmatnyc/mcp-skillset/cloudflare-edge-ai.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,167 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.03167
Opus 5 $0.00024 $0.01584
Sonnet 5 $0.00010 $0.00633
Haiku 4.5 $0.00005 $0.00317

Measured 11d ago against content hash 3dfa078dfda1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

Cloudflare Workers & Edge AI Development scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

async fetch(request: Request, env: Env, ctx: ExecutionContext): Promise<Response> {
docs/skill-templates/cloudflare-edge-ai/SKILL.md · 491 lines

How it starts

The opening of the file, as written. The whole thing — 491 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cloudflare Workers & Edge AI Development

Overview

Master Cloudflare Workers - the fastest serverless platform with <1ms cold starts and Workers AI for running LLMs at the edge. Deploy across 330+ data centers globally for ultra-low-latency applications that run close to your users.

When to Use This Skill

  • Building globally distributed APIs with <50ms latency
  • Running AI/LLM inference at the edge (Workers AI)
  • Creating serverless backends without managing infrastructure
  • Implementing edge middleware (auth, rate limiting, A/B testing)
  • Building real-time collaborative applications (Durable Objects)
  • Processing high-traffic workloads cost-effectively
  • Deploying static sites with dynamic edge logic

Core Principles

1. V8 Isolates (Not Containers)

Workers run in V8 isolates - much faster than containers

// Basic Worker structure
export default {
  async fetch(request: Request, env: Env, ctx: ExecutionContext): Promise<Response> {
    // ✅ <1ms cold start (V8 isolate, not container!)
    // ✅ Runs in 330+ locations automatically
    // ✅ 0ms warm start (keeps isolate alive)

    return new Response("Hello from the edge!", {
      headers: { "Content-Type": "text/plain" }
    });
  }
};

// WRONG: Don't use Node.js APIs (not available)
// import fs from 'fs';  // ❌ No filesystem
// process.env.VAR;      // ❌ No process object

// CORRECT: Use Workers APIs
const value = env.MY_KV_NAMESPACE.get("key");  // ✅ KV storage
const response = await fetch("https://api.example.com");  // ✅ fetch API

Key Differences from Node.js/Lambda:

  • ❌ No filesystem access
  • ❌ No Node.js built-ins (fs, http, crypto from Node)
  • ✅ Web Standard APIs (fetch, Request, Response, WebSockets)
  • ✅ Sub-millisecond cold starts
  • ✅ No VPC configuration needed

2. Workers AI - LLM Inference at the Edge

// Run LLaMA 2, Mistral, or other models at the edge
export default {
  async fetch(request: Request, env: Env): Promise<Response> {
    const { prompt } = await request.json();

    // Text generation with LLaMA 2
    const response = await env.AI.run("@cf/meta/llama-2-7b-chat-int8", {
      messages: [
        { role: "system", content: "You are a helpful assistant" },
        { role: "user", content: prompt }
      ]
    });

    return Response.json(response);
  }
};

// Image generation
const image = await env.AI.run("@cf/stabilityai/stable-diffusion-xl-base-1.0", {
  prompt: "A futuristic city at sunset"
});

// Text embeddings (for vector search)
const embeddings = await env.AI.run("@cf/baai/bge-base-en-v1.5", {
  text: "Hello, world!"
});

// Image classification
const result = await env.AI.run("@cf/microsoft/resnet-50", {
  image: imageBytes
});

Read the full file on GitHub · 491 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 491 lines · 48 tokens per session scan A 3dfa078dfda1

Subscribe to this mod's changes

Cloudflare Workers & Edge AI Development is a skill published in the GitHub repository bobmatnyc/mcp-skillset (20 stars, last pushed 6mo ago), licensed MIT. It adds 48 tokens to every session and 3,167 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

cloudflare

Use when working on Cloudflare's edge platform — wrangler.jsonc bindings, choosing between D1/KV/R2/Durable Objects/Queues, deploying a Worker or SPA via Static Assets, or designing around a Workers runtime limit. NOT generic CI/release (that is deployment), NOT Next.js framework wiring (that is nextjs), NOT DNS…

ericrisco/rsc-harness · 86 tokens

cloudflare-worker-dev

Cloudflare Workers, KV, Durable Objects, and edge computing development. Use for serverless APIs, caching, rate limiting, real-time features. Activate on "Workers", "KV", "Durable Objects", "wrangler", "edge function", "Cloudflare". NOT for Cloudflare Pages configuration (use deployment docs), DNS management, or…

curiositech/windags-skills · 78 tokens

cloudflare-expert

Expert-level Cloudflare Workers, CDN, edge computing, and security services. Use when the user mentions edge computing, CDN, workers, or WAF, or when the task involves Cloudflare Services or Developer Tools.

personamanagmentlayer/pcl · 48 tokens

cloudflare-workers-debugging

Use when wrangler deploys silently fail or produce wrong artifacts, secrets upload as empty strings, custom domain DNS is not resolving, route assignment broke after rename, observability/tail logs are needed, D1/KV/R2 bindings are missing, OAuth scope errors block a command, cookies on a redirect are not attaching…

curiositech/windags-skills · 162 tokens

cloudflare-workers-local-dev

Patterns, pitfalls, and workflows for local Cloudflare Workers development with D1, static assets, multi-source integration, and the m-log refactoring architecture.

humanerd-drew/opencode-drewgent · 37 tokens

agents-sdk

Build, debug, or review Cloudflare Agents SDK applications using the agents package.

cloudflare/skills · 19 tokens