workers-best-practices

Cloudflare Workers code review and authoring against production best practices.

cloudflare ↓ 31k
Claude Code
View source ↗

What it does

  • references/rules.md — all best practice rules with code examples and anti-patterns
  • references/review.md — type validation, config validation, binding access patterns, review process
  • Durable Objects: load the durable-objects skill
  • Workflows: see Rules of Workflows
  • Wrangler CLI commands: load the wrangler skill
  • Be certain. Retrieve before flagging. If unsure about an API, config field, or pattern, fetch the docs first.
  • Provide evidence. Reference line numbers, tool output, or docs links.

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

Cloudflare Workers code review and authoring against production best practices.

Source

Repository: https://github.com/cloudflare/skills

workers-best-practices FAQ

What does the workers-best-practices skill do?

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. references/rules.md — all best practice rules with code examples and anti-patterns references/review.md — type validation, config validation, binding access patterns, review process

How do I install workers-best-practices?

Run: npx -y skills add https://github.com/cloudflare/skills --skill workers-best-practices --agent claude-code — the source lives at github.com/cloudflare/skills.

Maintain workers-best-practices?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

workers-best-practices on getagentictools
[![workers-best-practices on getagentictools](https://getagentictools.com/badge/skills/cloudflare-skills-workers-best-practices.svg)](https://getagentictools.com/skills/cloudflare-skills-workers-best-practices?ref=badge)
npx agentictools info skills/cloudflare-skills-workers-best-practices

The second line is the CLI lookup for this page — handy in READMEs and docs.