[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-cloudflare-workers-best-practices":3,"mdc--vscejz-key":34,"related-org-cloudflare-workers-best-practices":1489,"related-repo-cloudflare-workers-best-practices":1668},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":20,"repoUrl":21,"updatedAt":22,"license":23,"forks":24,"topics":25,"repo":29,"sourceUrl":32,"mdContent":33},"workers-best-practices","review Cloudflare Workers code","Reviews and authors Cloudflare Workers code against production best practices. Load when writing new Workers, reviewing Worker code, configuring wrangler.jsonc, or checking for common Workers anti-patterns (streaming, floating promises, global state, secrets, bindings, observability). Biases towards retrieval from Cloudflare docs over pre-trained knowledge.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"cloudflare","Cloudflare","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fcloudflare.jpg",[12,16,19],{"name":13,"slug":14,"type":15},"Cloudflare Workers","cloudflare-workers","tag",{"name":17,"slug":18,"type":15},"Code Review","code-review",{"name":9,"slug":8,"type":15},2112,"https:\u002F\u002Fgithub.com\u002Fcloudflare\u002Fskills","2026-04-06T18:07:40.37882",null,192,[26,8,27,28],"agents","skills","workers",{"repoUrl":21,"stars":20,"forks":24,"topics":30,"description":31},[26,8,27,28],"Skills for teaching agents how to build on Cloudflare.","https:\u002F\u002Fgithub.com\u002Fcloudflare\u002Fskills\u002Ftree\u002FHEAD\u002Fskills\u002Fworkers-best-practices","---\nname: workers-best-practices\ndescription: Reviews and authors Cloudflare Workers code against production best practices. Load when writing new Workers, reviewing Worker code, configuring wrangler.jsonc, or checking for common Workers anti-patterns (streaming, floating promises, global state, secrets, bindings, observability). Biases towards retrieval from Cloudflare docs over pre-trained knowledge.\n---\n\nYour knowledge of Cloudflare Workers APIs, types, and configuration may be outdated. **Prefer retrieval over pre-training** for any Workers code task — writing or reviewing.\n\n## Retrieval Sources\n\nFetch the **latest** versions before writing or reviewing Workers code. Do not rely on baked-in knowledge for API signatures, config fields, or binding shapes.\n\n| Source | How to retrieve | Use for |\n|--------|----------------|---------|\n| Workers best practices | Fetch `https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers\u002Fbest-practices\u002Fworkers-best-practices\u002F` | Canonical rules, patterns, anti-patterns |\n| Workers types | See `references\u002Freview.md` for retrieval steps | API signatures, handler types, binding types |\n| Wrangler config schema | `node_modules\u002Fwrangler\u002Fconfig-schema.json` | Config fields, binding shapes, allowed values |\n| Cloudflare docs | Search tool or `https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers\u002F` | API reference, compatibility dates\u002Fflags |\n\n## FIRST: Fetch Latest References\n\nBefore reviewing or writing Workers code, retrieve the current best practices page and relevant type definitions. If the project's `node_modules` has an older version, **prefer the latest published version**.\n\n```bash\n# Fetch latest workers types\nmkdir -p \u002Ftmp\u002Fworkers-types-latest && \\\n  npm pack @cloudflare\u002Fworkers-types --pack-destination \u002Ftmp\u002Fworkers-types-latest && \\\n  tar -xzf \u002Ftmp\u002Fworkers-types-latest\u002Fcloudflare-workers-types-*.tgz -C \u002Ftmp\u002Fworkers-types-latest\n# Types at \u002Ftmp\u002Fworkers-types-latest\u002Fpackage\u002Findex.d.ts\n```\n\n## Reference Documentation\n\n- `references\u002Frules.md` — all best practice rules with code examples and anti-patterns\n- `references\u002Freview.md` — type validation, config validation, binding access patterns, review process\n\n## Rules Quick Reference\n\n### Configuration\n\n| Rule | Summary |\n|------|---------|\n| Compatibility date | Set `compatibility_date` to today on new projects; update periodically on existing ones |\n| nodejs_compat | Enable the `nodejs_compat` flag — many libraries depend on Node.js built-ins |\n| wrangler types | Run `wrangler types` to generate `Env` — never hand-write binding interfaces |\n| Secrets | Use `wrangler secret put`, never hardcode secrets in config or source |\n| wrangler.jsonc | Use JSONC config for non-secret settings — newer features are JSON-only |\n\n### Request & Response Handling\n\n| Rule | Summary |\n|------|---------|\n| Streaming | Stream large\u002Funknown payloads — never `await response.text()` on unbounded data |\n| waitUntil | Use `ctx.waitUntil()` for post-response work; do not destructure `ctx` |\n\n### Architecture\n\n| Rule | Summary |\n|------|---------|\n| Bindings over REST | Use in-process bindings (KV, R2, D1, Queues) — not the Cloudflare REST API |\n| Queues & Workflows | Move async\u002Fbackground work off the critical path |\n| Service bindings | Use service bindings for Worker-to-Worker calls — not public HTTP |\n| Hyperdrive | Always use Hyperdrive for external PostgreSQL\u002FMySQL connections |\n\n### Observability\n\n| Rule | Summary |\n|------|---------|\n| Logs & Traces | Enable `observability` in config with `head_sampling_rate`; use structured JSON logging |\n\n### Code Patterns\n\n| Rule | Summary |\n|------|---------|\n| No global request state | Never store request-scoped data in module-level variables |\n| Floating promises | Every Promise must be `await`ed, `return`ed, `void`ed, or passed to `ctx.waitUntil()` |\n\n### Security\n\n| Rule | Summary |\n|------|---------|\n| Web Crypto | Use `crypto.randomUUID()` \u002F `crypto.getRandomValues()` — never `Math.random()` for security |\n| No passThroughOnException | Use explicit try\u002Fcatch with structured error responses |\n\n## Anti-Patterns to Flag\n\n| Anti-pattern | Why it matters |\n|-------------|----------------|\n| `await response.text()` on unbounded data | Memory exhaustion — 128 MB limit |\n| Hardcoded secrets in source or config | Credential leak via version control |\n| `Math.random()` for tokens\u002FIDs | Predictable, not cryptographically secure |\n| Bare `fetch()` without `await` or `waitUntil` | Floating promise — dropped result, swallowed error |\n| Module-level mutable variables for request state | Cross-request data leaks, stale state, I\u002FO errors |\n| Cloudflare REST API from inside a Worker | Unnecessary network hop, auth overhead, added latency |\n| `ctx.passThroughOnException()` as error handling | Hides bugs, makes debugging impossible |\n| Hand-written `Env` interface | Drifts from actual wrangler config bindings |\n| Direct string comparison for secret values | Timing side-channel — use `crypto.subtle.timingSafeEqual` |\n| Destructuring `ctx` (`const { waitUntil } = ctx`) | Loses `this` binding — throws \"Illegal invocation\" at runtime |\n| `any` on `Env` or handler params | Defeats type safety for all binding access |\n| `as unknown as T` double-cast | Hides real type incompatibilities — fix the design |\n| `implements` on platform base classes (instead of `extends`) | Legacy — loses `this.ctx`, `this.env`. Applies to DurableObject, WorkerEntrypoint, Workflow |\n| `env.X` inside platform base class | Should be `this.env.X` in classes extending DurableObject, WorkerEntrypoint, etc. |\n\n## Review Workflow\n\n1. **Retrieve** — fetch latest best practices page, workers types, and wrangler schema\n2. **Read full files** — not just diffs; context matters for binding access patterns\n3. **Check types** — binding access, handler signatures, no `any`, no unsafe casts (see `references\u002Freview.md`)\n4. **Check config** — compatibility_date, nodejs_compat, observability, secrets, binding-code consistency\n5. **Check patterns** — streaming, floating promises, global state, serialization boundaries\n6. **Check security** — crypto usage, secret handling, timing-safe comparisons, error handling\n7. **Validate with tools** — `npx tsc --noEmit`, lint for `no-floating-promises`\n8. **Reference rules** — see `references\u002Frules.md` for each rule's correct pattern\n\n## Scope\n\nThis skill covers Workers-specific best practices and code review. For related topics:\n\n- **Durable Objects**: load the `durable-objects` skill\n- **Workflows**: see [Rules of Workflows](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkflows\u002Fbuild\u002Frules-of-workflows\u002F)\n- **Wrangler CLI commands**: load the `wrangler` skill\n\n## Principles\n\n- **Be certain.** Retrieve before flagging. If unsure about an API, config field, or pattern, fetch the docs first.\n- **Provide evidence.** Reference line numbers, tool output, or docs links.\n- **Focus on what developers will copy.** Workers code in examples and docs gets pasted into production.\n- **Correctness over completeness.** A concise example that works beats a comprehensive one with errors.\n",{"data":35,"body":36},{"name":4,"description":6},{"type":37,"children":38},"root",[39,55,62,74,204,210,230,370,376,402,408,415,540,546,613,619,691,697,745,751,825,831,900,906,1243,1249,1367,1373,1378,1434,1440,1483],{"type":40,"tag":41,"props":42,"children":43},"element","p",{},[44,47,53],{"type":45,"value":46},"text","Your knowledge of Cloudflare Workers APIs, types, and configuration may be outdated. ",{"type":40,"tag":48,"props":49,"children":50},"strong",{},[51],{"type":45,"value":52},"Prefer retrieval over pre-training",{"type":45,"value":54}," for any Workers code task — writing or reviewing.",{"type":40,"tag":56,"props":57,"children":59},"h2",{"id":58},"retrieval-sources",[60],{"type":45,"value":61},"Retrieval Sources",{"type":40,"tag":41,"props":63,"children":64},{},[65,67,72],{"type":45,"value":66},"Fetch the ",{"type":40,"tag":48,"props":68,"children":69},{},[70],{"type":45,"value":71},"latest",{"type":45,"value":73}," versions before writing or reviewing Workers code. Do not rely on baked-in knowledge for API signatures, config fields, or binding shapes.",{"type":40,"tag":75,"props":76,"children":77},"table",{},[78,102],{"type":40,"tag":79,"props":80,"children":81},"thead",{},[82],{"type":40,"tag":83,"props":84,"children":85},"tr",{},[86,92,97],{"type":40,"tag":87,"props":88,"children":89},"th",{},[90],{"type":45,"value":91},"Source",{"type":40,"tag":87,"props":93,"children":94},{},[95],{"type":45,"value":96},"How to retrieve",{"type":40,"tag":87,"props":98,"children":99},{},[100],{"type":45,"value":101},"Use for",{"type":40,"tag":103,"props":104,"children":105},"tbody",{},[106,132,158,180],{"type":40,"tag":83,"props":107,"children":108},{},[109,115,127],{"type":40,"tag":110,"props":111,"children":112},"td",{},[113],{"type":45,"value":114},"Workers best practices",{"type":40,"tag":110,"props":116,"children":117},{},[118,120],{"type":45,"value":119},"Fetch ",{"type":40,"tag":121,"props":122,"children":124},"code",{"className":123},[],[125],{"type":45,"value":126},"https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers\u002Fbest-practices\u002Fworkers-best-practices\u002F",{"type":40,"tag":110,"props":128,"children":129},{},[130],{"type":45,"value":131},"Canonical rules, patterns, anti-patterns",{"type":40,"tag":83,"props":133,"children":134},{},[135,140,153],{"type":40,"tag":110,"props":136,"children":137},{},[138],{"type":45,"value":139},"Workers types",{"type":40,"tag":110,"props":141,"children":142},{},[143,145,151],{"type":45,"value":144},"See ",{"type":40,"tag":121,"props":146,"children":148},{"className":147},[],[149],{"type":45,"value":150},"references\u002Freview.md",{"type":45,"value":152}," for retrieval steps",{"type":40,"tag":110,"props":154,"children":155},{},[156],{"type":45,"value":157},"API signatures, handler types, binding types",{"type":40,"tag":83,"props":159,"children":160},{},[161,166,175],{"type":40,"tag":110,"props":162,"children":163},{},[164],{"type":45,"value":165},"Wrangler config schema",{"type":40,"tag":110,"props":167,"children":168},{},[169],{"type":40,"tag":121,"props":170,"children":172},{"className":171},[],[173],{"type":45,"value":174},"node_modules\u002Fwrangler\u002Fconfig-schema.json",{"type":40,"tag":110,"props":176,"children":177},{},[178],{"type":45,"value":179},"Config fields, binding shapes, allowed values",{"type":40,"tag":83,"props":181,"children":182},{},[183,188,199],{"type":40,"tag":110,"props":184,"children":185},{},[186],{"type":45,"value":187},"Cloudflare docs",{"type":40,"tag":110,"props":189,"children":190},{},[191,193],{"type":45,"value":192},"Search tool or ",{"type":40,"tag":121,"props":194,"children":196},{"className":195},[],[197],{"type":45,"value":198},"https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers\u002F",{"type":40,"tag":110,"props":200,"children":201},{},[202],{"type":45,"value":203},"API reference, compatibility dates\u002Fflags",{"type":40,"tag":56,"props":205,"children":207},{"id":206},"first-fetch-latest-references",[208],{"type":45,"value":209},"FIRST: Fetch Latest References",{"type":40,"tag":41,"props":211,"children":212},{},[213,215,221,223,228],{"type":45,"value":214},"Before reviewing or writing Workers code, retrieve the current best practices page and relevant type definitions. If the project's ",{"type":40,"tag":121,"props":216,"children":218},{"className":217},[],[219],{"type":45,"value":220},"node_modules",{"type":45,"value":222}," has an older version, ",{"type":40,"tag":48,"props":224,"children":225},{},[226],{"type":45,"value":227},"prefer the latest published version",{"type":45,"value":229},".",{"type":40,"tag":231,"props":232,"children":237},"pre",{"className":233,"code":234,"language":235,"meta":236,"style":236},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Fetch latest workers types\nmkdir -p \u002Ftmp\u002Fworkers-types-latest && \\\n  npm pack @cloudflare\u002Fworkers-types --pack-destination \u002Ftmp\u002Fworkers-types-latest && \\\n  tar -xzf \u002Ftmp\u002Fworkers-types-latest\u002Fcloudflare-workers-types-*.tgz -C \u002Ftmp\u002Fworkers-types-latest\n# Types at \u002Ftmp\u002Fworkers-types-latest\u002Fpackage\u002Findex.d.ts\n","bash","",[238],{"type":40,"tag":121,"props":239,"children":240},{"__ignoreMap":236},[241,253,286,322,361],{"type":40,"tag":242,"props":243,"children":246},"span",{"class":244,"line":245},"line",1,[247],{"type":40,"tag":242,"props":248,"children":250},{"style":249},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[251],{"type":45,"value":252},"# Fetch latest workers types\n",{"type":40,"tag":242,"props":254,"children":256},{"class":244,"line":255},2,[257,263,269,274,280],{"type":40,"tag":242,"props":258,"children":260},{"style":259},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[261],{"type":45,"value":262},"mkdir",{"type":40,"tag":242,"props":264,"children":266},{"style":265},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[267],{"type":45,"value":268}," -p",{"type":40,"tag":242,"props":270,"children":271},{"style":265},[272],{"type":45,"value":273}," \u002Ftmp\u002Fworkers-types-latest",{"type":40,"tag":242,"props":275,"children":277},{"style":276},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[278],{"type":45,"value":279}," &&",{"type":40,"tag":242,"props":281,"children":283},{"style":282},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[284],{"type":45,"value":285}," \\\n",{"type":40,"tag":242,"props":287,"children":289},{"class":244,"line":288},3,[290,295,300,305,310,314,318],{"type":40,"tag":242,"props":291,"children":292},{"style":259},[293],{"type":45,"value":294},"  npm",{"type":40,"tag":242,"props":296,"children":297},{"style":265},[298],{"type":45,"value":299}," pack",{"type":40,"tag":242,"props":301,"children":302},{"style":265},[303],{"type":45,"value":304}," @cloudflare\u002Fworkers-types",{"type":40,"tag":242,"props":306,"children":307},{"style":265},[308],{"type":45,"value":309}," --pack-destination",{"type":40,"tag":242,"props":311,"children":312},{"style":265},[313],{"type":45,"value":273},{"type":40,"tag":242,"props":315,"children":316},{"style":276},[317],{"type":45,"value":279},{"type":40,"tag":242,"props":319,"children":320},{"style":282},[321],{"type":45,"value":285},{"type":40,"tag":242,"props":323,"children":325},{"class":244,"line":324},4,[326,331,336,341,346,351,356],{"type":40,"tag":242,"props":327,"children":328},{"style":259},[329],{"type":45,"value":330},"  tar",{"type":40,"tag":242,"props":332,"children":333},{"style":265},[334],{"type":45,"value":335}," -xzf",{"type":40,"tag":242,"props":337,"children":338},{"style":265},[339],{"type":45,"value":340}," \u002Ftmp\u002Fworkers-types-latest\u002Fcloudflare-workers-types-",{"type":40,"tag":242,"props":342,"children":343},{"style":282},[344],{"type":45,"value":345},"*",{"type":40,"tag":242,"props":347,"children":348},{"style":265},[349],{"type":45,"value":350},".tgz",{"type":40,"tag":242,"props":352,"children":353},{"style":265},[354],{"type":45,"value":355}," -C",{"type":40,"tag":242,"props":357,"children":358},{"style":265},[359],{"type":45,"value":360}," \u002Ftmp\u002Fworkers-types-latest\n",{"type":40,"tag":242,"props":362,"children":364},{"class":244,"line":363},5,[365],{"type":40,"tag":242,"props":366,"children":367},{"style":249},[368],{"type":45,"value":369},"# Types at \u002Ftmp\u002Fworkers-types-latest\u002Fpackage\u002Findex.d.ts\n",{"type":40,"tag":56,"props":371,"children":373},{"id":372},"reference-documentation",[374],{"type":45,"value":375},"Reference Documentation",{"type":40,"tag":377,"props":378,"children":379},"ul",{},[380,392],{"type":40,"tag":381,"props":382,"children":383},"li",{},[384,390],{"type":40,"tag":121,"props":385,"children":387},{"className":386},[],[388],{"type":45,"value":389},"references\u002Frules.md",{"type":45,"value":391}," — all best practice rules with code examples and anti-patterns",{"type":40,"tag":381,"props":393,"children":394},{},[395,400],{"type":40,"tag":121,"props":396,"children":398},{"className":397},[],[399],{"type":45,"value":150},{"type":45,"value":401}," — type validation, config validation, binding access patterns, review process",{"type":40,"tag":56,"props":403,"children":405},{"id":404},"rules-quick-reference",[406],{"type":45,"value":407},"Rules Quick Reference",{"type":40,"tag":409,"props":410,"children":412},"h3",{"id":411},"configuration",[413],{"type":45,"value":414},"Configuration",{"type":40,"tag":75,"props":416,"children":417},{},[418,434],{"type":40,"tag":79,"props":419,"children":420},{},[421],{"type":40,"tag":83,"props":422,"children":423},{},[424,429],{"type":40,"tag":87,"props":425,"children":426},{},[427],{"type":45,"value":428},"Rule",{"type":40,"tag":87,"props":430,"children":431},{},[432],{"type":45,"value":433},"Summary",{"type":40,"tag":103,"props":435,"children":436},{},[437,458,478,506,527],{"type":40,"tag":83,"props":438,"children":439},{},[440,445],{"type":40,"tag":110,"props":441,"children":442},{},[443],{"type":45,"value":444},"Compatibility date",{"type":40,"tag":110,"props":446,"children":447},{},[448,450,456],{"type":45,"value":449},"Set ",{"type":40,"tag":121,"props":451,"children":453},{"className":452},[],[454],{"type":45,"value":455},"compatibility_date",{"type":45,"value":457}," to today on new projects; update periodically on existing ones",{"type":40,"tag":83,"props":459,"children":460},{},[461,466],{"type":40,"tag":110,"props":462,"children":463},{},[464],{"type":45,"value":465},"nodejs_compat",{"type":40,"tag":110,"props":467,"children":468},{},[469,471,476],{"type":45,"value":470},"Enable the ",{"type":40,"tag":121,"props":472,"children":474},{"className":473},[],[475],{"type":45,"value":465},{"type":45,"value":477}," flag — many libraries depend on Node.js built-ins",{"type":40,"tag":83,"props":479,"children":480},{},[481,486],{"type":40,"tag":110,"props":482,"children":483},{},[484],{"type":45,"value":485},"wrangler types",{"type":40,"tag":110,"props":487,"children":488},{},[489,491,496,498,504],{"type":45,"value":490},"Run ",{"type":40,"tag":121,"props":492,"children":494},{"className":493},[],[495],{"type":45,"value":485},{"type":45,"value":497}," to generate ",{"type":40,"tag":121,"props":499,"children":501},{"className":500},[],[502],{"type":45,"value":503},"Env",{"type":45,"value":505}," — never hand-write binding interfaces",{"type":40,"tag":83,"props":507,"children":508},{},[509,514],{"type":40,"tag":110,"props":510,"children":511},{},[512],{"type":45,"value":513},"Secrets",{"type":40,"tag":110,"props":515,"children":516},{},[517,519,525],{"type":45,"value":518},"Use ",{"type":40,"tag":121,"props":520,"children":522},{"className":521},[],[523],{"type":45,"value":524},"wrangler secret put",{"type":45,"value":526},", never hardcode secrets in config or source",{"type":40,"tag":83,"props":528,"children":529},{},[530,535],{"type":40,"tag":110,"props":531,"children":532},{},[533],{"type":45,"value":534},"wrangler.jsonc",{"type":40,"tag":110,"props":536,"children":537},{},[538],{"type":45,"value":539},"Use JSONC config for non-secret settings — newer features are JSON-only",{"type":40,"tag":409,"props":541,"children":543},{"id":542},"request-response-handling",[544],{"type":45,"value":545},"Request & Response Handling",{"type":40,"tag":75,"props":547,"children":548},{},[549,563],{"type":40,"tag":79,"props":550,"children":551},{},[552],{"type":40,"tag":83,"props":553,"children":554},{},[555,559],{"type":40,"tag":87,"props":556,"children":557},{},[558],{"type":45,"value":428},{"type":40,"tag":87,"props":560,"children":561},{},[562],{"type":45,"value":433},{"type":40,"tag":103,"props":564,"children":565},{},[566,587],{"type":40,"tag":83,"props":567,"children":568},{},[569,574],{"type":40,"tag":110,"props":570,"children":571},{},[572],{"type":45,"value":573},"Streaming",{"type":40,"tag":110,"props":575,"children":576},{},[577,579,585],{"type":45,"value":578},"Stream large\u002Funknown payloads — never ",{"type":40,"tag":121,"props":580,"children":582},{"className":581},[],[583],{"type":45,"value":584},"await response.text()",{"type":45,"value":586}," on unbounded data",{"type":40,"tag":83,"props":588,"children":589},{},[590,595],{"type":40,"tag":110,"props":591,"children":592},{},[593],{"type":45,"value":594},"waitUntil",{"type":40,"tag":110,"props":596,"children":597},{},[598,599,605,607],{"type":45,"value":518},{"type":40,"tag":121,"props":600,"children":602},{"className":601},[],[603],{"type":45,"value":604},"ctx.waitUntil()",{"type":45,"value":606}," for post-response work; do not destructure ",{"type":40,"tag":121,"props":608,"children":610},{"className":609},[],[611],{"type":45,"value":612},"ctx",{"type":40,"tag":409,"props":614,"children":616},{"id":615},"architecture",[617],{"type":45,"value":618},"Architecture",{"type":40,"tag":75,"props":620,"children":621},{},[622,636],{"type":40,"tag":79,"props":623,"children":624},{},[625],{"type":40,"tag":83,"props":626,"children":627},{},[628,632],{"type":40,"tag":87,"props":629,"children":630},{},[631],{"type":45,"value":428},{"type":40,"tag":87,"props":633,"children":634},{},[635],{"type":45,"value":433},{"type":40,"tag":103,"props":637,"children":638},{},[639,652,665,678],{"type":40,"tag":83,"props":640,"children":641},{},[642,647],{"type":40,"tag":110,"props":643,"children":644},{},[645],{"type":45,"value":646},"Bindings over REST",{"type":40,"tag":110,"props":648,"children":649},{},[650],{"type":45,"value":651},"Use in-process bindings (KV, R2, D1, Queues) — not the Cloudflare REST API",{"type":40,"tag":83,"props":653,"children":654},{},[655,660],{"type":40,"tag":110,"props":656,"children":657},{},[658],{"type":45,"value":659},"Queues & Workflows",{"type":40,"tag":110,"props":661,"children":662},{},[663],{"type":45,"value":664},"Move async\u002Fbackground work off the critical path",{"type":40,"tag":83,"props":666,"children":667},{},[668,673],{"type":40,"tag":110,"props":669,"children":670},{},[671],{"type":45,"value":672},"Service bindings",{"type":40,"tag":110,"props":674,"children":675},{},[676],{"type":45,"value":677},"Use service bindings for Worker-to-Worker calls — not public HTTP",{"type":40,"tag":83,"props":679,"children":680},{},[681,686],{"type":40,"tag":110,"props":682,"children":683},{},[684],{"type":45,"value":685},"Hyperdrive",{"type":40,"tag":110,"props":687,"children":688},{},[689],{"type":45,"value":690},"Always use Hyperdrive for external PostgreSQL\u002FMySQL connections",{"type":40,"tag":409,"props":692,"children":694},{"id":693},"observability",[695],{"type":45,"value":696},"Observability",{"type":40,"tag":75,"props":698,"children":699},{},[700,714],{"type":40,"tag":79,"props":701,"children":702},{},[703],{"type":40,"tag":83,"props":704,"children":705},{},[706,710],{"type":40,"tag":87,"props":707,"children":708},{},[709],{"type":45,"value":428},{"type":40,"tag":87,"props":711,"children":712},{},[713],{"type":45,"value":433},{"type":40,"tag":103,"props":715,"children":716},{},[717],{"type":40,"tag":83,"props":718,"children":719},{},[720,725],{"type":40,"tag":110,"props":721,"children":722},{},[723],{"type":45,"value":724},"Logs & Traces",{"type":40,"tag":110,"props":726,"children":727},{},[728,730,735,737,743],{"type":45,"value":729},"Enable ",{"type":40,"tag":121,"props":731,"children":733},{"className":732},[],[734],{"type":45,"value":693},{"type":45,"value":736}," in config with ",{"type":40,"tag":121,"props":738,"children":740},{"className":739},[],[741],{"type":45,"value":742},"head_sampling_rate",{"type":45,"value":744},"; use structured JSON logging",{"type":40,"tag":409,"props":746,"children":748},{"id":747},"code-patterns",[749],{"type":45,"value":750},"Code Patterns",{"type":40,"tag":75,"props":752,"children":753},{},[754,768],{"type":40,"tag":79,"props":755,"children":756},{},[757],{"type":40,"tag":83,"props":758,"children":759},{},[760,764],{"type":40,"tag":87,"props":761,"children":762},{},[763],{"type":45,"value":428},{"type":40,"tag":87,"props":765,"children":766},{},[767],{"type":45,"value":433},{"type":40,"tag":103,"props":769,"children":770},{},[771,784],{"type":40,"tag":83,"props":772,"children":773},{},[774,779],{"type":40,"tag":110,"props":775,"children":776},{},[777],{"type":45,"value":778},"No global request state",{"type":40,"tag":110,"props":780,"children":781},{},[782],{"type":45,"value":783},"Never store request-scoped data in module-level variables",{"type":40,"tag":83,"props":785,"children":786},{},[787,792],{"type":40,"tag":110,"props":788,"children":789},{},[790],{"type":45,"value":791},"Floating promises",{"type":40,"tag":110,"props":793,"children":794},{},[795,797,803,805,811,812,818,820],{"type":45,"value":796},"Every Promise must be ",{"type":40,"tag":121,"props":798,"children":800},{"className":799},[],[801],{"type":45,"value":802},"await",{"type":45,"value":804},"ed, ",{"type":40,"tag":121,"props":806,"children":808},{"className":807},[],[809],{"type":45,"value":810},"return",{"type":45,"value":804},{"type":40,"tag":121,"props":813,"children":815},{"className":814},[],[816],{"type":45,"value":817},"void",{"type":45,"value":819},"ed, or passed to ",{"type":40,"tag":121,"props":821,"children":823},{"className":822},[],[824],{"type":45,"value":604},{"type":40,"tag":409,"props":826,"children":828},{"id":827},"security",[829],{"type":45,"value":830},"Security",{"type":40,"tag":75,"props":832,"children":833},{},[834,848],{"type":40,"tag":79,"props":835,"children":836},{},[837],{"type":40,"tag":83,"props":838,"children":839},{},[840,844],{"type":40,"tag":87,"props":841,"children":842},{},[843],{"type":45,"value":428},{"type":40,"tag":87,"props":845,"children":846},{},[847],{"type":45,"value":433},{"type":40,"tag":103,"props":849,"children":850},{},[851,887],{"type":40,"tag":83,"props":852,"children":853},{},[854,859],{"type":40,"tag":110,"props":855,"children":856},{},[857],{"type":45,"value":858},"Web Crypto",{"type":40,"tag":110,"props":860,"children":861},{},[862,863,869,871,877,879,885],{"type":45,"value":518},{"type":40,"tag":121,"props":864,"children":866},{"className":865},[],[867],{"type":45,"value":868},"crypto.randomUUID()",{"type":45,"value":870}," \u002F ",{"type":40,"tag":121,"props":872,"children":874},{"className":873},[],[875],{"type":45,"value":876},"crypto.getRandomValues()",{"type":45,"value":878}," — never ",{"type":40,"tag":121,"props":880,"children":882},{"className":881},[],[883],{"type":45,"value":884},"Math.random()",{"type":45,"value":886}," for security",{"type":40,"tag":83,"props":888,"children":889},{},[890,895],{"type":40,"tag":110,"props":891,"children":892},{},[893],{"type":45,"value":894},"No passThroughOnException",{"type":40,"tag":110,"props":896,"children":897},{},[898],{"type":45,"value":899},"Use explicit try\u002Fcatch with structured error responses",{"type":40,"tag":56,"props":901,"children":903},{"id":902},"anti-patterns-to-flag",[904],{"type":45,"value":905},"Anti-Patterns to Flag",{"type":40,"tag":75,"props":907,"children":908},{},[909,925],{"type":40,"tag":79,"props":910,"children":911},{},[912],{"type":40,"tag":83,"props":913,"children":914},{},[915,920],{"type":40,"tag":87,"props":916,"children":917},{},[918],{"type":45,"value":919},"Anti-pattern",{"type":40,"tag":87,"props":921,"children":922},{},[923],{"type":45,"value":924},"Why it matters",{"type":40,"tag":103,"props":926,"children":927},{},[928,945,958,976,1009,1022,1035,1054,1074,1093,1129,1155,1174,1216],{"type":40,"tag":83,"props":929,"children":930},{},[931,940],{"type":40,"tag":110,"props":932,"children":933},{},[934,939],{"type":40,"tag":121,"props":935,"children":937},{"className":936},[],[938],{"type":45,"value":584},{"type":45,"value":586},{"type":40,"tag":110,"props":941,"children":942},{},[943],{"type":45,"value":944},"Memory exhaustion — 128 MB limit",{"type":40,"tag":83,"props":946,"children":947},{},[948,953],{"type":40,"tag":110,"props":949,"children":950},{},[951],{"type":45,"value":952},"Hardcoded secrets in source or config",{"type":40,"tag":110,"props":954,"children":955},{},[956],{"type":45,"value":957},"Credential leak via version control",{"type":40,"tag":83,"props":959,"children":960},{},[961,971],{"type":40,"tag":110,"props":962,"children":963},{},[964,969],{"type":40,"tag":121,"props":965,"children":967},{"className":966},[],[968],{"type":45,"value":884},{"type":45,"value":970}," for tokens\u002FIDs",{"type":40,"tag":110,"props":972,"children":973},{},[974],{"type":45,"value":975},"Predictable, not cryptographically secure",{"type":40,"tag":83,"props":977,"children":978},{},[979,1004],{"type":40,"tag":110,"props":980,"children":981},{},[982,984,990,992,997,999],{"type":45,"value":983},"Bare ",{"type":40,"tag":121,"props":985,"children":987},{"className":986},[],[988],{"type":45,"value":989},"fetch()",{"type":45,"value":991}," without ",{"type":40,"tag":121,"props":993,"children":995},{"className":994},[],[996],{"type":45,"value":802},{"type":45,"value":998}," or ",{"type":40,"tag":121,"props":1000,"children":1002},{"className":1001},[],[1003],{"type":45,"value":594},{"type":40,"tag":110,"props":1005,"children":1006},{},[1007],{"type":45,"value":1008},"Floating promise — dropped result, swallowed error",{"type":40,"tag":83,"props":1010,"children":1011},{},[1012,1017],{"type":40,"tag":110,"props":1013,"children":1014},{},[1015],{"type":45,"value":1016},"Module-level mutable variables for request state",{"type":40,"tag":110,"props":1018,"children":1019},{},[1020],{"type":45,"value":1021},"Cross-request data leaks, stale state, I\u002FO errors",{"type":40,"tag":83,"props":1023,"children":1024},{},[1025,1030],{"type":40,"tag":110,"props":1026,"children":1027},{},[1028],{"type":45,"value":1029},"Cloudflare REST API from inside a Worker",{"type":40,"tag":110,"props":1031,"children":1032},{},[1033],{"type":45,"value":1034},"Unnecessary network hop, auth overhead, added latency",{"type":40,"tag":83,"props":1036,"children":1037},{},[1038,1049],{"type":40,"tag":110,"props":1039,"children":1040},{},[1041,1047],{"type":40,"tag":121,"props":1042,"children":1044},{"className":1043},[],[1045],{"type":45,"value":1046},"ctx.passThroughOnException()",{"type":45,"value":1048}," as error handling",{"type":40,"tag":110,"props":1050,"children":1051},{},[1052],{"type":45,"value":1053},"Hides bugs, makes debugging impossible",{"type":40,"tag":83,"props":1055,"children":1056},{},[1057,1069],{"type":40,"tag":110,"props":1058,"children":1059},{},[1060,1062,1067],{"type":45,"value":1061},"Hand-written ",{"type":40,"tag":121,"props":1063,"children":1065},{"className":1064},[],[1066],{"type":45,"value":503},{"type":45,"value":1068}," interface",{"type":40,"tag":110,"props":1070,"children":1071},{},[1072],{"type":45,"value":1073},"Drifts from actual wrangler config bindings",{"type":40,"tag":83,"props":1075,"children":1076},{},[1077,1082],{"type":40,"tag":110,"props":1078,"children":1079},{},[1080],{"type":45,"value":1081},"Direct string comparison for secret values",{"type":40,"tag":110,"props":1083,"children":1084},{},[1085,1087],{"type":45,"value":1086},"Timing side-channel — use ",{"type":40,"tag":121,"props":1088,"children":1090},{"className":1089},[],[1091],{"type":45,"value":1092},"crypto.subtle.timingSafeEqual",{"type":40,"tag":83,"props":1094,"children":1095},{},[1096,1116],{"type":40,"tag":110,"props":1097,"children":1098},{},[1099,1101,1106,1108,1114],{"type":45,"value":1100},"Destructuring ",{"type":40,"tag":121,"props":1102,"children":1104},{"className":1103},[],[1105],{"type":45,"value":612},{"type":45,"value":1107}," (",{"type":40,"tag":121,"props":1109,"children":1111},{"className":1110},[],[1112],{"type":45,"value":1113},"const { waitUntil } = ctx",{"type":45,"value":1115},")",{"type":40,"tag":110,"props":1117,"children":1118},{},[1119,1121,1127],{"type":45,"value":1120},"Loses ",{"type":40,"tag":121,"props":1122,"children":1124},{"className":1123},[],[1125],{"type":45,"value":1126},"this",{"type":45,"value":1128}," binding — throws \"Illegal invocation\" at runtime",{"type":40,"tag":83,"props":1130,"children":1131},{},[1132,1150],{"type":40,"tag":110,"props":1133,"children":1134},{},[1135,1141,1143,1148],{"type":40,"tag":121,"props":1136,"children":1138},{"className":1137},[],[1139],{"type":45,"value":1140},"any",{"type":45,"value":1142}," on ",{"type":40,"tag":121,"props":1144,"children":1146},{"className":1145},[],[1147],{"type":45,"value":503},{"type":45,"value":1149}," or handler params",{"type":40,"tag":110,"props":1151,"children":1152},{},[1153],{"type":45,"value":1154},"Defeats type safety for all binding access",{"type":40,"tag":83,"props":1156,"children":1157},{},[1158,1169],{"type":40,"tag":110,"props":1159,"children":1160},{},[1161,1167],{"type":40,"tag":121,"props":1162,"children":1164},{"className":1163},[],[1165],{"type":45,"value":1166},"as unknown as T",{"type":45,"value":1168}," double-cast",{"type":40,"tag":110,"props":1170,"children":1171},{},[1172],{"type":45,"value":1173},"Hides real type incompatibilities — fix the design",{"type":40,"tag":83,"props":1175,"children":1176},{},[1177,1195],{"type":40,"tag":110,"props":1178,"children":1179},{},[1180,1186,1188,1194],{"type":40,"tag":121,"props":1181,"children":1183},{"className":1182},[],[1184],{"type":45,"value":1185},"implements",{"type":45,"value":1187}," on platform base classes (instead of ",{"type":40,"tag":121,"props":1189,"children":1191},{"className":1190},[],[1192],{"type":45,"value":1193},"extends",{"type":45,"value":1115},{"type":40,"tag":110,"props":1196,"children":1197},{},[1198,1200,1206,1208,1214],{"type":45,"value":1199},"Legacy — loses ",{"type":40,"tag":121,"props":1201,"children":1203},{"className":1202},[],[1204],{"type":45,"value":1205},"this.ctx",{"type":45,"value":1207},", ",{"type":40,"tag":121,"props":1209,"children":1211},{"className":1210},[],[1212],{"type":45,"value":1213},"this.env",{"type":45,"value":1215},". Applies to DurableObject, WorkerEntrypoint, Workflow",{"type":40,"tag":83,"props":1217,"children":1218},{},[1219,1230],{"type":40,"tag":110,"props":1220,"children":1221},{},[1222,1228],{"type":40,"tag":121,"props":1223,"children":1225},{"className":1224},[],[1226],{"type":45,"value":1227},"env.X",{"type":45,"value":1229}," inside platform base class",{"type":40,"tag":110,"props":1231,"children":1232},{},[1233,1235,1241],{"type":45,"value":1234},"Should be ",{"type":40,"tag":121,"props":1236,"children":1238},{"className":1237},[],[1239],{"type":45,"value":1240},"this.env.X",{"type":45,"value":1242}," in classes extending DurableObject, WorkerEntrypoint, etc.",{"type":40,"tag":56,"props":1244,"children":1246},{"id":1245},"review-workflow",[1247],{"type":45,"value":1248},"Review Workflow",{"type":40,"tag":1250,"props":1251,"children":1252},"ol",{},[1253,1263,1273,1296,1306,1316,1326,1350],{"type":40,"tag":381,"props":1254,"children":1255},{},[1256,1261],{"type":40,"tag":48,"props":1257,"children":1258},{},[1259],{"type":45,"value":1260},"Retrieve",{"type":45,"value":1262}," — fetch latest best practices page, workers types, and wrangler schema",{"type":40,"tag":381,"props":1264,"children":1265},{},[1266,1271],{"type":40,"tag":48,"props":1267,"children":1268},{},[1269],{"type":45,"value":1270},"Read full files",{"type":45,"value":1272}," — not just diffs; context matters for binding access patterns",{"type":40,"tag":381,"props":1274,"children":1275},{},[1276,1281,1283,1288,1290,1295],{"type":40,"tag":48,"props":1277,"children":1278},{},[1279],{"type":45,"value":1280},"Check types",{"type":45,"value":1282}," — binding access, handler signatures, no ",{"type":40,"tag":121,"props":1284,"children":1286},{"className":1285},[],[1287],{"type":45,"value":1140},{"type":45,"value":1289},", no unsafe casts (see ",{"type":40,"tag":121,"props":1291,"children":1293},{"className":1292},[],[1294],{"type":45,"value":150},{"type":45,"value":1115},{"type":40,"tag":381,"props":1297,"children":1298},{},[1299,1304],{"type":40,"tag":48,"props":1300,"children":1301},{},[1302],{"type":45,"value":1303},"Check config",{"type":45,"value":1305}," — compatibility_date, nodejs_compat, observability, secrets, binding-code consistency",{"type":40,"tag":381,"props":1307,"children":1308},{},[1309,1314],{"type":40,"tag":48,"props":1310,"children":1311},{},[1312],{"type":45,"value":1313},"Check patterns",{"type":45,"value":1315}," — streaming, floating promises, global state, serialization boundaries",{"type":40,"tag":381,"props":1317,"children":1318},{},[1319,1324],{"type":40,"tag":48,"props":1320,"children":1321},{},[1322],{"type":45,"value":1323},"Check security",{"type":45,"value":1325}," — crypto usage, secret handling, timing-safe comparisons, error handling",{"type":40,"tag":381,"props":1327,"children":1328},{},[1329,1334,1336,1342,1344],{"type":40,"tag":48,"props":1330,"children":1331},{},[1332],{"type":45,"value":1333},"Validate with tools",{"type":45,"value":1335}," — ",{"type":40,"tag":121,"props":1337,"children":1339},{"className":1338},[],[1340],{"type":45,"value":1341},"npx tsc --noEmit",{"type":45,"value":1343},", lint for ",{"type":40,"tag":121,"props":1345,"children":1347},{"className":1346},[],[1348],{"type":45,"value":1349},"no-floating-promises",{"type":40,"tag":381,"props":1351,"children":1352},{},[1353,1358,1360,1365],{"type":40,"tag":48,"props":1354,"children":1355},{},[1356],{"type":45,"value":1357},"Reference rules",{"type":45,"value":1359}," — see ",{"type":40,"tag":121,"props":1361,"children":1363},{"className":1362},[],[1364],{"type":45,"value":389},{"type":45,"value":1366}," for each rule's correct pattern",{"type":40,"tag":56,"props":1368,"children":1370},{"id":1369},"scope",[1371],{"type":45,"value":1372},"Scope",{"type":40,"tag":41,"props":1374,"children":1375},{},[1376],{"type":45,"value":1377},"This skill covers Workers-specific best practices and code review. For related topics:",{"type":40,"tag":377,"props":1379,"children":1380},{},[1381,1399,1418],{"type":40,"tag":381,"props":1382,"children":1383},{},[1384,1389,1391,1397],{"type":40,"tag":48,"props":1385,"children":1386},{},[1387],{"type":45,"value":1388},"Durable Objects",{"type":45,"value":1390},": load the ",{"type":40,"tag":121,"props":1392,"children":1394},{"className":1393},[],[1395],{"type":45,"value":1396},"durable-objects",{"type":45,"value":1398}," skill",{"type":40,"tag":381,"props":1400,"children":1401},{},[1402,1407,1409],{"type":40,"tag":48,"props":1403,"children":1404},{},[1405],{"type":45,"value":1406},"Workflows",{"type":45,"value":1408},": see ",{"type":40,"tag":1410,"props":1411,"children":1415},"a",{"href":1412,"rel":1413},"https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkflows\u002Fbuild\u002Frules-of-workflows\u002F",[1414],"nofollow",[1416],{"type":45,"value":1417},"Rules of Workflows",{"type":40,"tag":381,"props":1419,"children":1420},{},[1421,1426,1427,1433],{"type":40,"tag":48,"props":1422,"children":1423},{},[1424],{"type":45,"value":1425},"Wrangler CLI commands",{"type":45,"value":1390},{"type":40,"tag":121,"props":1428,"children":1430},{"className":1429},[],[1431],{"type":45,"value":1432},"wrangler",{"type":45,"value":1398},{"type":40,"tag":56,"props":1435,"children":1437},{"id":1436},"principles",[1438],{"type":45,"value":1439},"Principles",{"type":40,"tag":377,"props":1441,"children":1442},{},[1443,1453,1463,1473],{"type":40,"tag":381,"props":1444,"children":1445},{},[1446,1451],{"type":40,"tag":48,"props":1447,"children":1448},{},[1449],{"type":45,"value":1450},"Be certain.",{"type":45,"value":1452}," Retrieve before flagging. If unsure about an API, config field, or pattern, fetch the docs first.",{"type":40,"tag":381,"props":1454,"children":1455},{},[1456,1461],{"type":40,"tag":48,"props":1457,"children":1458},{},[1459],{"type":45,"value":1460},"Provide evidence.",{"type":45,"value":1462}," Reference line numbers, tool output, or docs links.",{"type":40,"tag":381,"props":1464,"children":1465},{},[1466,1471],{"type":40,"tag":48,"props":1467,"children":1468},{},[1469],{"type":45,"value":1470},"Focus on what developers will copy.",{"type":45,"value":1472}," Workers code in examples and docs gets pasted into production.",{"type":40,"tag":381,"props":1474,"children":1475},{},[1476,1481],{"type":40,"tag":48,"props":1477,"children":1478},{},[1479],{"type":45,"value":1480},"Correctness over completeness.",{"type":45,"value":1482}," A concise example that works beats a comprehensive one with errors.",{"type":40,"tag":1484,"props":1485,"children":1486},"style",{},[1487],{"type":45,"value":1488},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":1490,"total":1667},[1491,1504,1518,1533,1546,1560,1574,1588,1605,1622,1635,1650],{"slug":18,"name":18,"fn":1492,"description":1493,"org":1494,"tags":1495,"stars":1501,"repoUrl":1502,"updatedAt":1503},"review code changes for quality and risk","Review code changes for correctness, clarity, and risk. Use when the user asks for a review, a second opinion on a diff, or feedback on code they wrote.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1496,1497,1498],{"name":9,"slug":8,"type":15},{"name":17,"slug":18,"type":15},{"name":1499,"slug":1500,"type":15},"Engineering","engineering",5284,"https:\u002F\u002Fgithub.com\u002Fcloudflare\u002Fagents","2026-06-08T08:19:41.621858",{"slug":1505,"name":1505,"fn":1506,"description":1507,"org":1508,"tags":1509,"stars":1501,"repoUrl":1502,"updatedAt":1517},"debug-plan","create systematic debugging plans","Create a systematic debugging plan for a bug report. Use when the user asks how to investigate a failure, regression, or unexpected behavior.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1510,1513,1516],{"name":1511,"slug":1512,"type":15},"Code Analysis","code-analysis",{"name":1514,"slug":1515,"type":15},"Debugging","debugging",{"name":1499,"slug":1500,"type":15},"2026-05-30T06:16:58.837407",{"slug":1519,"name":1519,"fn":1520,"description":1521,"org":1522,"tags":1523,"stars":1501,"repoUrl":1502,"updatedAt":1532},"escalation","escalate customer issues to human agents","Decide when and how to escalate a customer conversation to a human agent. Use when a request is high-risk, the customer is frustrated, or the issue is outside what you can resolve.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1524,1527,1530],{"name":1525,"slug":1526,"type":15},"Communications","communications",{"name":1528,"slug":1529,"type":15},"Customer Support","customer-support",{"name":1531,"slug":1519,"type":15},"Escalation","2026-06-08T08:19:43.130686",{"slug":1534,"name":1534,"fn":1535,"description":1536,"org":1537,"tags":1538,"stars":1501,"repoUrl":1502,"updatedAt":1545},"pirate-voice","rewrite text in pirate voice","Rewrite or answer in a playful pirate voice. Use when the user asks for pirate tone, nautical phrasing, or says to talk like a pirate.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1539,1542],{"name":1540,"slug":1541,"type":15},"Creative","creative",{"name":1543,"slug":1544,"type":15},"Writing","writing","2026-05-30T06:17:00.080367",{"slug":1547,"name":1547,"fn":1548,"description":1549,"org":1550,"tags":1551,"stars":1501,"repoUrl":1502,"updatedAt":1559},"release-notes","draft product release notes","Draft short release notes from a list of changes. Use when the user asks for changelogs, release notes, or a concise product update.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1552,1555,1558],{"name":1553,"slug":1554,"type":15},"Content Creation","content-creation",{"name":1556,"slug":1557,"type":15},"Documentation","documentation",{"name":1543,"slug":1544,"type":15},"2026-05-30T06:17:01.278643",{"slug":1561,"name":1561,"fn":1562,"description":1563,"org":1564,"tags":1565,"stars":1501,"repoUrl":1502,"updatedAt":1573},"test-plan","produce focused test plans","Produce a focused test plan for a change. Use when the user asks how to test a feature, what cases to cover, or for a QA checklist before shipping.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1566,1567,1570],{"name":1499,"slug":1500,"type":15},{"name":1568,"slug":1569,"type":15},"QA","qa",{"name":1571,"slug":1572,"type":15},"Testing","testing","2026-05-30T06:17:02.479863",{"slug":1575,"name":1575,"fn":1576,"description":1577,"org":1578,"tags":1579,"stars":1501,"repoUrl":1502,"updatedAt":1587},"workspace-digest","summarize files in the shared workspace","Summarize the files saved in this assistant's shared workspace. Use when the user asks what is in their workspace, for a file inventory, or a digest of saved work.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1580,1581,1584],{"name":1556,"slug":1557,"type":15},{"name":1582,"slug":1583,"type":15},"Knowledge Management","knowledge-management",{"name":1585,"slug":1586,"type":15},"Summarization","summarization","2026-06-07T07:51:27.265303",{"slug":1589,"name":1589,"fn":1590,"description":1591,"org":1592,"tags":1593,"stars":1602,"repoUrl":1603,"updatedAt":1604},"cloudflare-bundler-apps","author Cloudflare Worker Bundler applications","Author Cloudflare Worker Bundler-compatible apps that build and preview correctly inside a space. Use this skill whenever you scaffold, modify, or deploy a project that will be built with `@cloudflare\u002Fworker-bundler` (i.e. anything served from `\u002Fspace\u002F:name\u002Fpreview\u002F:branch\u002F`). Covers wrangler config, project layout, static asset rules, server entry conventions, npm dependency limits, and the most common cause of blank previews (JSX in browser scripts).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1594,1595,1596,1599],{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},{"name":1597,"slug":1598,"type":15},"Deployment","deployment",{"name":1600,"slug":1601,"type":15},"Web Development","web-development",5145,"https:\u002F\u002Fgithub.com\u002Fcloudflare\u002Fvibesdk","2026-06-16T09:45:57.551207",{"slug":1606,"name":1606,"fn":1607,"description":1608,"org":1609,"tags":1610,"stars":1602,"repoUrl":1603,"updatedAt":1621},"frontend-design","create production-grade frontend interfaces","Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML\u002FCSS layouts, or when styling\u002Fbeautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1611,1614,1617,1620],{"name":1612,"slug":1613,"type":15},"Design","design",{"name":1615,"slug":1616,"type":15},"Frontend","frontend",{"name":1618,"slug":1619,"type":15},"HTML","html",{"name":1600,"slug":1601,"type":15},"2026-06-16T09:46:01.852741",{"slug":1623,"name":1623,"fn":1624,"description":1625,"org":1626,"tags":1627,"stars":1602,"repoUrl":1603,"updatedAt":1634},"frontend-design-landing-page","build marketing landing pages","Marketing landing page and conversion-focused product page reference. Use this skill when building hero sections, feature grids, pricing pages, testimonials, CTAs, footers, navigation bars, or any public-facing marketing surface. Covers a warm, professional, developer-friendly design language (cream backgrounds, generous whitespace, pill CTAs, corner-bracket card decorations) and a complete token set, animation system, and copy-paste component snippets. NOT for product\u002Fdashboard UIs — use frontend-design-saas for those.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1628,1629,1630,1633],{"name":1615,"slug":1616,"type":15},{"name":1618,"slug":1619,"type":15},{"name":1631,"slug":1632,"type":15},"Marketing","marketing",{"name":1600,"slug":1601,"type":15},"2026-06-16T09:46:00.515859",{"slug":1636,"name":1636,"fn":1637,"description":1638,"org":1639,"tags":1640,"stars":1602,"repoUrl":1603,"updatedAt":1649},"frontend-design-saas","build SaaS dashboard and product UIs","S-tier SaaS dashboard and product UI reference. Use this skill when building application shells, data tables, settings panels, billing pages, dashboards, auth flows, admin tools, or any internal\u002Fcustomer-facing SaaS product UI. Inspired by Stripe, Linear, Vercel, Airbnb, Notion. Covers neutral-led design tokens, sidebar+content shells, dense data UIs, form-heavy configuration pages, command palettes, empty states, and the accessibility (WCAG AA+) bar these products clear.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1641,1642,1643,1646],{"name":1612,"slug":1613,"type":15},{"name":1615,"slug":1616,"type":15},{"name":1644,"slug":1645,"type":15},"SaaS","saas",{"name":1647,"slug":1648,"type":15},"UI Components","ui-components","2026-06-16T09:45:58.956063",{"slug":1651,"name":1651,"fn":1652,"description":1653,"org":1654,"tags":1655,"stars":20,"repoUrl":21,"updatedAt":1666},"agents-sdk","build AI agents on Cloudflare Workers","Build AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, chat applications, voice agents, or browser automation. Covers Agent class, state management, callable RPC, Workflows, durable execution, queues, retries, observability, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1656,1658,1659,1660,1663],{"name":1657,"slug":26,"type":15},"Agents",{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},{"name":1661,"slug":1662,"type":15},"MCP","mcp",{"name":1664,"slug":1665,"type":15},"WebSockets","websockets","2026-04-06T18:07:36.660888",22,{"items":1669,"total":1776},[1670,1678,1692,1705,1729,1748,1760],{"slug":1651,"name":1651,"fn":1652,"description":1653,"org":1671,"tags":1672,"stars":20,"repoUrl":21,"updatedAt":1666},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1673,1674,1675,1676,1677],{"name":1657,"slug":26,"type":15},{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},{"name":1661,"slug":1662,"type":15},{"name":1664,"slug":1665,"type":15},{"slug":8,"name":8,"fn":1679,"description":1680,"org":1681,"tags":1682,"stars":20,"repoUrl":21,"updatedAt":1691},"build on the full Cloudflare platform","Comprehensive Cloudflare platform skill covering Workers, Pages, storage (KV, D1, R2), AI (Workers AI, Vectorize, Agents SDK), feature flags (Flagship), networking (Tunnel, Spectrum), security (WAF, DDoS), and infrastructure-as-code (Terraform, Pulumi). Use for any Cloudflare development task. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1683,1684,1685,1688],{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},{"name":1686,"slug":1687,"type":15},"Serverless","serverless",{"name":1689,"slug":1690,"type":15},"Storage","storage","2026-04-06T18:07:35.399081",{"slug":1693,"name":1693,"fn":1694,"description":1695,"org":1696,"tags":1697,"stars":20,"repoUrl":21,"updatedAt":1704},"cloudflare-email-service","manage transactional emails with Cloudflare","Send and receive transactional emails with Cloudflare Email Service (Email Sending + Email Routing). Use when building email sending (Workers binding or REST API), email routing, Agents SDK email handling, or integrating email into any app — Workers, Node.js, Python, Go, etc. Also use for email deliverability, SPF\u002FDKIM\u002FDMARC, wrangler email setup, MCP email tools, or when a coding agent needs to send emails. Even for simple requests like \"add email to my Worker\" — this skill has critical config details.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1698,1699,1700,1703],{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},{"name":1701,"slug":1702,"type":15},"Email","email",{"name":1686,"slug":1687,"type":15},"2026-04-16T05:02:38.301955",{"slug":1706,"name":1706,"fn":1707,"description":1708,"org":1709,"tags":1710,"stars":20,"repoUrl":21,"updatedAt":1728},"cloudflare-one","configure and manage Cloudflare One Zero Trust","Guides Cloudflare One Zero Trust and SASE work across Access, Gateway, WARP, Tunnel, Cloudflare WAN, DLP, CASB, device posture, and identity. Use when designing, configuring, troubleshooting, or reviewing Cloudflare One deployments. Retrieval-first: use current Cloudflare docs\u002FAPI schemas instead of embedded product docs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1711,1714,1715,1718,1721,1724,1725],{"name":1712,"slug":1713,"type":15},"Access Control","access-control",{"name":9,"slug":8,"type":15},{"name":1716,"slug":1717,"type":15},"Infrastructure","infrastructure",{"name":1719,"slug":1720,"type":15},"Networking","networking",{"name":1722,"slug":1723,"type":15},"SASE","sase",{"name":830,"slug":827,"type":15},{"name":1726,"slug":1727,"type":15},"Zero Trust","zero-trust","2026-06-15T09:51:34.015251",{"slug":1730,"name":1730,"fn":1731,"description":1732,"org":1733,"tags":1734,"stars":20,"repoUrl":21,"updatedAt":1747},"cloudflare-one-migrations","plan migrations to Cloudflare One","Plans migrations from Zscaler ZIA\u002FZPA, Palo Alto, legacy VPN, SWG, or SASE stacks to Cloudflare One. Use for migration assessments, policy mapping, rollout plans, and parity\u002Fgap analysis.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1735,1736,1739,1740,1743,1744],{"name":9,"slug":8,"type":15},{"name":1737,"slug":1738,"type":15},"Migration","migration",{"name":1719,"slug":1720,"type":15},{"name":1741,"slug":1742,"type":15},"Risk Assessment","risk-assessment",{"name":830,"slug":827,"type":15},{"name":1745,"slug":1746,"type":15},"Strategy","strategy","2026-06-15T09:51:35.348691",{"slug":1396,"name":1396,"fn":1749,"description":1750,"org":1751,"tags":1752,"stars":20,"repoUrl":21,"updatedAt":1759},"build Cloudflare Durable Objects","Create and review Cloudflare Durable Objects. Use when building stateful coordination (chat rooms, multiplayer games, booking systems), implementing RPC methods, SQLite storage, alarms, WebSockets, or reviewing DO code for best practices. Covers Workers integration, wrangler config, and testing with Vitest. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1753,1754,1755,1758],{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},{"name":1756,"slug":1757,"type":15},"State Management","state-management",{"name":1664,"slug":1665,"type":15},"2026-04-06T18:07:39.148434",{"slug":1761,"name":1761,"fn":1762,"description":1763,"org":1764,"tags":1765,"stars":20,"repoUrl":21,"updatedAt":1775},"sandbox-sdk","build sandboxed code execution apps on Cloudflare","Build sandboxed applications for secure code execution. Load when building AI code execution, code interpreters, CI\u002FCD systems, interactive dev environments, or executing untrusted code. Covers Sandbox SDK lifecycle, commands, files, code interpreter, and preview URLs. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1766,1767,1768,1771,1774],{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},{"name":1769,"slug":1770,"type":15},"Code Execution","code-execution",{"name":1772,"slug":1773,"type":15},"Sandboxing","sandboxing",{"name":1686,"slug":1687,"type":15},"2026-04-06T18:07:37.89439",11]