SkillsReviewed · fcakyon

Workers Best Practices

Workers Best Practices is a coding-assistant skill for developers building or reviewing Cloudflare Workers, but its recommendations need checking against the project's configuration and current documentation. It covers Wrangler configuration, generated binding types, streaming, background work, security, observability and runtime testing.

Researched 16 Nov 2026

In short.

Workers Best Practices is a coding-assistant skill for developers building or reviewing Cloudflare Workers, but its guidance does not establish that an application will work correctly in production. Its main strength is connecting practical review checks to project-specific evidence: installed Wrangler schemas, generated types, compatibility dates and relevant documentation. The supplied files include useful examples and qualifications, alongside version, performance and platform claims that have not been independently verified. Installation compatibility, assistant effectiveness and runtime results are not assessed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage is the complete plugins/cloudflare-skills/skills/workers-best-practices folder at revision c7d9afeb9fe44cf58fbb105b609732827fcfa318: SKILL.md and all four reference files. The repository-level LICENSE is included as the related license notice. Other repository files, sibling skills, linked documentation and external packages are excluded. The captured skill and references are eligible for unchanged redistribution with the license and applicable notices. No code was executed; installation, assistant behavior, runtime correctness, performance, security outcomes and production operation remain unassessed.

The overview

Identity

The resource is the workers-best-practices skill folder in fcakyon/claude-codex-settings [https://github.com/fcakyon/claude-codex-settings/tree/main/plugins/cloudflare-skills/skills/workers-best-practices]. Its entry file describes instructions for writing, reviewing and configuring Cloudflare Workers.

The folder contains SKILL.md and four references covering configuration, platform APIs, runtime patterns and skill feedback. This report concerns that repository copy at revision c7d9afeb9fe44cf58fbb105b609732827fcfa318. Official endorsement and equivalence to any upstream release are not established.

Assessment

The skill provides a useful structure for reviewing Workers code because it connects specific mistakes to consequences: untracked asynchronous work can be lost, mutable request data can cross request boundaries, and manually duplicated binding types can drift from configuration.

Its value depends on the assistant inspecting the actual project and checking uncertain claims. The supplied material contains no assistant evaluations, measured defect reductions or execution results, so effectiveness and completeness remain unknown.

Users

The intended users are developers working with a coding assistant on Cloudflare Workers, especially when preparing an application for production or reviewing an existing change. Experienced developers get concrete checks for binding contracts, request lifetimes, serialization and deployment configuration.

Beginners get explanations and short examples, but will still need familiarity with TypeScript, asynchronous JavaScript and Wrangler configuration. The material assumes access to an existing project or enough platform knowledge to create one.

Capabilities

Configuration guidance covers compatibility dates and flags, generated binding types, secret storage, configuration formats, binding-name consistency, logs, traces and sampling. It explicitly distinguishes enabling observability generally from enabling traces and checks deployment-environment overrides.

Runtime guidance covers streaming large bodies, tracking promises, background work, request-specific state, service bindings, Queues, Workflows, Hyperdrive, secure randomness, secret comparison and explicit error handling.

Platform checks distinguish module handlers from platform classes, examine inheritance and generic types, and separate serialization rules for Queues, Workflow results, Durable Object storage, SQL parameters and WebSockets. Testing guidance includes Workers-runtime tests and nullable binding results.

Using it

Requirements

Using the skill as intended calls for an assistant that can load its instructions, read the relevant reference files and inspect project code and configuration. Its approach also depends on access to installed Wrangler schemas, generated types and relevant Cloudflare documentation.

No supported assistant list or minimum assistant, Wrangler, TypeScript or Node.js version is specified. The Zod version recommendation applies to Workers already using Zod; Zod is not presented as a prerequisite for the skill.

Mechanism

SKILL.md acts as an entry point, routing the assistant to references relevant to the task. Those references pair checks with explanations, preferred examples, common mistakes and documentation links. The intended process is to compare affected code with the project's configured runtime and types, then retrieve documentation where uncertainty remains.

The skill directs attention to existing type checks and relevant runtime tests. A separate feedback reference supplies a public issue template for reporting problems with the skill and describes reviewing the proposed text and removing sensitive information before publication.

Setup

The supplied folder does not document an assistant-specific installation command. Keep SKILL.md and its references subdirectory together so the relative links remain usable, and follow the skill-loading procedure supported by the chosen assistant. Automatic discovery and host compatibility are not assessed.

For project work, the skill expects the assistant to inspect Wrangler configuration and installed schema, use generated binding types, and identify relevant existing checks. Commands such as wrangler types and wrangler secret put appear as project-development guidance.

Example

An illustrative task is reviewing a Worker that buffers an unbounded upstream response and starts a webhook request without tracking its promise. The skill would direct the assistant to examine streaming the upstream body and attaching suitable background work to ctx.waitUntil(), while preserving work that must finish before responding.

The assistant would then check affected types and relevant runtime tests. The reference also warns that destructuring waitUntil from ctx can lose its receiver. This is a suggested use case; no assistant session or code example was executed.

Assessment & evidence

Limitations

The skill relies on the assistant obtaining current documentation and interpreting project settings correctly. Linked documentation contents are not supplied, and the files provide no execution evidence. Runtime correctness, security outcomes, performance and compatibility with particular assistants remain unassessed.

Some recommendations are categorical, including enabling nodejs_compat, preferring JSON configuration and using Hyperdrive for external database connections. Their suitability for every project is not established. The Zod 4.5.0 recommendation, numerical runtime limits and estimated connection overhead also require independent verification.

The source warns that the Workers Vitest pool can enable nodejs_compat during testing, potentially concealing a missing deployment flag. Durable Objects, detailed Workflow rules and CLI operation also depend on resources outside this folder.

Reasoning

The strongest design choice is grounding recommendations in the project's installed schema, generated types and compatibility settings. Its serialization reference also distinguishes individual APIs, reducing the temptation to apply one data-format rule everywhere.

Several qualifications make the guidance more practical: small bounded bodies may be buffered, an unused binding alone is not a finding, and narrow changes do not require a full Workers audit. These features support focused review, although no comparative evidence establishes better results than other approaches.

Alternatives

The skill points readers directly to Cloudflare's Workers best-practices documentation [https://developers.cloudflare.com/workers/best-practices/workers-best-practices/index.md]. Reading the documentation directly is an alternative for developers who prefer to apply the guidance themselves.

For adjacent work, the entry file names a durable-objects skill, cf-cli or wrangler skills, and Rules of Workflows [https://developers.cloudflare.com/workflows/build/rules-of-workflows/index.md]. Those separate resources are outside the supplied folder, and their contents and comparative quality are not assessed.

Evidence

The supplied source includes the complete selected folder: SKILL.md, references/configuration.md, references/platform-apis.md, references/runtime-patterns.md and references/skill-feedback.md, plus the repository-level LICENSE.

The original entry file is available at the pinned revision [https://raw.githubusercontent.com/fcakyon/claude-codex-settings/c7d9afeb9fe44cf58fbb105b609732827fcfa318/plugins/cloudflare-skills/skills/workers-best-practices/SKILL.md]. These files establish the resource's instructions, examples and licensing. They do not establish successful installation, assistant adherence, passing tests or production behavior.

Access & freshness

Costs

The Apache-2.0 license grants no-charge rights to the covered material. The supplied files establish no prices for a coding assistant, Cloudflare services, observability or other supporting infrastructure. Total operating cost is unknown.

The configuration reference notes that sampling affects observability volume and cost. The runtime reference describes some binding operations as zero-cost, but provides no pricing schedule or billing evidence; that wording does not establish that the underlying services or application are free.

Rights

SKILL.md declares Apache-2.0, and the repository LICENSE supplies Apache License 2.0. It permits copying, modification and redistribution subject to its conditions. Recipients must receive the license, applicable source notices must be retained, modified files must identify changes, and applicable NOTICE attributions must be preserved when such a file is included.

The license includes a contributor patent grant subject to its terms, does not grant general trademark rights, and supplies the work without warranties. Redistribution of the captured skill should preserve the relative reference paths and include the captured license.

Freshness

The supplied snapshot identifies revision c7d9afeb9fe44cf58fbb105b609732827fcfa318 and a capture time of 16 November 2026 at 15:14:32 UTC. The capture time does not establish when the skill was authored or last revised. Later repository changes are unknown.

The skill explicitly anticipates outdated API knowledge and recommends checking current documentation against project-specific types and compatibility settings. Its external links, version recommendations and platform claims have not been independently verified.

Actions

Begin with one bounded Worker change and confirm that the chosen assistant can load the entry file and resolve its references. Ask it to connect each proposed finding to affected code, configuration, installed types and relevant documentation.

Before adopting changes, verify version-sensitive recommendations and example configuration values against the target project. Use the existing type checks and runtime tests appropriate to the affected behavior, and check deployment settings separately where the test environment supplies compatibility flags automatically.

Evidence for this report

LICENSEnotice · checked 2026-11-16