Research: workers-best-practices

Cached research evidence for workers-best-practices (not authority).

Back to catalog page

workers-best-practices encodes production rules and anti-patterns for authoring/reviewing Cloudflare Workers code: streaming responses, waitUntil usage, no global request state, no floating promises, binding access via generated types, crypto for randomness, secrets handling, observability config, and wrangler.jsonc practices. Retrieval-first; tells agents to fetch latest best-practices page and types before flagging.

Installed with the cloudflare skills bundle; used whenever writing or reviewing Worker code, config, or CI.

install-now-after-trust-gate / curated-trust-gated. Official guidance. Following the rules reduces common runtime, memory, security, and debuggability issues on the Workers platform. The skill itself performs no actions; risk is in the reviewed code.

Part of npx skills add cloudflare/skills --skill workers-best-practices ...

Cloudflare (https://github.com/cloudflare/skills). Canonical source: https://developers.cloudflare.com/workers/best-practices/

General edge function best practices from other platforms when porting patterns; project-specific linters and review checklists.

> Evidence gathered from public GitHub (raw SKILL.md). Not an endorsement or authority.