cloudflare

cloudflare is a skill for Claude Code, Codex from G1Joshi/Agent-Skills. It costs 39 tokens per session (1,379 once invoked), scanned A, original, MIT.

A network and cloud platform that delivers websites and APIs closer to users around the world. It includes a CDN (a network that caches content near visitors), Workers for server-side code, storage, and security tools.

In plain words
What is it for?
Use it to run edge APIs and middleware with Workers, serve static sites, store files in R2, add CDN delivery, or configure Zero Trust access.
Why use it?
It can reduce the distance between users and an application while providing hosting, storage, and traffic protection in one platform.

Skill for Claude CodeCodex

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

Good fit Use it to run edge APIs and middleware with Workers, serve static sites, store files in R2, add CDN delivery, or configure Zero Trust access.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/g1joshi/agent-skills/cloudflare
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 G1Joshi/Agent-Skills --skill cloudflare
Clone the repo
git clone --depth 1 https://github.com/G1Joshi/Agent-Skills

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/g1joshi/agent-skills/cloudflare/github.svg)](https://agentmods.dev/skills/g1joshi/agent-skills/cloudflare)
Your own site
<a href="https://agentmods.dev/skills/g1joshi/agent-skills/cloudflare"><img src="https://agentmods.dev/badge/skills/g1joshi/agent-skills/cloudflare/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/g1joshi/agent-skills/cloudflare"><img src="https://agentmods.dev/badge/skills/g1joshi/agent-skills/cloudflare.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,379 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.00039 $0.01379
Opus 5.5 $0.00016 $0.00552
Sonnet 5.5 $0.00008 $0.00276
Haiku 4.5 $0.00004 $0.00138

Measured 26d ago against content hash 9cd9cf05569d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cloudflare 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 26d 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, env, ctx): Promise<Response> {
skills/devops/cloudflare/SKILL.md · 173 lines

How it starts

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

Cloudflare

Cloudflare provides global edge networking, DDoS protection, edge serverless compute (Workers), and S3-compatible zero-egress object storage (R2).

When to Use

  • Global Edge Compute with Cloudflare Workers: Executing serverless TypeScript/Rust code across 300+ global data centers with 0ms cold starts.
  • Edge Storage (KV, R2, D1, Vectorize): Distributed key-value, S3-compatible object storage, serverless SQL, and vector indexing.
  • DDoS Mitigation & Web Application Firewall (WAF): Protecting origins against layer 3/4/7 DDoS attacks and bots.
  • Zero Trust Network Access (ZTNA) & Tunnels: Securely routing traffic to private services without opening public ports via cloudflared.

Quick Start

# Initialize and deploy a Cloudflare Worker using Wrangler
npm create cloudflare@latest my-edge-app -- --type hello-world
cd my-edge-app
npx wrangler dev    # Run locally with edge simulation
npx wrangler deploy # Deploy globally to 300+ edge locations

Core Concepts

Modern Cloudflare Worker with Fetch Handler

Sub-millisecond edge API handling requests:

// src/index.ts
export interface Env {
  CACHE_KV: KVNamespace;
  API_SECRET: string;
}

export default {
  async fetch(
    request: Request,
    env: Env,
    ctx: ExecutionContext,
  ): Promise<Response> {
    const url = new URL(request.url);

    if (url.pathname === "/api/geoip") {
      const country = request.cf?.country || "Unknown";
      const city = request.cf?.city || "Unknown";

      return Response.json({
        ip: request.headers.get("cf-connecting-ip"),
        country,
        city,
        colo: request.cf?.colo, // Cloudflare data center airport code
      });
    }

    // Check edge KV cache
    const cacheKey = `content:${url.pathname}`;
    const cached = await env.CACHE_KV.get(cacheKey);
    if (cached) {
      return new Response(cached, {
        headers: { "X-Cache": "HIT", "Content-Type": "application/json" },
      });
    }

    const payload = JSON.stringify({
      message: "Generated at edge",
      timestamp: Date.now(),
    });
    ctx.waitUntil(env.CACHE_KV.put(cacheKey, payload, { expirationTtl: 300 }));

    return new Response(payload, {
      headers: { "X-Cache": "MISS", "Content-Type": "application/json" },
    });
  },
};

Read the full file on GitHub · 173 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. 26d ago Changed · +5 lines 9cd9cf05569d
  2. 1mo ago Changed · +123 lines · +20 tokens per session ba2bc54603a1
  3. 1mo ago First seen · 45 lines · 19 tokens per session scan A b0fb0ce0f5f8

Subscribe to this mod's changes

cloudflare is a skill published in the GitHub repository G1Joshi/Agent-Skills (15 stars, last pushed 26d ago), licensed MIT. It adds 39 tokens to every session and 1,379 once invoked, about $0.0002 per session on Opus 5.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-09-03.

Related

Other skills, from other repositories

api-and-interface-design

Guides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend.

addyosmani/agent-skills · 49 tokens

shipping-and-launch

Prepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.

addyosmani/agent-skills · 57 tokens

cloudflare-workers-expert

Expert guide for Cloudflare Workers ecosystem — Workers, D1 (SQLite at edge), KV, R2 (S3-compatible storage), Queues, Durable Objects, Hyperdrive, and Workers AI / Panduan ahli ekosistem Cloudflare Workers — Workers, D1, KV, R2, Queues, Durable Objects, Hyperdrive, dan Workers AI.

roedyrustam/vibes-plug · 79 tokens

api-design

Design stable, versioned, self-documenting APIs. Easy to use correctly, hard to use incorrectly. Apply Hyrum's Law from day one.

DevelopersGlobal/ai-agent-skills · 34 tokens

api-and-interface-design

Guidance for designing stable, clearly documented interfaces between software parts, such as web APIs, GraphQL schemas, modules, and component properties. It covers defining the contract first, limiting accidental dependencies, and planning safe changes.

vinvcn/addyosmani-agent-skills-zh · 51 tokens

deprecation-and-migration

A guide for retiring old code, systems, or interfaces and moving users to replacements. Deprecation means marking something as no longer preferred; migration means switching its users safely.

vinvcn/addyosmani-agent-skills-zh · 77 tokens