workers-development

Cloudflare Workers während der lokalen Entwicklung mit cf dev, wrangler dev oder dem Cloudflare Vite-Plugin ausführen, untersuchen und debuggen. Mit Local Explorer Binding-Daten lesen und initialisieren sowie lokale Traces und Logs abfragen. Leitet außerdem das Debugging in der Produktion an Workers observability weiter. Zum Debuggen von Requests verwenden, unabhängig davon, ob das Projekt Wrangler nutzt.

npx skills add https://github.com/cloudflare/skills --skill workers-development

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.

Mehr Skills von cloudflare

add-autogate
cloudflare
Schritt-für-Schritt-Anleitung zum Hinzufügen eines neuen Autogate zu workerd für die schrittweise Einführung riskanter Änderungen, einschließlich Enum-Registrierung, String-Mapping, Nutzungsmuster und…
add-autogate
cloudflare
Schritt-für-Schritt-Anleitung zum Hinzufügen eines neuen Autogates zu workerd für die schrittweise Einführung riskanter Änderungen, einschließlich Enum-Registrierung, String-Zuordnung, Nutzungsmuster und…
add-compat-flag
cloudflare
Schritt-für-Schritt-Anleitung zum Hinzufügen eines neuen Kompatibilitätsflags zu workerd, einschließlich capnp-Schema, C++-Nutzung, Tests und Dokumentationsanforderungen.
add-compat-flag
cloudflare
Schritt-für-Schritt-Anleitung zum Hinzufügen eines neuen Kompatibilitätsflags zu workerd, einschließlich capnp-Schema, C++-Verwendung, Tests und Dokumentationsanforderungen.
agents-sdk
cloudflare
Erstellen Sie KI-Agenten auf Cloudflare Workers mit dem Agents SDK. Laden Sie beim Erstellen zustandsbehafteter Agenten, dauerhafter Workflows, Echtzeit-WebSocket-Apps, geplanter Aufgaben,…
architecture
cloudflare
Verwenden beim ersten Navigieren durch die Codebasis, Hinzufügen einer neuen Client-Methode, Hinzufügen eines neuen Container-Handlers/-Dienstes oder Verstehen, wie eine Anfrage fließt…
basin
cloudflare
Cloudflare Basin-Analyse-Workflows mit Basin Pipelines, Basin Catalog und Basin SQL erstellen und Fehler beheben. Verwenden Sie dies, um Streaming-Daten in R2-Iceberg-Tabellen zu übertragen, Kataloge zu verwalten oder diese Tabellen abzufragen; verwenden Sie es auch für Anfragen zu den früheren Bezeichnungen Data Platform, Pipelines, R2 Data Catalog oder R2 SQL.
data-analysisawsdatabase
bazel-test-hygiene
cloudflare
Verbindliche Regeln für die Ausführung von Bazel-Tests während der Entwicklung. Laden Sie diese Fähigkeit, bevor Sie einen Bazel-Testbefehl ausführen, insbesondere bei der Validierung von Korrekturen oder…