workers-best-practices

Review Cloudflare Workers code and wrangler config against production best practices.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/brandonjjon/astro-starter-cf --skill workers-best-practices-brandonjjon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: workers-best-practices
Source: https://github.com/brandonjjon/astro-starter-cf/tree/main/.agents/skills/workers-best-practices
Command: npx skills add https://github.com/brandonjjon/astro-starter-cf --skill workers-best-practices-brandonjjon

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

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.

Core Features & Use Cases

  • Comprehensive rules for code review, wrangler config validation, and binding safety.
  • Guidance on anti-patterns such as streaming pitfalls, global state, and error handling; applicable during development and code reviews.
  • Use cases include onboarding new teams, PR reviews, and ensuring production readiness.

Quick Start

Run a retrieval-based review workflow to validate Worker code and wrangler configuration for production readiness.

Frequently Asked Questions about workers-best-practices

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

FAQPage Schema
How do I review Cloudflare Workers code for production best practices?

Cloudflare Workers code review enforces production best practices by validating code and wrangler config against current Cloudflare docs. It checks for anti-patterns, validates bindings, and ensures production readiness during PRs.

What are common Cloudflare Workers anti-patterns I should check for?

Common Cloudflare Workers anti-patterns include streaming pitfalls, floating promises, improper global state management, and unsafe error handling. A best practices audit identifies these issues alongside checks for proper secrets and observability configuration.

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

Validating wrangler.jsonc configuration for Workers bindings requires checking your file against the wrangler config schema. A best practices review ensures binding safety, verifies configuration updates, and confirms compliance with current Cloudflare documentation.

Does this Workers best practices audit work for existing code and onboarding new teams?

Yes, this Workers best practices audit applies to both new and existing Cloudflare Workers code. It is specifically useful for onboarding new teams, conducting PR reviews, and ensuring production readiness across your codebase.

Why should I use a retrieval-based review for Cloudflare Workers instead of pre-trained knowledge?

A retrieval-based review for Cloudflare Workers actively fetches current Cloudflare documentation rather than relying on potentially outdated pre-trained knowledge. This ensures your code review aligns with the latest wrangler config schema, bindings, and observability standards.