Skip to main content
skill CX Codex

frameworks-on-cloudflare — Claude Code skill: building apps on Workers

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.

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

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

What frameworks-on-cloudflare does

The skill prepares web-framework projects for builds and deployment on Cloudflare Workers. It first checks the framework and version, package manager, rendering mode, and Cloudflare configuration, then follows the matching adapter and setup guidance.

For a new project, the guidance uses C3 and Wrangler. An existing project with Wrangler configuration keeps it and loads the wrangler skill; do not run cf init ., cf dev, cf build, or cf deploy in that project. When Cloudflare configuration is absent, cf detects supported frameworks and configures them, but detection alone does not guarantee a successful build.

The instructions account for framework-specific modes in Astro, React Router, and Hono. React Router SPA mode is unsupported by the Cloudflare Vite plugin. After setup, the skill checks package scripts, runs framework checks and a build, then verifies the Worker locally before deployment.

What it helps with

  • configure a new framework project for Cloudflare Workers
  • move an existing application to Workers
  • choose the right adapter and framework setup
  • check a local build and Worker run

Example prompts for the agent

  • Set up this Astro project to build and deploy on Cloudflare Workers.
  • Move the SvelteKit app to Cloudflare Workers and check it locally.
  • Review the Workers configuration in this React Router project.

How to install frameworks-on-cloudflare

1Skills CLI (Vercel)

npx skills add cloudflare/skills --skill frameworks-on-cloudflare -a claude-code

2Manually: put the files in place

~/.claude/skills/frameworks-on-cloudflare/SKILL.md

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

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

Questions about frameworks-on-cloudflare

How do I install frameworks-on-cloudflare in Claude Code?

Run npx skills add cloudflare/skills --skill frameworks-on-cloudflare -a claude-code. The skill file is placed at ~/.claude/skills/frameworks-on-cloudflare/SKILL.md.

What does frameworks-on-cloudflare do?

It guides setup of web-framework apps for Cloudflare Workers, including adapter and configuration choices, framework checks, builds, and local Worker verification.

What should I do if the project already has Wrangler configuration?

Keep Wrangler and load the wrangler skill. Do not run cf init ., cf dev, cf build, or cf deploy in that project.

Source text

SKILL.md · Apache-2.0
---
name: frameworks-on-cloudflare
description: Build, migrate, and deploy web-framework applications on Cloudflare Workers. Use when a framework project such as Astro, SvelteKit, React Router, TanStack Start, Nuxt, Hono, or a React or Vue SPA targets Cloudflare, or when a framework repository contains Workers deployment configuration.
---

# Build with frameworks on Cloudflare

