workers-development

tarafından cloudflare

Yerel geliştirme sırasında cf dev, wrangler dev veya Cloudflare Vite eklentisiyle Cloudflare Workers’ı çalıştırın, inceleyin ve hata ayıklayın; binding verilerini okumak ve başlangıç verileri eklemek, ayrıca yerel izleri ve günlükleri sorgulamak için Local Explorer’ı kullanın. Üretim ortamındaki hata ayıklama işlemlerini de Workers observability’ye yönlendirir. Projenin Wrangler kullanıp kullanmadığına bakılmaksızın isteklerde hata ayıklamak için kullanın.

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.

cloudflare tarafından daha fazla skill

add-autogate
cloudflare
Riskli değişikliklerin kademeli olarak yayına alınması için workerd'e yeni bir autogate ekleme adım adım kılavuzu: enum kaydı, string eşleme, kullanım deseni ve…
add-autogate
cloudflare
Riski yüksek değişikliklerin kademeli olarak yayınlanması için workerd'a yeni bir autogate ekleme adım adım kılavuzu; enum kaydı, string eşleme, kullanım deseni ve…
add-compat-flag
cloudflare
workerd'e yeni bir uyumluluk bayrağı eklemek için adım adım kılavuz: capnp şeması, C++ kullanımı, test etme ve dokümantasyon gereksinimleri dahil.
add-compat-flag
cloudflare
workerd'e yeni bir uyumluluk bayrağı eklemek için adım adım rehber; capnp şeması, C++ kullanımı, test etme ve dokümantasyon gereksinimleri dahil.
agents-sdk
cloudflare
Cloudflare Workers üzerinde Agents SDK kullanarak AI ajanları oluşturun. Durum bilgisi olan ajanlar, dayanıklı iş akışları, gerçek zamanlı WebSocket uygulamaları, zamanlanmış görevler oluştururken yükleyin,…
architecture
cloudflare
Kod tabanında ilk kez gezinirken, yeni bir istemci metodu eklerken, yeni bir konteyner işleyicisi/hizmeti eklerken veya bir isteğin nasıl aktığını anlamak için kullanın…
basin
cloudflare
Basin Pipelines, Basin Catalog ve Basin SQL ile Cloudflare Basin analiz iş akışları oluşturun ve sorunlarını giderin. Verileri R2 Iceberg tablolarına akış olarak aktarmak, katalogları yönetmek veya bu tablolarda sorgu çalıştırmak için kullanın; ayrıca eski Data Platform, Pipelines, R2 Data Catalog veya R2 SQL adlarını kullanan istekler için de kullanın.
data-analysisawsdatabase
bazel-test-hygiene
cloudflare
Geliştirme sırasında bazel testlerini çalıştırmak için zorunlu kurallar. Bu beceriyi, özellikle düzeltmeleri doğrularken veya… herhangi bir bazel test komutunu çalıştırmadan önce yükleyin.