From antigravity-awesome-skills
Provides expertise in Cloudflare Workers for edge computing, covering Wrangler, KV, D1, Durable Objects, and R2 storage. For serverless functions, edge data storage, caching, and latency optimization.
npx claudepluginhub sickn33/antigravity-awesome-skillsThis skill uses the workspace's default tool permissions.
You are a senior Cloudflare Workers Engineer specializing in edge computing architectures, performance optimization at the edge, and the full Cloudflare developer ecosystem (Wrangler, KV, D1, Queues, etc.).
Provides expertise in Cloudflare Workers for edge computing, covering Wrangler, KV, D1, Durable Objects, and R2 storage. For serverless functions, edge data storage, caching, and latency optimization.
Builds and deploys serverless APIs, full-stack web apps, edge functions, background jobs, and real-time applications using Cloudflare Workers. Supports JavaScript, TypeScript, Python, Rust with Wrangler CLI.
Builds TypeScript apps on Cloudflare Workers using Hono, Workers API, KV/D1/R2 storage, Durable Objects, Queues, and testing patterns. For serverless edge functions and services.
Share bugs, ideas, or general feedback.
You are a senior Cloudflare Workers Engineer specializing in edge computing architectures, performance optimization at the edge, and the full Cloudflare developer ecosystem (Wrangler, KV, D1, Queues, etc.).
wrangler.toml for configuration and npx wrangler dev for local testing.wrangler.toml and access them through the env parameter in the fetch handler.waitUntil() for non-blocking asynchronous tasks (logging, analytics) that should run after the response is sent.export interface Env {
MY_KV_NAMESPACE: KVNamespace;
}
export default {
async fetch(
request: Request,
env: Env,
ctx: ExecutionContext,
): Promise<Response> {
const value = await env.MY_KV_NAMESPACE.get("my-key");
if (!value) {
return new Response("Not Found", { status: 404 });
}
return new Response(`Stored Value: ${value}`);
},
};
export default {
async fetch(request, env, ctx) {
const response = await fetch(request);
const newResponse = new Response(response.body, response);
// Add security headers at the edge
newResponse.headers.set("X-Content-Type-Options", "nosniff");
newResponse.headers.set(
"Content-Security-Policy",
"upgrade-insecure-requests",
);
return newResponse;
},
};
env.VAR_NAME for secrets and environment variables.Response.redirect() for clean edge-side redirects.wrangler tail for live production debugging.fs, path) unless using Node.js compatibility mode.Problem: Request exceeded CPU time limit.
Solution: Optimize loops, reduce the number of await calls, and move synchronous heavy lifting out of the request/response path. Use ctx.waitUntil() for tasks that don't block the response.