Workers Best Practices
Skill Verified ActiveReviews 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.
To ensure Cloudflare Workers code is written and reviewed according to current production best practices, leveraging up-to-date documentation and type information.
Features
- Reviews Cloudflare Workers code against best practices
- Authors Cloudflare Workers code using best practices
- Retrieves latest Cloudflare docs and types
- Identifies common Workers anti-patterns
- Provides guidance on configuration and security
Use Cases
- When writing new Cloudflare Workers code
- When reviewing existing Cloudflare Workers code
- When configuring wrangler.jsonc
- When checking for common Workers anti-patterns
Non-Goals
- Providing a generic LLM knowledge base for Workers
- Replacing in-depth Cloudflare documentation
- Authoring complex Workers applications from scratch without user input
Versioning
- info:Release ManagementNo explicit versioning (semver, tags) is present in the SKILL.md or manifests, and installation instructions do not reference a specific version, implying use of the 'main' branch.
Execution
- info:Pinned dependenciesWhile the skill itself does not bundle scripts with dependencies, the SKILL.md guides users on how to install `@cloudflare/workers-types`, implying a need for version management.
Installation
First, add the marketplace
/plugin marketplace add cloudflare/skills/plugin install skills@cloudflareQuality Score
VerifiedTrust Signals
Similar Extensions
Wrangler
100Cloudflare Workers CLI for deploying, developing, and managing Workers, KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Containers, Queues, Workflows, Pipelines, and Secrets Store. Load before running wrangler commands to ensure correct syntax and best practices. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.
Cloudflare Deploy
99Deploy applications and infrastructure to Cloudflare using Workers, Pages, and related platform services. Use when the user asks to deploy, host, publish, or set up a project on Cloudflare.
Durable Objects
97Create and review Cloudflare Durable Objects. Use when building stateful coordination (chat rooms, multiplayer games, booking systems), implementing RPC methods, SQLite storage, alarms, WebSockets, or reviewing DO code for best practices. Covers Workers integration, wrangler config, and testing with Vitest. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.
Cloudflare Agents SDK
97Build AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, chat applications, voice agents, or browser automation. Covers Agent class, state management, callable RPC, Workflows, durable execution, queues, retries, observability, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.
Cloudflare Email Service
95Send and receive transactional emails with Cloudflare Email Service (Email Sending + Email Routing). Use when building email sending (Workers binding or REST API), email routing, Agents SDK email handling, or integrating email into any app — Workers, Node.js, Python, Go, etc. Also use for email deliverability, SPF/DKIM/DMARC, wrangler email setup, MCP email tools, or when a coding agent needs to send emails. Even for simple requests like "add email to my Worker" — this skill has critical config details.
Neon Postgres
100Guides and best practices for working with Neon Serverless Postgres. Covers getting started, local development with Neon, choosing a connection method, Neon features, authentication (@neondatabase/auth), PostgREST-style data API (@neondatabase/neon-js), Neon CLI, and Neon's Platform API/SDKs. Use for any Neon-related questions.