secondsky avatar

Cloudflare Workers Dev Experience

If you're setting up Cloudflare Workers locally or debugging why your bindings aren't working in dev mode, this gets you sorted. It walks through Wrangler configuration, proper TypeScript setup with the right module resolution settings, and handling preview IDs for KV and D1 so you stop seeing "undefined" errors. The security section on supply chain practices for scaffolding tools is a nice touch, especially the cooldown period advice. Most helpful when you're either bootstrapping a new worker project or troubleshooting why hot reload isn't picking up changes. The error prevention table covering the top six issues (binding configs, HMR, CORS) will save you from the usual local dev headaches.

skills.sh installs
317
GitHub stars
248
last updated
Aug 21, 2026

Install

$ npx -y skills add secondsky/claude-skills --skill cloudflare-workers-dev-experience --agent claude-code

Installs into .claude/skills of the current project.

Files

Cloudflare Workers Developer Experience

Local development setup with Wrangler, Miniflare, and modern tooling.

Quick Start

# Create new project
bunx create-cloudflare@latest my-worker

# Or from scratch
mkdir my-worker && cd my-worker
bun init -y
bun add -d wrangler @cloudflare/workers-types

# Start local development
bunx wrangler dev

Secure Installation

Scaffolding tools like bunx create-cloudflare download and execute remote code. Before running, follow supply chain security best practices:

  • Block post-install scripts — npm config set ignore-scripts true (or Bun: disabled by default)
  • Cooldown period — Wait 7 days for new package versions to be vetted by the community
  • Audit before installing — Run socket package score npm <pkg> or use socket npm install <pkg> to check packages

Load the dependency-upgrade skill for full security configuration including Socket CLI integration, cooldown setup, lockfile validation, and CI enforcement.

Essential wrangler.jsonc

{
  "$schema": "node_modules/wrangler/config-schema.json",
  "name": "my-worker",
  "main": "src/index.ts",
  "compatibility_date": "2024-12-01",

Sponsors

Details

Repository
github.com/secondsky/claude-skills
Categories
Debugging, Cloud & Infrastructure
First seen
Jun 3, 2026

More from secondsky/claude-skills

All 146

Recommended

More Debugging
1andrelandgraf avatarobservability-monitoringandrelandgraf/fullstackrecipesComplete observability stack with structured logging, error tracking, and web analytics.315skills.sh installs
2secondsky avatarcloudflare-workers-observabilitysecondsky/claude-skillsCloudflare Workers observability with logging, Analytics Engine, Tail Workers, metrics, and alerting. Use for monitoring, debugging, tracing, or encountering lo315skills.sh installs
3jwynia avatargithub-agilejwynia/agent-skillsDiagnose GitHub-driven agile workflow problems and guide feature branch development314skills.sh installs
4sattva2020 avatardokploy-api-mcpsattva2020/skillsDeploy and manage applications on Dokploy (self-hosted PaaS). Use when deploying apps, managing Docker Compose services, databases (PostgreSQL, MySQL, MariaDB, 312skills.sh installs
5davila7 avatarroier-seodavila7/claude-code-templatesTechnical SEO auditor and fixer. Runs Lighthouse/PageSpeed audits on websites or local dev servers, analyzes SEO/performance/accessibility scores, and automatic311skills.sh installs
6pproenca avatarpulumipproenca/dot-skillsPulumi infrastructure as code performance and reliability guidelines. This skill should be used when writing, reviewing, or refactoring Pulumi code to ensure op310skills.sh installs