workers-best-practices

Enforce Cloudflare Workers coding standards for bindings, streaming, and observability.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Cloudflare Workers code often misses production-grade patterns, leading to bugs, security gaps, and poor observability. This skill provides a retrieval-driven framework to review and author Worker code against established best practices.

Core Features & Use Cases

  • Retrieval of the latest Cloudflare Workers best practices and type references to stay current.
  • Structured review guidance covering bindings, streaming, waitUntil usage, observability, and error handling.
  • Onboarding and ongoing code quality support for teams writing or auditing Workers.

Quick Start

Review the latest Workers best practices and apply the rules to your current Worker codebase.

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?

Review Cloudflare Workers code by validating wrangler.jsonc bindings, checking for anti-patterns like floating promises and global state, and ensuring proper observability and waitUntil usage. This skill retrieves the latest type definitions to enforce coding standards.

What are common anti-patterns to avoid when developing Cloudflare Workers?

Common Cloudflare Workers anti-patterns include improper streaming, floating promises, relying on global state, and missing observability. This skill identifies these issues during code reviews to reduce bugs, security risks, and operational problems.

How do I validate wrangler bindings against type definitions for Workers?

Validate wrangler bindings by retrieving the latest Cloudflare Workers type definitions and comparing them against your wrangler.jsonc configuration. This skill ensures correct binding usage and type safety to prevent runtime errors.

Does this skill help with setting up observability for Cloudflare Workers?

Yes, this skill enforces proper observability practices for Cloudflare Workers. It provides structured review guidance to ensure your Worker code meets production-grade monitoring and error handling standards.

Can I use this skill to audit existing Cloudflare Workers codebases?

Yes, you can audit existing Cloudflare Workers codebases with this skill. It evaluates current code against established best practices, identifies anti-patterns, and provides actionable review guidance for remediation.