workers-best-practices

Review Cloudflare Workers code against production best practices.

2|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/NagyVikt/codex-plugins --skill workers-best-practices-nagyvikt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: workers-best-practices
Source: https://github.com/NagyVikt/codex-plugins/tree/main/plugins/cloudflare/skills/workers-best-practices
Command: npx skills add https://github.com/NagyVikt/codex-plugins --skill workers-best-practices-nagyvikt

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill addresses the complexity of maintaining high-performance, secure, and compliant Cloudflare Workers by providing automated guidance on architecture, security, and API usage.

Core Features & Use Cases

  • Production Best Practices: Enforces rules for streaming, observability, and memory management to prevent common runtime failures.
  • Security Guardrails: Validates cryptographic practices and secret handling to prevent credential leaks and timing side-channel attacks.
  • Configuration Validation: Ensures wrangler.jsonc settings, compatibility dates, and binding types are correctly configured for the latest platform standards.

Quick Start

Use the workers-best-practices skill to review the current codebase for floating promises and incorrect binding access 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 review Cloudflare Workers code against production best practices?

Review Cloudflare Workers code by validating architecture, security, and API usage against production rules for streaming, observability, and memory management to prevent runtime failures.

How do I prevent floating promises and incorrect binding access in Cloudflare Workers?

Prevent floating promises and incorrect binding access by auditing Workers code to ensure strict adherence to current Cloudflare API signatures and platform-specific type definitions.

How do I validate wrangler.jsonc configuration and compatibility dates for Cloudflare Workers?

Validate wrangler.jsonc configuration by checking that compatibility dates and binding types are correctly configured to meet the latest Cloudflare platform standards.

Does this approach apply to Durable Objects and Workflows or just Cloudflare Workers?

This approach applies to the development, configuration, and auditing of Durable Objects and Workflows, ensuring they also adhere to current platform-specific type definitions.

How do I enforce security guardrails for cryptographic practices and secret handling in Cloudflare Workers?

Enforce security guardrails by validating cryptographic practices and secret handling to actively prevent credential leaks and timing side-channel attacks in Cloudflare Workers.