Generated banner for Workers Development
Generated logo for Workers Development

Workers Development

CloudflareOfficialPublished by Cloudflare

  • Skill
  • Tool integration
  • Cloud and DevOps
  • Apache-2.0
  • No issues found

From the author

Run, inspect, and debug Cloudflare Workers during local development with cf dev, wrangler dev, or the Cloudflare Vite plugin, using Local Explorer to read and seed binding data and query local traces and logs. Also routes production debugging to Workers observability. Use for debugging requests whether or not the project uses Wrangler.
— the description by Cloudflare

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

This skill provides a framework for running, inspecting, and debugging Cloudflare Workers during local development. It leverages project-specific tooling like Wrangler or the Cloudflare Vite plugin and utilizes the Local Explorer interface to interact with bindings, view traces, and manage logs. Additionally, it offers guidance on routing production debugging data through Workers observability, ensuring a consistent debugging experience across development and production environments.

What it does

  • Runs Cloudflare Workers locally using existing project scripts.
  • Provides access to Local Explorer for managing KV, R2, D1, and Durable Objects.
  • Captures local traces and logs for every invocation without requiring code changes.
  • Triggers Cron handlers locally for testing scheduled tasks.
  • Integrates with Workers observability to debug deployed production Workers.
  • Facilitates feedback submission for skill improvements via GitHub.

When to use it

  • When you need to debug local request handling in a Cloudflare Worker.
  • When you need to seed or inspect local binding data like KV or D1.
  • When you need to analyze logs and traces for a deployed production Worker.
  • When you need to test Cron triggers locally.

Advantages

  • Uses existing project configuration and tooling for seamless integration.
  • Provides a unified UI/API for inspecting various storage and state bindings.
  • Enables deep visibility into local execution via automatic trace capture.
  • Supports both local development and production observability workflows.

Usage examples

“How can I inspect my local D1 database bindings while running my Worker?”
The agent will guide you to open the Local Explorer UI at /cdn-cgi/local/explorer on your dev server to view and seed your local D1 data.
“I need to debug a production Worker, how do I access its logs?”
The agent will explain how to use the Workers Observability API to fetch logs, traces, or metrics for your specific account and Worker.

Install

  1. Download the skill as a ZIP:

    https://mp-staging.autogineer.com/agent-skills/cloudflare/workers-development/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip workers-development.zip -d .agents/skills

Documentation by Cloudflare

Workers development and debugging

Use the project's existing tooling, scripts, and configuration. Installed help, the Local Explorer API schema, and current docs describe the supported operations; read them rather than guessing endpoints or flags.

NeedTools and discovery
Run locallyUse the project's existing dev command: cf dev in a cf project, otherwise the Wrangler or Cloudflare Vite dev script. See local development.
Inspect or seed local binding dataLocal Explorer is a UI and API for local KV, R2, D1, SQLite-backed Durable Objects, and Workflows, and can trigger Cron handlers. Open /cdn-cgi/local/explorer on the dev server's origin.
Debug local requestsLocal Explorer captures traces and logs from every local invocation, including binding operations, without code changes. Check traces before adding logging.
Debug a deployed WorkerChoose logs, traces, or metrics with Workers observability, or the cloudflare skill's observability reference when installed. If the Cloudflare MCP server is connected (bundled with this plugin), use search to find the Workers Observability API operations, then execute to call them, scoped to the target account, Worker, and time window.

Use the Local Explorer API

When the dev server detects an AI agent, including under cf dev, it prints a hint with the API URL and relevant endpoints. Fetch the OpenAPI specification from /cdn-cgi/local/explorer/api on the dev server's origin, then extract only the operations the task needs. If no hint appears, request that URL directly. If the API or an operation is missing, compare the installed Wrangler or Vite plugin version against the requirements in the Local Explorer docs.

Bindings are simulated locally by default, but a binding set to remote: true reaches the real deployed resource while the Worker runs locally. Traces also capture those remote calls. Identify which bindings are remote before seeding or writing data.

Skill feedback

If the user reports that this skill gave incorrect or outdated guidance, or is missing information, read references/skill-feedback.md.

Files

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Needs an MCP server

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
Cloudflare
Publisher
Cloudflare (Official)
Source
cloudflare/skills · skills/workers-development · commit 6eb6c78
Licence
Apache License 2.0 (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by Cloudflare.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download workers-development.zip