workers-development

작성자: cloudflare

로컬 개발 중 cf dev, wrangler dev 또는 Cloudflare Vite 플러그인을 사용해 Cloudflare Workers를 실행하고, 검사하고, 디버깅합니다. Local Explorer를 사용해 바인딩 데이터를 읽고 시드하며 로컬 트레이스와 로그를 쿼리합니다. 프로덕션 디버깅도 Workers observability로 연결합니다. 프로젝트에서 Wrangler를 사용하는지 여부와 관계없이 요청을 디버깅할 때 사용합니다.

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의 다른 스킬

add-autogate
cloudflare
위험한 변경 사항을 점진적으로 롤아웃하기 위해 workerd에 새 자동 게이트를 추가하는 단계별 가이드(열거형 등록, 문자열 매핑, 사용 패턴 및 … 포함)
add-autogate
cloudflare
위험한 변경 사항의 점진적 배포를 위해 workerd에 새 autogate를 추가하는 단계별 가이드로, enum 등록, 문자열 매핑, 사용 패턴 등을 포함…
add-compat-flag
cloudflare
workerd에 새로운 호환성 플래그를 추가하기 위한 단계별 가이드로, capnp 스키마, C++ 사용법, 테스트 및 문서 요구 사항을 포함합니다.
add-compat-flag
cloudflare
workerd에 새로운 호환성 플래그를 추가하기 위한 단계별 가이드로, capnp 스키마, C++ 사용법, 테스트 및 문서 요구 사항을 포함합니다.
agents-sdk
cloudflare
Cloudflare Workers에서 Agents SDK를 사용하여 AI 에이전트를 구축하세요. 상태 저장 에이전트, 지속 가능한 워크플로우, 실시간 WebSocket 앱, 예약된 작업 등을 생성할 때 로드하세요.
architecture
cloudflare
코드베이스를 처음 탐색할 때, 새 클라이언트 메서드를 추가할 때, 새 컨테이너 핸들러/서비스를 추가할 때, 또는 요청 흐름을 이해할 때 사용합니다.
basin
cloudflare
Basin Pipelines, Basin Catalog, Basin SQL을 사용해 Cloudflare Basin 분석 워크플로를 구축하고 문제를 해결합니다. 데이터를 R2 Iceberg 테이블로 스트리밍하거나, 카탈로그를 관리하거나, 해당 테이블을 쿼리할 때 사용하세요. 이전 이름인 Data Platform, Pipelines, R2 Data Catalog 또는 R2 SQL을 사용하는 요청에도 사용하세요.
data-analysisawsdatabase
bazel-test-hygiene
cloudflare
개발 중 bazel 테스트 실행을 위한 필수 규칙입니다. 특히 수정 사항을 검증할 때 bazel 테스트 명령을 실행하기 전에 이 스킬을 로드하세요.