workers-best-practices
Reviews and authors Cloudflare Workers code against production best practices, including wrangler.jsonc and common anti-patterns.
Setup & Installation
What This Skill Does
A guide for writing and reviewing Cloudflare Workers code against production best practices — streaming, floating promises, global state, secrets, bindings, observability, and wrangler.jsonc configuration. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.
Workers has runtime-specific pitfalls that look fine in standard Node.js code but fail at the edge — this skill encodes the current, validated anti-patterns and fixes so reviews and new code avoid them.
When to use it
- Reviewing a Worker PR for floating promises or missing streaming
- Refactoring a Worker that caches data in module-level globals
- Auditing a wrangler.jsonc for misconfigured bindings or observability gaps
- Teaching a team the Workers-specific anti-patterns to avoid
- Verifying a new Worker follows current Cloudflare-recommended patterns
Similar Skills
wp-performance
A backend-only agent skill for diagnosing and fixing WordPress performance problems.
wp-playground
wp-playground runs disposable WordPress instances in the browser or locally via CLI, using WebAssembly and SQLite.
wp-wpcli-and-ops
Handles WordPress operational tasks via WP-CLI: database exports and imports, URL and domain migrations with search-replace, plugin and theme management, cron inspection, cache flushing, and multisite operations.
apollo-router-plugin-creator
Guides you through writing native Rust plugins for Apollo Router.
