Cloudflare Workers — код по актуальным стандартам

★ 8.5 · vibe-coding

workers-best-practices is a Claude Code skill that reviews and authors Cloudflare Workers code against production best practices, fetching current rules directly from Cloudflare documentation rather than relying on pre-trained knowledge. Before any task, it retrieves the latest best practices page, type definitions from @cloudflare/workers-types via npm, and the wrangler config schema, so API signatures and config fields are always up to date. The skill covers streaming large payloads, floating promises, cross-request global state, secrets management, in-process bindings (KV, R2, D1, Queues), and observability configuration. It flags common anti-patterns including Math.random() for tokens, direct secret comparison instead of timingSafeEqual, ctx destructuring, hand-written Env interfaces, and calling the Cloudflare REST API from inside a Worker. Use it when writing new Workers, reviewing existing code, or configuring wrangler.jsonc.