workers-best-practices

Review Cloudflare Workers code against production best practices and anti-patterns.

Updated Feb 18, 2026
One-click install
npx skills add https://github.com/daveio/syn-horse --skill workers-best-practices
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: workers-best-practices
Source: https://github.com/daveio/syn-horse/tree/main/.agents/skills/workers-best-practices
Command: npx skills add https://github.com/daveio/syn-horse --skill workers-best-practices

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Reviews Cloudflare Workers code for adherence to production best practices.

Core Features & Use Cases

  • Retrieval-first guidance to validate APIs, config, and bindings
  • Anti-pattern detection for streaming, floating promises, global state, and secrets
  • Guidance when writing new Workers, reviewing code, or configuring wrangler.jsonc

Quick Start

Ask this skill to fetch the latest Cloudflare Workers best practices and start a review of your Worker code against anti-patterns.

Frequently Asked Questions about workers-best-practices

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

FAQPage Schema
How do I check my Cloudflare Workers code for production anti-patterns?

To check Cloudflare Workers code for production anti-patterns, review your code against streaming, floating promises, global state, secrets, and bindings. Enforcing best practices ensures your Worker code avoids common runtime pitfalls and maintains reliable API usage.

What are common Cloudflare Workers anti-patterns I should avoid?

Common Cloudflare Workers anti-patterns to avoid include improper streaming, floating promises, relying on global state, and mishandling secrets and bindings. Detecting these anti-patterns during code review prevents unpredictable behavior in production environments.

How do I validate my wrangler.jsonc configuration for bindings?

To validate wrangler.jsonc configuration for bindings, use retrieval-first guidance to check your setup against the latest wrangler schemas and workers-types. Validating wrangler.jsonc ensures config correctness and proper API usage for your Cloudflare Workers.

Does Cloudflare Workers code review support enforcing API usage correctness?

Yes, Cloudflare Workers code review supports enforcing API usage correctness by validating your implementation against the latest Cloudflare docs and workers-types. This retrieval-first guidance confirms your APIs and bindings are configured correctly.

Why does my Cloudflare Worker break when using global state?

Your Cloudflare Worker breaks when using global state because global state is a known anti-pattern in serverless environments. Reviewing your Worker code helps detect and remove global state dependencies to ensure reliable production behavior.