Official agent skill

Nextjs On Cloudflare

by cloudflare in cloudflare/skills

Build, migrate, and deploy Next.js apps on Cloudflare Workers with vinext.

OfficialApache-2.0Auto-check passedDevOps & Cloud

Install Nextjs On Cloudflare

skills CLI
$ npx skills add cloudflare/skills --skill nextjs-on-cloudflare -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install cloudflare/skills nextjs-on-cloudflare --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/cloudflare/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/nextjs-on-cloudflare .claude/skills/nextjs-on-cloudflare && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
nextjs-on-cloudflare
GitHub stars
3k
Used in
2 other repos
Token cost
~678 tokens
SKILL.md length
233 words
Files
1
Skills in repo
16
Repo updated
First seen
Licence
Apache-2.0

At a glance

Build, migrate, and deploy Next.js apps on Cloudflare Workers with vinext.

  • Starting a Next.js project on Cloudflare
  • SKILL.md covers Why vinext and Use the upstream workflow
  • Calls npx
  • Moving an existing app to Workers

What it does

Nextjs On Cloudflare is an agent skill from cloudflare/skills, published by the product's own GitHub organization. Build, migrate, and deploy Next.js apps on Cloudflare Workers with vinext. Use when starting a Next.js project on Cloudflare, moving an existing app to Workers, choosing between vinext and OpenNext, or setting up vinext for Workers. For setup, migration, or deployment, install vinext's upstream skills with npx skills add cloudflare/vinext if missing, then read and follow the applicable skill and docs.

Its SKILL.md is about 680 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in DevOps & Cloud, covering Deployment. It works with Cloudflare, Next.js, Cloudflare Workers and Vite. The repository describes itself as: Skills for teaching agents how to build on Cloudflare. The licence is Apache-2.0.

When your agent uses it

  • Starting a Next.js project on Cloudflare
  • Moving an existing app to Workers
  • Choosing between vinext and OpenNext
  • Setting up vinext for Workers

Example prompts

  • “/nextjs-on-cloudflare”

Requirements

  • Node.js

What it can do on your machine

Read from SKILL.md and the folder at commit 41e0d19. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com
    • developers.cloudflare.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Nextjs On Cloudflare loads about 678 tokens when it runs. Until then it costs about 107 tokens; SKILL.md has 233 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~107
When it runs · the whole SKILL.md, loaded when a task matches
~678

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from cloudflare/skills at commit 41e0d19, republished under its Apache-2.0 licence (© cloudflare). 233 words, ~678 tokens.

