CtrlK
BlogDocsLog inGet started
Tessl Logo

cloudflare-platform

Creates and deploys Cloudflare Workers, configures wrangler.toml bindings, sets up KV/D1/R2 storage and Durable Objects, manages Pages deployments, and implements edge function patterns. Use when building or deploying Cloudflare Workers, setting up Pages, working with KV/D1/R2 storage, configuring wrangler.toml, or deploying edge applications.

75

Quality

93%

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

Cloudflare Platform

Workers

  • V8 isolates, not Node: process, Buffer, fs do not exist unless compatibility_flags = ["nodejs_compat"] is set. compatibility_date must be set or deploys fail.
  • Free tier bundle limit is 1MB. Cold starts are 0ms — keep dependencies minimal.
  • ctx.waitUntil(promise) for side effects that must outlive the response (logging, analytics).
  • Bindings are reachable only via the handler's env argument, and must exist in both wrangler.toml and the Env interface.
  • Durable Objects need [[durable_objects.bindings]] and a [[migrations]] block with new_classes = ["Counter"] — the binding alone will not deploy.

Storage selection

KV: config/sessions/cache, eventually consistent. D1: relational SQLite, strongly consistent. R2: files/blobs, S3-compatible, no egress cost. Durable Objects: coordination, counters, locks, realtime. Queues: async jobs.

Limits: KV value 25MB, key 512 bytes, metadata 1024 bytes, read lag up to 60s. R2 needs multipart upload above 100MB. D1 is SQLite — no MySQL/Postgres-only syntax; always .bind() params; env.DB.batch([...]) collapses round trips.

Wrangler

  • wrangler secret put NAME [--env staging] — secrets never live in wrangler.toml; local dev uses .dev.vars.
  • KV bindings need preview_id for wrangler dev --remote.
  • D1 migrations: pass the target explicitly — wrangler d1 migrations apply <db> --local for dev, --remote for production.
  • wrangler tail for live production logs; wrangler deployments list + wrangler rollback <version-id>; wrangler whoami to confirm the account.

MCP

Code Mode exposes exactly two tools: search (Cloudflare API spec) and execute (JavaScript against the API). ~1k tokens per operation vs ~244k for native tool exposure.

Docs: https://developers.cloudflare.com/

Repository
monkilabs/opencastle
Last updated
First committed

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.