elogic360/software-factory/cloudflare-workers-dev-experience
Claude Code and agent skill by elogic360/software-factory
- community
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 elogic360/software-factory/cloudflare-workers-dev-experienceSKILL.md
The same SKILL.md was published earlier as elogic360/software-factory/cloudflare-workers-dev-experience.
Cloudflare Workers Developer Experience
Local development setup with Wrangler, Miniflare, and modern tooling.
Quick Start
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 usesocket 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
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, 90 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 repositoryCheckingintegrations/claude-skills-secondsky/plugins/cloudflare-workers/skills/cloudflare-workers-dev-experience/SKILL.md
Popularity
- 7-day trend score
- 0
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/elogic360/software-factory/cloudflare-workers-dev-experience)