Download SKILL.mdSave it as .claude/skills/nextjs-on-cloudflare/SKILL.md (or your agent's skills folder).
name
nextjs-on-cloudflare
description
Build, migrate, and deploy Next.js apps on Cloudflare Workers with vinext. Use when starting a Next.js project on Cloudflare, moving an existing app to Workers, choosing between vinext and OpenNext, or setting up vinext for Workers. For setup, migration, or deployment, install vinext's upstream skills with `npx skills add cloudflare/vinext` if missing, then read and follow the applicable skill and docs.

Next.js on Cloudflare

Use vinext rather than OpenNext for new Next.js projects on Cloudflare Workers. This is the default in the Cloudflare Next.js guide. Preserve existing OpenNext setups during unrelated maintenance and respect explicit user choices.

Why vinext

vinext reimplements the Next.js API surface on Vite:

  • Familiar Next.js development: App Router, Pages Router, React Server Components, and supported next/* imports.
  • Vite tooling: fast HMR, native ESM, and the Vite plugin ecosystem.
  • Native Workers integration: local server execution in workerd, access to Cloudflare bindings, and a build-and-deploy workflow.
  • Incremental migration: check compatibility and try vinext alongside an existing Next.js setup.

Use the upstream workflow

Before setup, migration, or deployment, check whether the skills maintained in vinext are available. If missing, install them:

sh
npx skills add cloudflare/vinext

Then read and follow the applicable upstream SKILL.md and its relevant references. Use the current vinext docs for workflows the skills do not cover:

  • New project: follow vinext's new-project setup using create-vinext-app with the Cloudflare target. The upstream migration skill requires an existing Next.js project; do not apply it to an empty directory.
  • Existing Next.js project: load and follow the upstream migrate-to-vinext skill, including its compatibility check and relevant references. Select Cloudflare as the deployment target.
  • Development and deployment: follow the current Workers integration docs.

If installation is unavailable, read the linked upstream SKILL.md and relevant references directly. Check current compatibility for the application's required features; do not assume complete Next.js parity.

© cloudflare, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/nextjs-on-cloudflare of cloudflare/skills.

Open the folder on GitHubat commit 41e0d19

Used in 2 other repositories

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in cloudflare/skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Nextjs On Cloudflare next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Nextjs On Cloudflare compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Nextjs On Cloudflare this skillcloudflare/skills3k2 repos~678Automated safety check: PassApache-2.0
Prepare Cloudflare Production DeploymentLubomirGeorgiev/cloudflare-workers-nextjs-saas-template786—~5.9kAutomated safety check: NotesMIT
Cloudflare Workers CD Rollbackmizchi/skills356—~1.2kAutomated safety check: NotesNone
Cloudflare Worker Builderinfometa/workbuddyskills342—~1kAutomated safety check: PassNone
Deploy Agentsundial-org/awesome-openclaw-skills663—~1.6kAutomated safety check: PassNone
Convex Self Hostingwaynesutton/markdown-site628—~1.4kAutomated safety check: PassMIT

Similar skills

  • Prepare Cloudflare Production Deployment

    LubomirGeorgiev/cloudflare-workers-nextjs-saas-template

    Source-of-truth runbook for preparing this Vinext Cloudflare Workers SaaS template for production deployment.

    786 GitHub stars~5.9k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • GitHub Actions CD for Cloudflare Workers through cf with automatic traffic rollback on smoke failure, including JSON deployment snapshots, D1 migrations and prebuilt artifacts.

    356 GitHub stars~1.2k tokensUpdated 5 days ago
    DevOps & CloudAuto-check: notes
  • Cloudflare Worker Builder

    infometa/workbuddyskills

    Scaffold and deploy Cloudflare Workers with Hono routing, Vite plugin, and Static Assets.

    342 GitHub stars~1k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Deploy Agent

    sundial-org/awesome-openclaw-skills

    Multi-step deployment agent for full-stack apps. An agent skill from sundial-org/awesome-openclaw-skills.

    663 GitHub stars~1.6k tokensUpdated 7 mo ago
    DevOps & CloudAuto-check passed
  • Convex Self Hosting

    waynesutton/markdown-site

    Integrate Convex static self hosting into existing apps using the latest upstream instructions from get-convex/self-hosting every time.

    628 GitHub stars~1.4k tokensUpdated 4 mo ago
    DevOps & CloudAuto-check passed
  • Lunora Deploy

    anolilab/lunora

    Deploys a Lunora app to Cloudflare. An agent skill from anolilab/lunora.

    283 GitHub stars~2.1k tokensUpdated today
    DevOps & CloudAuto-check passed

More from cloudflare/skills

All 16 skills in this repo
  • Turnstile Spin

    cloudflare/skills

    Official

    Set up, repair, or migrate to Cloudflare Turnstile bot verification in an existing frontend and backend, including server-side Siteverify.

    3k GitHub starsUsed in 4 repos~7.2k tokens
    Auto-check: notes
  • Agents SDK

    cloudflare/skills

    Official

    Build, debug, or review Cloudflare Agents SDK applications using the agents package.

    3k GitHub starsUsed in 2 repos~3k tokens
    Auto-check passed
  • Durable Objects

    cloudflare/skills

    Official

    Build, debug, or review Cloudflare Durable Objects code for persistent state and coordination.

    3k GitHub starsUsed in 2 repos~1.5k tokens
    Auto-check passed
  • Sandbox Next

    cloudflare/skills

    Official

    Build or maintain Cloudflare Sandbox apps on @cloudflare/sandbox@next (SDK 1.0 preview).

    3k GitHub starsUsed in 2 repos~1.7k tokens
    Auto-check passed
  • Cloudflare One Migrations

    cloudflare/skills

    Official

    Assess and plan migrations from existing VPN, SWG, or SASE platforms to Cloudflare One, including policy mapping, parity gaps, and rollout.

    3k GitHub starsUsed in 6 repos~3.1k tokens
    Auto-check passed
  • Workers Best Practices

    cloudflare/skills

    Official

    Cloudflare Workers best practices for production applications.

    3k GitHub starsUsed in 2 repos~1.4k tokens
    Auto-check passed

Categories

Questions about Nextjs On Cloudflare

What does Nextjs On Cloudflare do?

Build, migrate, and deploy Next.js apps on Cloudflare Workers with vinext. Nextjs On Cloudflare is an agent skill from cloudflare/skills, published by the product's own GitHub organization.js apps on Cloudflare Workers with vinext.

When should I use Nextjs On Cloudflare?

Nextjs On Cloudflare fits situations like: starting a Next.js project on Cloudflare; moving an existing app to Workers; choosing between vinext and OpenNext; setting up vinext for Workers.

How do I install Nextjs On Cloudflare in Claude Code?

Run `npx skills add cloudflare/skills --skill nextjs-on-cloudflare -a claude-code`. Or copy the skill folder (skills/nextjs-on-cloudflare in cloudflare/skills) into .claude/skills/nextjs-on-cloudflare in your project. Claude Code loads it when a task matches its description.

How do I install Nextjs On Cloudflare in Codex?

Run `npx skills add cloudflare/skills --skill nextjs-on-cloudflare -a codex`. Or copy the skill folder (skills/nextjs-on-cloudflare in cloudflare/skills) into .agents/skills/nextjs-on-cloudflare in your project. Codex loads it when a task matches its description.

Can I use Nextjs On Cloudflare in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cloudflare/skills --skill nextjs-on-cloudflare -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/nextjs-on-cloudflare, .gemini/skills/nextjs-on-cloudflare, .github/skills/nextjs-on-cloudflare and .opencode/skills/nextjs-on-cloudflare in your project.

What does Nextjs On Cloudflare need to run?

Going by SKILL.md and its folder, Nextjs On Cloudflare needs the command-line tools its instructions call (npx). Our summary lists: Node.js.

Does Nextjs On Cloudflare access the network?

SKILL.md names 2 domains. As links in the text: github.com and developers.cloudflare.com. This is read from the text; nothing was executed.

Is Nextjs On Cloudflare safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Nextjs On Cloudflare use?

Nextjs On Cloudflare is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Nextjs On Cloudflare use?

About 678 tokens (SKILL.md is roughly 2.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Nextjs On Cloudflare?

Skills that share tags, products or a category with Nextjs On Cloudflare: Prepare Cloudflare Production Deployment (LubomirGeorgiev/cloudflare-workers-nextjs-saas-template, 786 stars), Cloudflare Workers CD Rollback (mizchi/skills, 356 stars), Cloudflare Worker Builder (infometa/workbuddyskills, 342 stars) and Deploy Agent (sundial-org/awesome-openclaw-skills, 663 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Nextjs On Cloudflare?

cloudflare (a GitHub organization, an official publisher) maintains it in cloudflare/skills, which has 2,999 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on October 1, 2026.

Source: cloudflare/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.