migrate-to-vinext
Skill by cloudflare
Migrates Next.js projects to vinext, a Vite-based reimplementation of the Next.js API. Intended for developers who are asked to move an existing Next.js project to vinext.
Install migrate-to-vinext
Built from the published package, never by AI.
git clone --depth 1 https://github.com/cloudflare/vinext /tmp/vinext && mkdir -p ~/.claude/skills && cp -r /tmp/vinext/.agents/skills/migrate-to-vinext ~/.claude/skills/migrate-to-vinextRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/cloudflare/vinext /tmp/vinext && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/vinext/.agents/skills/migrate-to-vinext ~/.gemini/antigravity-cli/skills/migrate-to-vinextAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The migrate-to-vinext skill guides an AI assistant through moving a Next.js project to vinext, which reimplements the Next.js API on Vite. According to the source, existing app/, pages/, and next.config.js files keep working as-is, so migration is mainly a package swap, config generation, and ESM conversion. The skill first confirms that next is listed in package.json and detects the package manager from the lockfile.
The skill runs a compatibility scan with vinext check and then offers an automated path with vinext init or a manual path. Cloudflare Workers is supported natively, and other platforms are handled through Nitro. The source says the migration is non-destructive, so the existing Next.js setup keeps working while the user tests with the dev:vinext script. It is aimed at developers who want to migrate, convert, or switch from Next.js to vinext.
Written from the project's SKILL.md and checked against it.
What it can do
- Compatibility scanRuns vinext check and produces a scored report of compatibility issues.
- Automated migrationUses vinext init to install dependencies, generate config and convert the project to ESM.
- Package replacementReplaces next with vinext and installs vite, with manual steps as a fallback.
- Vite config generationGenerates vite.config.ts with variants for App Router, Pages Router and deployment target.
- ESM conversionAdds "type": "module" to package.json and renames CJS config files to .cjs.
- Cloudflare Workers setupGenerates cloudflare.config.ts and deploy scripts, with cache and image options.
- Node setupAdds dev, build and start scripts for a Node platform target.
What you need
- A Next.js project with next in dependencies or devDependencies
- npm, pnpm, yarn or bun, detected from the lockfile
- A deployment target: Cloudflare Workers or Node
Try asking
- Migrate this Next.js project to vinext
- Run a vinext compatibility check on my project
- Set up vinext for Cloudflare Workers with no caching
Good to know
- Stops if next is not found in package.json
- Cloudflare init stops if a Wrangler config file exists, because it does not migrate it
- Agents must pass the cache and image flags, since init does not choose them
- The legacy Wrangler setup is outside the scope of this skill
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/migrate-to-vinext/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md19 KB -
references/compatibility.md7 KB -
references/config-examples.md7 KB -
references/troubleshooting.md8 KB
Alternatives to migrate-to-vinext
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
migrate-to-vinext: common questions
Does migrating to vinext require changing application code?
The source says no changes to application code are required. Migration is a package swap, config generation and ESM conversion.
Which deployment targets does this skill cover?
Cloudflare Workers is supported natively. Other platforms are handled via Nitro, and Node is available as a platform option with vinext init.
Will my existing Next.js setup stop working?
The source says the migration is non-destructive, so the existing Next.js setup continues to work alongside vinext.
How do I install migrate-to-vinext?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is migrate-to-vinext free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is migrate-to-vinext safe to use?
It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to migrate-to-vinext?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
