cloudflare

cloudflare is a skill for Claude Code, Codex from andresquirogadev/skillsense. It costs 0 tokens per session (528 once invoked), scanned A, original, MIT.

A set of conventions for Cloudflare Workers and Pages, which run web code on Cloudflare's edge network. It covers request handlers, environment bindings, secrets, runtime settings, and storage such as KV and D1.

In plain words
What is it for?
Use it when developing or deploying Cloudflare Workers or Pages. It guides Worker entry points, wrangler.toml settings, secrets, KV data, D1 SQLite databases, migrations, and Durable Object or R2 bindings.
Why use it?
It prevents common deployment mistakes, such as using Node.js environment variables in Workers or configuring storage without the required bindings.

Skill for Claude CodeCodex

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

Good fit Use it when developing or deploying Cloudflare Workers or Pages. It guides Worker entry points, wrangler.toml settings, secrets, KV data, D1 SQLite databases, migrations, and Durable Object or R2 bindings.

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

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/andresquirogadev/skillsense/cloudflare/github.svg)](https://agentmods.dev/skills/andresquirogadev/skillsense/cloudflare)
Your own site
<a href="https://agentmods.dev/skills/andresquirogadev/skillsense/cloudflare"><img src="https://agentmods.dev/badge/skills/andresquirogadev/skillsense/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/andresquirogadev/skillsense/cloudflare"><img src="https://agentmods.dev/badge/skills/andresquirogadev/skillsense/cloudflare.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 528 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.00000 $0.00528
Opus 5.5 $0.00000 $0.00211
Sonnet 5.5 $0.00000 $0.00106
Haiku 4.5 $0.00000 $0.00053

Measured 1mo ago against content hash dbd3b7f233d4, 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 1mo 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> {
packages/catalog/skills/cloudflare/SKILL.md · 52 lines

How it starts

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

Cloudflare Skill

You are working with Cloudflare Workers / Pages. Apply these conventions.

Workers

  • Workers run in the V8 isolate environment — no Node.js built-ins by default; use the compatibility flag nodejs_compat for Node.js API support.
  • Export a default object with a fetch handler:
    export default {
      async fetch(request: Request, env: Env, ctx: ExecutionContext): Promise<Response> {
        return new Response('Hello');
      },
    };
    
  • Define the Env interface from wrangler.toml bindings — never use process.env in Workers.

wrangler.toml

  • Define KV namespaces, R2 buckets, D1 databases, and Durable Objects as bindings in wrangler.toml.
  • Use [vars] for non-secret env vars; use wrangler secret put for secrets.
  • Use compatibility_date to pin the runtime behavior; update periodically.

Cloudflare KV

  • KV is eventually consistent and best for read-heavy, infrequently written data.
  • Use env.KV.put(key, value, { expirationTtl: 3600 }) for TTL-based expiry.
  • Use env.KV.getWithMetadata(key) to retrieve value and metadata in one call.

Cloudflare D1 (SQLite)

  • Run migrations with wrangler d1 migrations apply DB_NAME.
  • Use the D1 client: await env.DB.prepare('SELECT * FROM users WHERE id = ?').bind(id).first().
  • Use .all() for multiple rows, .first() for a single row, .run() for mutations (INSERT/UPDATE/DELETE).

Cloudflare R2

  • R2 is S3-compatible object storage with no egress fees.
  • Upload: await env.BUCKET.put(key, body, { httpMetadata: { contentType: 'image/png' } }).
  • Generate pre-signed URLs with createPresignedUrl() from the S3-compatible API.

Pages

  • Cloudflare Pages Functions live in functions/ — they map to URL routes.
  • Use export const onRequestGet: PagesFunction<Env> = async (ctx) => { … }.
  • Share Env types between Workers and Pages Functions via a shared bindings.d.ts.

Security

  • Always validate cf-connecting-ip / CF-Ray headers carefully — they can be spoofed if Workers are called directly.
  • Use Cloudflare Access for protecting internal routes instead of custom auth.

Read the full file on GitHub · 52 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. 1mo ago First seen · 52 lines · 0 tokens per session scan A dbd3b7f233d4

Subscribe to this mod's changes

cloudflare is a skill published in the GitHub repository andresquirogadev/skillsense (2 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 528 tokens. 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-31.

Related

Other skills, from other repositories

development-workflow

Orchestrates the complete Falcon Foundry app lifecycle from requirements through deployment. TRIGGER when user asks to "create a Foundry app", "build a Foundry app", "plan a Foundry app", runs any foundry apps CLI command, or discusses Foundry app architecture. DO NOT TRIGGER when user is working on a specific…

CrowdStrike/foundry-skills · 141 tokens

publish-to-pages

Publish presentations and web content to GitHub Pages. Converts PPTX, PDF, HTML, or Google Slides to a live GitHub Pages URL. Handles repo creation, file conversion, Pages enablement, and returns the live URL. Use when the user wants to publish, deploy, or share a presentation or HTML file via GitHub Pages.

AndreaGriffiths11/publish-to-pages · 72 tokens

x-uptime

Enhanced uptime with structured YAML output showing uptime, users, and 1/5/15-minute load averages. Dependency: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.

x-cmd/x-cmd · 67 tokens

x-mankier

Search and browse man pages from ManKier.com. Command line interface for ManKier man page repository. Dependency: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.

x-cmd/x-cmd · 62 tokens

x-osv

CLI for Google OSV database. Query vulnerabilities for packages, scan local projects for vulnerable dependencies. Dependency: This is an x-cmd module. Install x-cmd first (see x-cmd skill). Required Tool: Install osv-scanner for project scanning (see https://github.com/google/osv-scanner).

x-cmd/x-cmd · 72 tokens

wikipedia

Search and read Wikipedia via x wkp — MediaWiki API, no API key, zero install; query, extract, suggest, and DDG route in one module. Load for wiki, wikipedia, encyclopedia lookup, article summary.

x-cmd/x-cmd · 49 tokens