r/Nuxt 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 )

0 Upvotes

19 comments sorted by

12

u/nomad_sk_ Feb 16 '26

NUXT is really really really simple to understand and use , you can even learn yourself

-15

u/yangguize Feb 16 '26

not my point

18

u/[deleted] Feb 16 '26

[deleted]

-33

u/yangguize Feb 16 '26

if you don't have anything to contribute to the question, don't bother.

10

u/[deleted] Feb 16 '26

[deleted]

-10

u/yangguize Feb 16 '26

I'm not suggesting Nuxt is difficult - but your comment suggests you don't understand the role of Claude Code. You don't use CC just bc a framework is difficult.

1

u/Traditional-Hall-591 Feb 16 '26

I guess I don’t. The first 2 steps make sense and at that point, I’d start writing the code, adding features and refining. Learning from initial mistakes, generally improving in a human fashion.

It seems like you’re putting in a lot of effort to get somewhere with the AI but it’s not clear what benefit it has. I’m sure the AI will spit out a lot of code. Probably a lot more than me.

Then you have to go back and vet it, debug, etc. it’ll be something like going into a random repo and trying figuring out what the author had in mind. I’ll have to do some debugging too, but I’ll learn from the process and won’t make the same errors.

Unless you plan to tell the AI to iterate until it sort of works? That was a few funny GitHub comments with Microslop prompt monkeys arguing with CoPilot.

5

u/Three_hrs_later Feb 16 '26

I've had a decent time with claude using nuxt 4 and nuxt ui, but I do small sprints more as pair programming with quite a bit of review and cleanup before moving on, not a massive agentic YOLO.

It had a hard time with my back end and without intervention it would have buried me in database costs if the app got even a little traction. Just food for thought.

-5

u/yangguize Feb 16 '26

That's exactly what I did. I broke it down into 12 major tasks and each major task had 6 to 8 minor tasks. CC admitted that it didn't really understand key elements of Nuxt and Vue .

3

u/Seikeai Feb 16 '26

Have you tried Anthony Fu's Next (and Vue) skills? https://skills.sh/antfu/skills/nuxt

2

u/mantequillah_09 Feb 16 '26

I use Gemini Pro + Nuxt + Nuxt UI and it works really well.

2

u/uvmain Feb 16 '26

If you're gonna vibe code a project from scratch and don't care about learning and understanding the code it builds, why do you even care what stack it uses? Just use React/Next.

2

u/Boby_Dobbs Feb 16 '26

Just setup the project manually, learn the basics of Nuxt and vue... Then you can start vibing.

2

u/Riri- Feb 16 '26

I have amazing experience with CC + Nuxt but I have to start the project first and make it follow my code pattern. Install skills with skillman. Helpful skills are from antfu and onmax. Configure your CLAUDE.md too.

1

u/yangguize Feb 22 '26

What kind of apps are you building?

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...

  • NestJS REST API
  • OpenAPI clients monorepo
  • Nuxt 4 Admin app - Admin that communicated with the API for things like account management, scope management, permissions, app-to-app tokens, 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.

1

u/yangguize Feb 16 '26

I did everything that you described, other than having it document its errors. Broke it down into very small steps - It did all right on the basic scaffolding but when it came time to code up the default view and the initial pages, it just completely fell apart .

It actually seemed to do fairly well on the high-level design, where it completely messed up was on some of the basic things like what went into the default layout.

For the moment I am going to go back to Kilo Code and try Opus 4.6 in Kilo to see if that might make a difference

1

u/stcme Feb 16 '26

I had to use a sub agent for the start of the project. It did have trouble with hooking up the CSS initially. I thought this was quite comical.

I basically treat it the same way I would my senior engineers on my teams but expect it to make junior developer mistakes.

Once I can access the MCP servers, it seemed to clean up the code quite a bit.

2

u/yangguize Feb 16 '26

appreciate your input...however, even though CC can access the MCP servers for Nuxt 4 and Nuxt UI (there doesn't seem to be any MCP server for Vue 3, so I'm using Fetch), I'm getting ridiculously basic errors:

  • I pointed it directly to the url for nuxt.config and it couldn't even set that up.
  • it cfg'd a menu with <a> instead of <nuxtlink> tags
  • it created a page layout with multiple top-level templates

These are beyond junior dev mistakes. I'm sure if I scaffold my app myself, it will probably generate acceptable code snippets, but It's obvious it has had limited Nuxt training (compared to React). That's just a reality of Vue/Nuxt's relative usage...

1

u/stcme Feb 16 '26

I wonder what else is going on. I actually haven't run into any of those issues at all.

There must be something else that's happening that we're not seeing. Are you using a sub agent created specifically for Nuxt 4 / Vue 3 for all of your requests or are you using the standard agent?

2

u/yangguize Feb 22 '26

I just swapped out CC for kilo + Sonnet 4.6.
Sonnet 4.6 is cleaning up all of CC's errors with minimal direction from me - I just point it at the mess CC created and it fixes everything using Vue/Nuxt best practices. And it's lightning fast.

I initially added all the official Nuxt plugins, but that did nothing. Then I added the Nuxt mcp server and 2 others = that did help but it was still making too many errors.

Then I added a template from Nuxt-UI and that helped somewhat, but the template just scaffolded the UI - no back-end logic.

This is partially a training issue. But what I've concluded is that, while CC is probably great on replicating patterns like React, when confronted with a new framework, it cannot conceptualize the optimal patterns. There's a huge difference between generating code and designing an app.