vinext-vite-nextjs — Claude Code skill: what it does, how to install
Guides your AI assistant through running Next.js codebases on Vite and deploying them to Cloudflare Workers.
npx skills add reason-machines/trending-skills --skill vinext-vite-nextjs -a claude-codeWhat vinext-vite-nextjs does
This skill equips coding assistants with instructions for vinext. The plugin re-creates the public surface of Next.js on top of Vite, aiming for around 94% API coverage. It accommodates SSR, standard next/* imports, and both directory structures: pages/ and app/.
Migration avoids breaking current workflows: Next.js still functions alongside Vite. Simple setups read next.config.js directly without an extra config file. However, App Router setups strictly demand @vitejs/plugin-rsc and react-server-dom-webpack.
Cloud deployment targets Cloudflare Workers out of the box via vinext deploy. Other cloud providers connect using Nitro presets configured inside vite.config.ts.
What it helps with
- switch an existing Next.js build over to Vite
- deploy a Next.js application to Cloudflare Workers
- verify code compatibility using
vinext check - configure Vite for React Server Components
Example prompts for the agent
- Help me transition this repository from Next.js to Vite using vinext
- Set up Cloudflare Workers deployment for our Next.js frontend
- Inspect this codebase for vinext compatibility and generate a Vite config
How to install vinext-vite-nextjs
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill vinext-vite-nextjs -a claude-code2Manually: put the files in place
~/.claude/skills/vinext-vite-nextjs/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/vinext-vite-nextjs/
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill vinext-vite-nextjs -a codex2Manually: put the files in place
.agents/skills/vinext-vite-nextjs/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill vinext-vite-nextjs -a cursor2Manually: put the files in place
.cursor/skills/vinext-vite-nextjs/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install reason-machines/trending-skills vinext-vite-nextjs2Manually: put the files in place
.github/skills/vinext-vite-nextjs/SKILL.md1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill vinext-vite-nextjs -a gemini-cli2Platform CLI
gemini skills install https://github.com/reason-machines/trending-skills --path skills/vinext-vite-nextjsManually: put the files in place
.devin/skills/vinext-vite-nextjs/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill vinext-vite-nextjs -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about vinext-vite-nextjs
How do I install vinext-vite-nextjs in Claude Code?
Run npx skills add reason-machines/trending-skills --skill vinext-vite-nextjs -a claude-code. The skill file will be created at ~/.claude/skills/vinext-vite-nextjs/SKILL.md.
What does vinext-vite-nextjs do?
It instructs AI coding tools on migrating Next.js applications to Vite via the vinext plugin. The setup preserves routing, server components, and public Next.js APIs.
Does running vinext migration break standard Next.js builds?
No, the migration process is non-destructive. Next.js remains fully functional alongside Vite because the initialization only adds complementary scripts and dependencies.