migrate-to-vinext
Skill by DanKE123abc
Migrates Next.js projects to vinext, a Vite-based reimplementation of the Next.js API. It is for developers who want to switch an existing Next.js app to vinext with a package swap, config generation and ESM conversion.
Install migrate-to-vinext
Built from the published package, never by AI.
git clone --depth 1 https://github.com/DanKE123abc/NoUnityCN /tmp/NoUnityCN && mkdir -p ~/.claude/skills && cp -r /tmp/NoUnityCN/.claude/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/DanKE123abc/NoUnityCN /tmp/NoUnityCN && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/NoUnityCN/.claude/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
Migrate-to-vinext is an agent skill that moves a Next.js project to vinext, a Vite-based reimplementation of the Next.js API surface. The source says existing app/, pages/, and next.config.js files work as-is, so the migration is mainly a package swap, config generation, and ESM conversion. The skill first checks that next is listed in package.json and detects the package manager from the lockfile.
It offers an automated path through vinext init and a manual fallback covering packages, scripts, ESM, and vite.config.ts. For deployment, it covers vinext deploy to Cloudflare Workers and Nitro presets for other platforms such as Vercel and Netlify. It is aimed at developers who want to move an existing Next.js app to vinext.
Written from the project's SKILL.md and checked against it.
What it can do
- vinext checkScans the project for compatibility issues and produces a scored report.
- vinext initInstalls vite, generates a config, converts to ESM and adds dev and build scripts.
- Manual migrationReplaces next packages and updates next commands in package.json scripts.
- ESM conversionAdds type module to package.json and renames CJS config files to .cjs.
- Vite config generationGenerates a minimal vite.config.ts for the Pages or App Router.
- vinext deployBuilds and deploys to Cloudflare Workers, generating wrangler.jsonc if missing.
- Nitro deploymentAdds the Nitro Vite plugin for platforms such as Vercel, Netlify and Deno Deploy.
- Cloudflare bindingsAccesses D1, R2, KV and other bindings through cloudflare:workers.
What you need
- A Next.js project with next in dependencies or devDependencies
- A lockfile for npm, pnpm, yarn or bun (npm is assumed when none exists)
- Cloudflare Workers, for the native deploy path
Try asking
- Check my Next.js project for vinext compatibility issues
- Migrate this Next.js app to vinext using vinext init
- Set up vinext deployment to Cloudflare Workers for this project
Good to know
- Domain-based i18n is not supported; path-prefix i18n works.
- next/jest is not supported; the source says to use Vitest instead.
- Route segment configs such as runtime and preferredRegion are ignored.
- next/image has no build-time optimization; remote images are handled via @unpic.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/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.md10 KB -
references/compatibility.md6 KB -
references/config-examples.md6 KB -
references/troubleshooting.md6 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
Do I need to change my application code to use vinext?
No. The source says vinext shims next/* imports, so app/, pages/ and application code need no rewrites.
Can a vinext app be deployed outside Cloudflare?
Yes. The source says other platforms are supported through Nitro, including Vercel, Netlify, AWS and Deno Deploy.
Should I delete next.config.js after migrating?
No, unless you replace it with next.config.ts or .mjs. The source says vinext reads it for redirects, rewrites, headers, basePath, i18n and env settings.
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 90 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.
