一键导入
cloudflare-workers-expert
Expert in Cloudflare Workers and the Edge Computing ecosystem. Covers Wrangler, KV, D1, Durable Objects, and R2 storage.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Expert in Cloudflare Workers and the Edge Computing ecosystem. Covers Wrangler, KV, D1, Durable Objects, and R2 storage.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Converts Stitch designs into modular Vite and React components using system-level networking and AST-based validation.
Generate walkthrough videos from Stitch projects using Remotion with smooth transitions, zooming, and text overlays
Expert guidance for integrating and building applications with shadcn/ui components, including component discovery, installation, customization, and best practices.
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
Converts Stitch designs into modular Vite and React components using system-level networking and AST-based validation.
Generate walkthrough videos from Stitch projects using Remotion with smooth transitions, zooming, and text overlays
| name | cloudflare-workers-expert |
| description | Expert in Cloudflare Workers and the Edge Computing ecosystem. Covers Wrangler, KV, D1, Durable Objects, and R2 storage. |
| risk | safe |
| source | community |
| date_added | 2026-02-27 |
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.