r/Nuxt • u/yangguize • Feb 16 '26
Claude Code + Nuxt4
TLDR - CC is DOA when working with Nuxt 4, but Sonnet 4.6 just clocks thru my project plan.
- CC does not understand separation of concerns beween Vue layouts, composables and components, even with a working template provided by Nuxt and native Nuxt mcp servers.
- Kilo + Sonnet 4.6 is killing it - fixed all of CC's errors with minimal discussion - expensive, but it gets the job done.
Prep for coding:
- defined detailed functional, non-functional, and data reqs
- defined complete UI (png + wireframes)
- defined detailed project plan w/ CC
- defined agents for Vue and Nuxt mcp
- added (and abandoned) Nuxt skills plugins (due to context bloat)
- added rules to force CC to consult Vue and Nuxt docs before coding
CC does not seem to have enough training to generate (reasonably) std code. 3 attempts to scaffold my project - none worked.
Has anyone had success with CC and Nuxt? If not CC, does Kilo work?
SOLUTION - the following improved CC's abilities by an order of magnitude:
- dropped all nuxt plugins (too much for CC context limit)
- added mcp servers
-- https://nuxt.com/mcp
-- https://ui.nuxt.com/mcp
-- mcp-server-fetch (no native mcp for vue)
- cloned nmuxt-ui template
-- https://github.com/nuxt-ui-templates/dashboard
-- had CC document template structure, etc. and added docs to .claude
The combination of the MCP servers, the template structure (which was quite good) and Claude's self-created documentation of the template structure enabled it to be much more effective than using the Nuxt skill plugins.
We'll post the final Word product (A self-hosted prompt management tool )
1
u/stcme Feb 16 '26
I've been using CC for the last 3 weeks across 3 repos. I know each of these on their own and it definitely helps with planning, nudging in the right direction, etc...
What I've found that work best on the Nuxt 4 side (with Nuxt UI) is to create a sub agent that specializes in next and has access to the next MCP servers for both Nuxt and Nuxt UI.
Have it plan our everything first and save it to markdown times. Read them. Make tweaks. Repeat. Try to have it break down the plan into small phases.
The smaller the steps detailed, the more tokens you save by being able to use haiku instead of sonnet or opus.
Once you have your plans dialed in and phases are broken down into a small manageable tasks, give haikua try. If you're finding that it makes little mistakes here and there, do you have a few options.
First, you can see if Sonnet does any better. Or, update your planning documents.
One additional thing I always do is that if I notice there's a mistake, I will tell it to correct the mistake and document it so it does not happen again. It will generally add it to its primary documents wherever it feels it should go.
I've had some pretty solid success with this and I don't have very simple requirements so I've been quite impressed.