comeonoliver/skillshub/cloudflare-workers-dev-experience
Claude Code and agent skill by comeonoliver/skillshub
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Cloudflare Workers local development with Wrangler, Miniflare, hot reload, debugging. Use for project setup, wrangler.jsonc configuration, or encountering local dev, HMR, binding simulation errors.
Install
npx vskill@latest install comeonoliver/skillshub/cloudflare-workers-dev-experienceSKILL.md
The same SKILL.md was published earlier as comeonoliver/skillshub/cloudflare-workers-dev-experience.
Cloudflare Workers Developer Experience
Local development setup with Wrangler, Miniflare, and modern tooling.
Quick Start
Essential wrangler.jsonc
Critical Rules
- Always use `wrangler dev` for local testing - Simulates Cloudflare runtime accurately
- Set `compatibility_date` - Controls runtime behavior, update quarterly
- Use preview IDs for local dev - Separate from production bindings
- Configure TypeScript properly - Use
@cloudflare/workers-types - Enable source maps - Better error stacks in development
Top 6 Errors Prevented
| Error | Symptom | Prevention | |
|---|---|---|---|
| Module not found | Import errors on deploy | Set "moduleResolution": "bundler" in tsconfig | |
| Binding undefined | env.KV is undefined locally | Add preview_id to KV namespace config | |
| HMR not working | Changes not reflecting | Check port conflicts, use --local flag | |
| D1 schema mismatch | Queries fail locally | Run migrations on local DB | |
| Type errors | Missing binding types | Generate types with wrangler types | |
| CORS issues | Browser blocking requests | Add CORS headers in dev handler |
Local Development Workflow
TypeScript Configuration
tsconfig.json:
Package.json Scripts
Debugging
Console Logging
Using wrangler tail
VS Code Debugging
.vscode/launch.json:
When to Load References
Load specific references based on the task:
- Setting up project? → Load
references/local-development.mdfor complete setup guide - Configuring wrangler? → Load
references/wrangler-config.mdfor all configuration options - Debugging issues? → Load
references/debugging-tools.mdfor debugging techniques
Templates
| Template | Purpose | Use When | |
|---|---|---|---|
templates/wrangler-config.jsonc | Complete wrangler config | Starting new project | |
templates/dev-script.ts | Development utilities | Adding dev helpers |
Scripts
| Script | Purpose | Command | |
|---|---|---|---|
scripts/dev-setup.sh | Initialize dev environment | ./dev-setup.sh |
Resources
- Wrangler CLI: https://developers.cloudflare.com/workers/wrangler/
- Configuration: https://developers.cloudflare.com/workers/wrangler/configuration/
- Local Development: https://developers.cloudflare.com/workers/testing/local-development/
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/secondsky/claude-skills/cloudflare-workers-dev-experience/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/comeonoliver/skillshub/cloudflare-workers-dev-experience)