Use the framework as the primary development interface and Cloudflare Workers as the deployment target. Serve static sites and SPA output with [Workers Static Assets](https://developers.cloudflare.com/workers/static-assets/index.md). Do not select Pages templates, Pages deployment commands, or Pages-specific presets for new applications. Preserve existing Pages deployments during unrelated maintenance.

## Route the project

1. Inspect the repository before changing it. Identify the framework, installed version, package manager, rendering mode, existing adapter, and Cloudflare configuration: `cloudflare.config.ts`, or `wrangler.jsonc`, `wrangler.json`, or `wrangler.toml`.
2. Preserve the user's framework choice. Determine whether the task starts a new project, adapts an existing project, or changes only application code.
3. Read only the matching row below, its Workers framework guide, and the framework's own agent guidance.
4. Set up the project for its state:
   - **New project:** follow the framework's Workers guide for project creation. The guides currently create the project with C3 and configure it for Wrangler; this is an exception to the `cloudflare` skill's default of `cf` for new projects, because the `cf` docs do not yet cover creating framework projects. After creation, the project has Wrangler configuration, so the next bullet applies.
   - **Existing project with Wrangler configuration:** keep Wrangler and load the `wrangler` skill. Follow the framework guide for adapter and configuration changes. Do not run `cf init .`, `cf dev`, `cf build`, or `cf deploy` in it.
   - **Existing project with no Cloudflare configuration:** use `cf`, which detects supported frameworks and configures them; see [Start from an existing project](https://developers.cloudflare.com/cf/get-started/first-worker/index.md#start-from-an-existing-project) and the `cf-cli` skill. Detection does not mean the project builds. If the build fails or the framework is not supported, follow the framework guide's manual setup.
5. Change only the adapter, runtime, build, and deployment configuration the integration requires. Inspect generated package scripts, run the framework's checks and build, then verify the Worker locally before deployment.

| Framework | Workers setup | Official upstream agent guidance |
| --- | --- | --- |
| Next.js | Load the `nextjs-on-cloudflare` skill. | Listed in that skill. |
| TanStack Start | Follow the [Workers guide](https://developers.cloudflare.com/workers/framework-guides/web-apps/tanstack-start/index.md), which uses the Cloudflare Vite plugin. Distinguish Start from standalone TanStack Router. | Use [TanStack Intent](https://tanstack.com/intent/latest/docs/getting-started/quick-start-consumers) to discover and load installed package skills, including [Start's deployment guidance](https://github.com/TanStack/router/blob/main/packages/start-client-core/skills/start-core/deployment/SKILL.md). |
| React Router | Identify Framework, Data, or Declarative mode. Follow the [Workers guide](https://developers.cloudflare.com/workers/framework-guides/web-apps/react-router/index.md) for full-stack setup. SPA mode is not supported with the Cloudflare Vite plugin, and prerendering has version requirements; check the guide before choosing either. | Load the official [React Router skill](https://github.com/remix-run/react-router/blob/main/.agents/skills/react-router/SKILL.md), its matching mode reference, and installed package docs when available. |
| SvelteKit | Follow the [Workers guide](https://developers.cloudflare.com/workers/framework-guides/web-apps/sveltekit/index.md), which uses `@sveltejs/adapter-cloudflare`. | Use [Svelte's official skills](https://svelte.dev/docs/ai/skills) and [AI setup guidance](https://svelte.dev/docs/ai/instructions). |
| Hono | Choose an API-only Worker or a frontend plus API. The [Cloudflare guide](https://developers.cloudflare.com/workers/framework-guides/web-apps/more-web-frameworks/hono/index.md) covers Hono with a React SPA; use [Hono's Workers guide](https://hono.dev/docs/getting-started/cloudflare-workers) for an API-only app. | Load the application skill from [honojs/skills](https://github.com/honojs/skills). |
| Astro | Distinguish fully prerendered output from on-demand rendering: a static site deploys as static assets, and on-demand rendering uses `@astrojs/cloudflare`. Follow the [Workers guide](https://developers.cloudflare.com/workers/framework-guides/web-apps/astro/index.md). | Use Astro's [official AI guidance and docs MCP](https://docs.astro.build/en/guides/build-with-ai/). |
| Nuxt | Follow the [Workers guide](https://developers.cloudflare.com/workers/framework-guides/web-apps/more-web-frameworks/nuxt/index.md) for the current Nitro integration and bindings. | Use the [Nuxt docs MCP](https://nuxt.com/docs/4.x/guide/ai/mcp); load the [Nuxt UI skill](https://ui.nuxt.com/getting-started/ai/mcp) only when using Nuxt UI. |
| React or Vue SPA | Follow the [React + Vite](https://developers.cloudflare.com/workers/framework-guides/web-apps/react/index.md) or [Vue](https://developers.cloudflare.com/workers/framework-guides/web-apps/vue/index.md) Workers guide. Distinguish a client-only SPA from a full-stack framework. | Use the chosen framework's official guidance for application development. |

For other frameworks, start from the [framework guides index](https://developers.cloudflare.com/workers/framework-guides/index.md).

## 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 Cloud: AWS, Azure, GCP →

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 cloudflare-app-bootstrap cloudflare-app-bootstrap — a skill for Claude Code that gets a Cloudflare Workers app to a working local request by connecting bindings and secrets. CX Codex +1 8,000installs 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