Skip to main content
skill CX Codex

cloudflare-app-bootstrap — Claude Code skill: what it does

cloudflare-app-bootstrap — a skill for Claude Code that gets a Cloudflare Workers app to a working local request by connecting bindings and secrets.

Apache-2.0 8,000 installs ★ 3,424 updated 2026-10-19

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add cloudflare/skills --skill cloudflare-app-bootstrap -a claude-code
Open on GitHub

What cloudflare-app-bootstrap does

The skill brings a Cloudflare Workers project to a working local state by connecting its bindings, secrets, and initial data. It preserves the existing framework, package manager, and configuration while mapping application resources. The agent runs setup commands, checks local development workflows, and applies database migrations for D1 or Durable Objects.

After resolving configuration files, the skill regenerates TypeScript types using project scripts and verifies representative application routes. Private credentials remain separated from public bundles, and missing runtime secrets are flagged for review.

What it helps with

  • connect Cloudflare Workers bindings and secrets
  • initialize local D1 database migrations
  • verify working local requests for Workers
  • generate TypeScript types for Cloudflare

Example prompts for the agent

  • Set up local environment and bindings for this Cloudflare Workers app
  • Connect the required resources and secrets for local testing
  • Verify a working local request for the current Cloudflare project

How to install cloudflare-app-bootstrap

1Skills CLI (Vercel)

npx skills add cloudflare/skills --skill cloudflare-app-bootstrap -a claude-code

2Manually: put the files in place

~/.claude/skills/cloudflare-app-bootstrap/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/cloudflare-app-bootstrap/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about cloudflare-app-bootstrap

How to install cloudflare-app-bootstrap in Claude Code?

Run npx skills add cloudflare/skills --skill cloudflare-app-bootstrap -a claude-code and reference ~/.claude/skills/cloudflare-app-bootstrap/SKILL.md.

What does cloudflare-app-bootstrap do?

It takes a Cloudflare Workers app to a working local request by connecting bindings, secrets, and initial data, then verifies real behavior.

What is needed to use cloudflare-app-bootstrap?

An existing Cloudflare Workers project, local package manager, and configuration files are required.

Source text

SKILL.md · Apache-2.0
---
name: cloudflare-app-bootstrap
description: Get a Cloudflare Workers app to a working local request by connecting its bindings, secrets, and initial data, then verifying real application behavior. Use for app setup or onboarding after the project exists; use frameworks-on-cloudflare or cf-cli to create or configure the project, and wrangler or cf-cli for isolated commands.
---

# Cloudflare App Bootstrap

Take the project from its current state to a working local request that exercises the requested application behavior. Preserve the user's framework, package manager, CLI, and existing services. Read the relevant current documentation before choosing configuration or commands, and check support against installed versions with local CLI help and schemas.

## Start from the project

Inspect the app directory, lockfile, scripts, framework and adapter versions, Cloudflare configuration (`cloudflare.config.ts`, or a Wrangler configuration file), and existing setup instructions. In a monorepo, identify the application root before installing or generating files. Install from the existing lockfile and reuse the project's dependency and configuration conventions.

If the project has no Cloudflare configuration yet, set it up first with the `frameworks-on-cloudflare` skill for a framework app, or the `cf-cli` skill otherwise. Identify the source of any framework-generated configuration and edit that source. Do not replace a working app with a starter to resolve a configuration problem.

## Connect only the resources the app needs

Identify each binding used by application code and map it to an existing resource or a new local resource. Keep names consistent across code and configuration. Keep existing resource identifiers: a binding without one is treated as a new resource to provision on the next deploy.

