CodeQL, Semgrep and SARIF static-analysis toolkit from Trail of Bits: taint tracking, fast pattern scans and merged, deduplicated security findings for coding agents.
Next.js on CloudflareSkill
Summary
Cloudflare's routing skill for Next.js on Workers — sends the agent to vinext, the Vite-based Next.js runtime Cloudflare now recommends ahead of OpenNext.
Features
- Settles the vinext vs OpenNext choice before code is written
- Installs and defers to the upstream vinext skills via npx skills add
- Separate routes for new projects, migrations and deployment
- Preserves existing OpenNext setups during unrelated maintenance
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Description
Deploying Next.js to Cloudflare Workers has had two competing answers, and an agent that picks the wrong one writes a build pipeline the team then has to unpick. This official Cloudflare skill exists to settle that choice before any code is written.
Its guidance is direct: use vinext for new Next.js projects on Workers, matching the default in Cloudflare's own Next.js framework guide. vinext reimplements the Next.js API surface on top of Vite — App Router, Pages Router, React Server Components and the supported next/* imports — while giving you Vite's fast HMR, native ESM and plugin ecosystem. Because it runs locally in workerd, the dev server behaves like production and Cloudflare bindings are available throughout.
The skill is deliberately thin on API detail. Rather than duplicating documentation that ages badly, it routes to the skills maintained inside the vinext repository, installing them with npx skills add cloudflare/vinext when they are missing, then following the applicable upstream SKILL.md. Three paths are mapped explicitly: a new project via create-vinext-app with the Cloudflare target; an existing Next.js app through the upstream migrate-to-vinext skill and its compatibility check; and development and deployment through vinext's own workflow.
It also encodes the restraint that matters on a real codebase — existing OpenNext setups are preserved during unrelated maintenance, and an explicit user choice wins over the default. Useful for any team standing up Next.js on Workers, or weighing a migration off OpenNext. Apache-2.0.
Related Skills
Microsoft's official Playwright skill — drives a real browser from the command line using accessibility snapshots and element refs, and plans, generates and heals Playwright tests.
Google's official agent skill for writing production Maps Platform code — grounded in freshly fetched docs, with a demo key path that needs no billing account.
Railway's official agent skill: create projects, provision databases and buckets, deploy, manage variables and domains, and read build failures back — from the CLI, API or MCP server.