Cloudflare App Bootstrap
CloudflareOfficialPublished by Cloudflare
- Skill
- Workflow
- Cloud and DevOps
- Apache-2.0
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The cloudflare-app-bootstrap skill provides a structured procedure for transitioning an existing Cloudflare Workers project into a functional local development environment. It guides users through inspecting project configurations, mapping necessary bindings, managing secrets securely, and verifying application behavior through local requests. The skill emphasizes preserving existing project conventions while ensuring that local resources, migrations, and runtime types are correctly initialized before development begins.
What it does
- Analyzes existing project structure, dependencies, and configuration files.
- Maps application bindings to local or remote resources.
- Configures runtime secrets and environment variables for local development.
- Initializes data-backed features like D1 databases and Durable Objects.
- Regenerates binding and runtime types to ensure code consistency.
- Verifies application functionality through representative local requests.
When to use it
- When onboarding a new developer to an existing Cloudflare Workers project.
- When setting up local development for a project that lacks configuration.
- When troubleshooting issues with local binding or secret connectivity.
- When preparing a project for local testing after adding new infrastructure dependencies.
Advantages
- Maintains consistency with existing project architecture and conventions.
- Prevents common configuration errors by validating bindings and types.
- Ensures secure handling of runtime secrets during local development.
- Provides a clear path to verifying that the application is truly ready for development.
Usage examples
- “Bootstrap my local environment for this Cloudflare Workers project.”
- The agent will inspect the project directory, identify required bindings and secrets, guide the user through setting up local configuration, and verify the app with a test request.
- “I cannot get my D1 database to work locally in my Workers app, help me fix it.”
- The agent will review the current migration setup, ensure the correct --local flags are used, and help verify the database connection.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/cloudflare/cloudflare-app-bootstrap/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip cloudflare-app-bootstrap.zip -d .agents/skills
Documentation by Cloudflare
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 before manually creating supported resources, and check which resource types it covers. Provisioning differs by CLI:
Wrangler:
wrangler devcreates local resources that persist between runs, andwrangler deploycreates remote resources and writes their identifiers back to the configuration file.cf:cf deployprovisions missing resources but does not write identifiers back tocloudflare.config.ts(Develop, build, and deploy). 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. 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 and pass --local or --remote to 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 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 for runtime secrets, and configure values the build needs in its build environment.
In Wrangler and Vite projects, follow local secret loading 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 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.
Files
- ATTRIBUTION.mdAdded by AutoGineer884 B
- LICENSELicence file added by AutoGineer11.1 KiB
- SKILL.md6.0 KiB
- references/skill-feedback.md2.8 KiB
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.
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/cloudflare-app-bootstrap · 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 or Cloudflare.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download cloudflare-app-bootstrap.zip