Read [automatic provisioning](https://developers.cloudflare.com/workers/wrangler/configuration/index.md#automatic-provisioning) before manually creating supported resources, and check which resource types it covers. Provisioning differs by CLI:

- **Wrangler:** `wrangler dev` creates local resources that persist between runs, and `wrangler deploy` creates remote resources and writes their identifiers back to the configuration file.
- **`cf`:** `cf deploy` provisions missing resources but does not write identifiers back to `cloudflare.config.ts` ([Develop, build, and deploy](https://developers.cloudflare.com/cf/projects/index.md)). Record the identifiers it reports in the configuration.

Establish the account, environment, and resource before any required remote creation.

Choose the dev command from the app's scripts and the [local development guide](https://developers.cloudflare.com/workers/local-development/index.md). A local Worker can use remote bindings: identify which resources are simulated and which calls reach real services before exercising writes. Use the framework's supported Workers dev integration; a frontend-only dev server does not establish that server bindings work.

For data-backed features, initialize only the state needed for the first meaningful request. Preserve existing migration tooling. For D1, follow [migrations](https://developers.cloudflare.com/d1/reference/migrations/index.md) and pass `--local` or `--remote` to [`d1 migrations apply`](https://developers.cloudflare.com/workers/wrangler/commands/d1/index.md#d1-migrations-apply) explicitly. `--local` initializes only the simulated database; apply remote migrations only when the requested setup includes that database change. For Durable Objects, check the current [class migration configuration](https://developers.cloudflare.com/durable-objects/reference/durable-objects-migrations/index.md) rather than treating it as a D1 SQL migration.

## Resolve configuration and secrets

Classify required values by consumer: build process, browser bundle, or Worker runtime. Keep private runtime credentials out of public client configuration. Use [Workers secrets](https://developers.cloudflare.com/workers/configuration/secrets/index.md) for runtime secrets, and configure values the build needs in its [build environment](https://developers.cloudflare.com/workers/ci-cd/builds/configuration/index.md#environment-variables).

In Wrangler and Vite projects, follow [local secret loading](https://developers.cloudflare.com/workers/local-development/environment-variables/index.md) for file names, environment precedence, and required-secret declarations. In a `cf` project, find the equivalent with `cf cli search` rather than assuming the Wrangler behavior. Reuse the project's chosen local secret file, make sure files with real values are ignored by Git, and provide names and safe placeholders for missing values. Local secrets are not installed on a deployed Worker. Authenticate only when the selected workflow needs account access; do not make login or deployment a blanket prerequisite for local setup.

## Verify the first application request

After changing configuration, regenerate [binding and runtime types](https://developers.cloudflare.com/workers/languages/typescript/index.md) with the project's script: `wrangler types` in a Wrangler project, or `cf workers types` in a `cf` project. Do not hand-edit generated declarations. Run the relevant existing build and type checks.

Start the actual development workflow and exercise a representative route or UI action, including its binding access when applicable. Check the response and the intended state change, not just that a server started. For missing credentials or unsupported local services, report exactly what remains unverified instead of claiming the app works.

Leave reproducible install, initialization, and dev commands in the project's setup documentation. Report the tested URL or action, which resources are local or remote, required values still missing, and any remaining remote setup. Continue to deployment only when it is part of the user's task.

## Skill feedback

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

© cloudflare · Apache-2.0 · cloudflare/skills

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set23

The whole set →
k2 k2 is a Claude Code skill for setting up and troubleshooting Cloudflare K2 and K2 Streams. It covers stream creation, event production, retention settings, and subscription-based consumption. CX Codex +1 37,900installs basin Skill for building and troubleshooting Cloudflare Basin analytics. Stream data into R2 Iceberg tables, manage catalogs, and run distributed SQL queries from your IDE. CX Codex +1 37,800installs workers-profiling workers-profiling — a skill for analyzing CPU and memory usage in deployed Cloudflare Workers and Durable Objects. Finds expensive functions and proposes code optimizations. CX Codex +1 30,100installs cf-cli The cf-cli skill helps an agent find and run Cloudflare commands with cf, and choose between cf and Wrangler. Use it for Workers and Cloudflare resources from the terminal. CX Codex +1 29,100installs gateway-workers gateway-workers — a skill for building, debugging, and reviewing Cloudflare Workers triggered by Forward actions in Gateway HTTP policies. Work with GatewayMiddleware, context types, and request continuation. CX Codex +1 25,500installs workers-development The workers-development Claude Code skill runs and debugs Cloudflare Workers locally, then directs production investigations to observability tools. It activates for requests to run or troubleshoot a Worker. CX Codex +1 8,200installs frameworks-on-cloudflare frameworks-on-cloudflare — a Claude Code skill for building and moving web-framework apps to Cloudflare Workers. It activates when a project built with Astro, SvelteKit, Nuxt, or another supported framework targets Workers. CX Codex +1 8,100installs cloudflare Equips Claude Code with guides for the Cloudflare platform and connects the remote MCP server. Helps manage Workers, Durable Objects, and deployment pipelines. ★ 3,424repo stars

Project sponsors

Companies that keep this analytics open