Getting Real Work Out of AI Agents on a Vue Codebase

Getting Real Work Out of AI Agents on a Vue Codebase

Boost Vue and Nuxt AI agents by equipping them with focused skills, docs-first research, live app context when needed, parallel Git worktrees, and automated testing and type-checking feedback.

Reza Baar

Reza Baar

December 1, 2026

Everyone has an agent in their editor now. The gap isn't access anymore, it's technique. The developers shipping fast with Claude Code, Codex, and Cursor aren't writing better prompts; they're engineering the context the agent runs in. Here's what that looks like on a Vue and Nuxt codebase in 2026.

Skills are the new conventions file

The plain AGENTS.md / CLAUDE.md rules file was last year's move. The sharper pattern is Agent Skills: a folder with a SKILL.md that holds focused instructions, API references, and templates, loaded progressively instead of dumped into context all at once. It's an open standard, so the same skill works across Claude Code, Cursor, Copilot, and Windsurf.

The gem here is that you don't write the Vue ones yourself.

  • Install Anthony Fu's skills. antfu/skills covers vue, nuxt, pinia, vite, vitest, vueuse-functions, plus vue-best-practices, vue-router-best-practices, and vue-testing-best-practices. They're generated from the official docs via git submodules, so they track the real API instead of a model's stale memory.
npx skills add antfu/skills --skill='*'
# or target one agent
npx skills add antfu/skills --skill='vue' --agent claude-code
  • Add the Nuxt UI skill if you use it: npx skills add nuxt/ui. It knows the components, semantic-color theming, useToast / useOverlay, and Standard Schema form validation, and loads reference files on demand.
  • Then layer your team's skill on top. One focused SKILL.md per concern (API route conventions, testing, your SFC tag order) in .claude/skills/, version-controlled like any other code. Published skills for the framework, a thin skill for your house style. That stack alone outclasses any rules file.

Prefer a research subagent over a docs MCP

This is the counterintuitive one. The instinct is to bolt a documentation MCP onto your agent. The sharper move is often to skip it.

MCP carries a context tax: every tool definition loads upfront, and every intermediate result passes back through the model. For docs, you can get the same result for a fraction of the tokens with a research subagent:

  • Drop an agent definition in .claude/agents whose job is "documentation-first."
  • It fetches the library's llms.txt, finds the relevant pages, and answers from current docs.
  • It runs in its own context window, so your main session stays clean, and only its short description sits in the parent context, not a full tool schema. Claude Code's own guide agent works exactly this way, fetching a docs sitemap rather than trusting training data. For a Vue or Nuxt question, a subagent reading the official llms.txt beats a general model guessing, and it beats a heavyweight MCP on token cost. Reach for MCP when you need live state, which is the next tip.

When MCP earns its place: live app state

MCP shines where static docs can't help: letting an agent see your running app. vite-plugin-vue-mcp (by webfansplz) exposes your live component tree, component state, routes, and Pinia stores to the agent over MCP.

That changes the kind of bug it can fix. Instead of describing a reactivity problem, you let the agent read the actual component state and router at runtime, reason against reality, and propose a fix. Debugging blind becomes debugging with eyes.

Run agents in parallel with git worktrees

The single biggest throughput unlock this year, and most people still run one agent at a time. Git worktrees let you check out multiple branches into separate directories from one repo, so you can run several agents at once, each isolated in its own worktree, with no file collisions.

git worktree add ../app-feature-a feature-a
git worktree add ../app-bugfix-b bugfix-b
# point one agent at each directory

The mindset shift: you stop babysitting one agent and start reviewing the output of three. One scaffolds a feature, one writes tests, one chases a bug, in parallel, each on its own branch. You become the reviewer and integrator, not the typist.

Let the loop close itself

An agent is only as good as the signal it gets back. On a Vue project, the best reviewers are already in your toolchain, so give the agent access to them:

  • vue-tsc is a brutal, honest reviewer. An agent that runs it fixes its own type errors before you see them.
  • Vitest in run mode lets it verify behavior, not just vibes. Point it at your test command.
  • Your dev server and linter catch the rest. An agent that can run npm run dev and read the errors self-corrects. Scope each run to one feature or fix with a clear done-state. "Add the invoice filter and make vue-tsc and the tests pass" closes its own loop. "Improve the dashboard" never finishes.

Vue-specific instincts worth encoding

These are the patterns the good skills enforce, and the ones worth putting in your own:

  • useFetch in setup, $fetch only in event handlers and form submits. This one quietly prevents double-fetching.
  • Check VueUse before writing a composable. useMouse, useLocalStorage, and friends already exist and are better than a model's first draft.
  • shallowRef when you don't need deep reactivity, especially for large structures.
  • The newer APIs are fair game now: useTemplateRef and onWatcherCleanup are the current idioms, so tell your agent to use them.
  • Pinia for shared state, never Vuex.

The cheatcode

If you take one thing: stop prompting from scratch, and start shipping the agent its context. Published framework skills, a thin team skill, a docs-first research subagent, and runtime state over MCP when you need it. That setup is the difference between an agent that invents meh Vue and one that writes the Vue your team actually ships.

Key Takeaways

  • Replace the rules file with Agent Skills; install antfu/skills for Vue/Nuxt and layer a thin team skill on top
  • Favor a docs-first research subagent over a documentation MCP to dodge the context tax
  • Use MCP where it's irreplaceable: vite-plugin-vue-mcp for live component, state, route, and Pinia inspection
  • Run multiple agents in parallel with git worktrees and shift into a reviewer role
  • Give agents vue-tsc, Vitest, and your dev server so they close their own feedback loop
  • Encode the real idioms: useFetch vs $fetch, VueUse first, shallowRef, useTemplateRef, onWatcherCleanup

Conclusion

The leverage in 2026 isn't the model, it's the harness around it. Curated skills, a lean research subagent, runtime MCP, parallel worktrees, and a tight feedback loop turn an agent from a clever autocomplete into a teammate that ships Vue to your standard. I’d set the context first, then let it run.

I hope this post has been helpful. Happy coding!

Ready to prove your Nuxt skills?

Get certified in Nuxt

More Nuxt articles

Keep learning Nuxt. Then get certified when you are ready.