Skip to content
Kitbay

workers-best-practices

Apache-2.0Updated on Nov 10, 20263,337GitHub stars

A Cloudflare skill for writing, reviewing and configuring Workers for production.

What the skill teaches

A Cloudflare skill for writing, reviewing and configuring Workers for production. It has the agent use the project's installed versions, generated types and compatibility settings as the baseline and check claims against current Cloudflare docs. Reference files cover configuration and observability (compatibility dates, bindings, secrets, logs and traces), runtime patterns (streaming, promise lifetime, request state, service calls, security and tests) and platform API checks. It also names anti-patterns to flag, advises keeping compatibility dates current, turning on observability and placing compute near regional databases. It ships in Cloudflare's skills repository and plugin.

Capabilities

  • Review Workers code against current platform guidance
  • Keep compatibility dates and bindings correct
  • Turn on Workers logs and traces
  • Flag common Workers anti-patterns