workers-best-practices

Review Cloudflare Workers code against current best-practice patterns.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/ecomm360-sl/isaacbosch-emdash-web --skill workers-best-practices-ecomm360-sl
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: workers-best-practices
Source: https://github.com/ecomm360-sl/isaacbosch-emdash-web/tree/main/.agents/skills/workers-best-practices
Command: npx skills add https://github.com/ecomm360-sl/isaacbosch-emdash-web --skill workers-best-practices-ecomm360-sl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Reviews and enforces Cloudflare Workers best-practice patterns on codebases.

Core Features & Use Cases

  • Retrieval of the latest Cloudflare Workers best practices, types, and wrangler config schemas.
  • Guidance on code review, binding usage, and anti-patterns (streaming, floating promises, global state, secrets, observability).
  • Structured review workflow to ensure compatibility and security before deployment.

Quick Start

Start by fetching the latest workers best-practices page and apply the review workflow to your Worker code.

Frequently Asked Questions about workers-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are common Cloudflare Workers anti-patterns I should look for in a code review?▼

Common Cloudflare Workers anti-patterns include improper streaming, floating promises, unsafe global state mutation, and insecure secrets handling. Reviewing codebases for these patterns ensures runtime stability and security before deployment.

How do I validate my wrangler.jsonc configuration against current Cloudflare Workers best practices?▼

You validate wrangler.jsonc configurations by retrieving the latest wrangler config schema and Workers types. This process checks your bindings and API usage to enforce current configuration guidance and security standards.

How do I audit my Worker code for secure bindings and observability?▼

Auditing Worker code for secure bindings and observability involves applying a structured review workflow against the latest Cloudflare docs. This validates API usage and configuration to detect anti-patterns and enforce security.

Does this approach require fetching the latest Cloudflare docs to review Worker code?▼

Yes, fetching the latest Cloudflare docs is required to review Worker code. The skill relies on retrieving current Workers types and wrangler schemas to accurately validate API usage and bindings against modern guidance.

What is the best way to prevent floating promises when writing Cloudflare Workers?▼

The best way to prevent floating promises is applying a structured review workflow to your codebase. This enforces Cloudflare Workers best-practice patterns by validating code against current guidance to catch asynchronous errors.