workers-best-practices

Review Cloudflare Workers code against production best practices.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/involvex/llms-remote --skill workers-best-practices-involvex
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: workers-best-practices
Source: https://github.com/involvex/llms-remote/tree/main/.agents/skills/workers-best-practices
Command: npx skills add https://github.com/involvex/llms-remote --skill workers-best-practices-involvex

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers write and review Cloudflare Workers code, ensuring it adheres to production best practices and avoids common pitfalls, leading to more robust, secure, and performant applications.

Core Features & Use Cases

  • Code Review: Analyzes Workers code against a comprehensive set of rules covering configuration, request handling, architecture, observability, code patterns, and security.
  • Best Practice Guidance: Provides clear, actionable rules and anti-patterns with explanations and code examples.
  • Use Case: Before deploying a new Cloudflare Worker, use this Skill to review the code for potential issues like floating promises, insecure secret handling, or inefficient data buffering, ensuring it's production-ready.

Quick Start

Review the attached Cloudflare Workers code file 'worker.ts' against best practices.

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 against production best practices?

Review Cloudflare Workers code by analyzing configuration, request handling, architecture, observability, code patterns, and security. This ensures your serverless application avoids common anti-patterns like floating promises and inefficient data buffering before deployment.

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

Common Cloudflare Workers anti-patterns include floating promises, global state misuse, streaming issues, insecure secrets management, and improper wrangler.jsonc binding configurations. Avoiding these ensures optimal serverless performance and security.

How do I configure wrangler.jsonc bindings for Cloudflare Workers?

Configure wrangler.jsonc bindings by validating your binding configurations against documentation-driven rules. Proper binding setup ensures your Cloudflare Workers environment correctly interfaces with external resources and maintains production standards.

Does this Cloudflare Workers review check observability setup?

The Cloudflare Workers review checks observability setup as part of its comprehensive code analysis. It verifies that your serverless application includes proper logging and monitoring configurations to meet production standards.

What's the best way to manage secrets in Cloudflare Workers?

The best way to manage secrets in Cloudflare Workers is to review your code for insecure secret handling anti-patterns. Proper secrets management ensures sensitive data is securely configured and accessed within your serverless environment.

Why do my Cloudflare Workers have streaming issues?

Cloudflare Workers streaming issues often arise from inefficient data buffering or improper response handling. Reviewing your code against production best practices helps identify and resolve these specific serverless anti-patterns.