How-to

Build with a coding agent

Hand a nuxt-backend app to a coding agent: the one-paste install, the skills it reads first, keeping them on the installed version, and how the agent checks its own work.

A coding agent such as Claude Code, Codex, Cursor or Copilot builds a nuxt-backend app well once it knows the app's rules: the neutral names, the scaffold contract, the CLI and the env. The package hands it those rules, and the tools to check its own work.

  • What powers it natively: the skills CLI, which installs skills where most agents read them (.agents/skills/), and the Model Context Protocol (MCP), which any agent client speaks.
  • What the package adds: agent skills shipped inside the package and generated from its code, the agent files init writes, their checks in doctor, and these docs as Markdown and over MCP.

What an agent gets

PieceWhat it gives the agentHow it arrivesPage
Agent skillsA core skill with the ground rules, and a task skill per part of the appInside the package, copied into the project by initAgent skills
Agent filesAn AGENTS.md section, an MCP server in .mcp.json, and the skill copiesnpx nuxt-backend initAgent files
Docs as MarkdownEvery page as a Markdown twin, /llms.txt, /sitemap.md, the public names and the rename mapThis siteDocs for agents
Docs MCPSearch, every page, and lookups of findings, env names, composables and componentshttps://mcp.nuxt-backend.dev/mcp, with no sign-inDocs MCP
Developer MCP serverdoctor, the capabilities, the env, the catalog and the functions, the docs, and the Convex, Polar, Resend and Vercel consolesA command of the CLI, which init wires into .mcp.jsonDeveloper MCP server
Agent pluginThe skills and both MCP servers in one installClaude Code's plugin managerAgent plugin

The Feature map lists each piece with its status.

Install through the agent

The Installation page holds the prompt: paste it into your agent, or open it in one from the links under it. The agent installs the package's core skill with the skills CLI, then follows the skill's install guide:

  • it adds the package to the app you have, or creates one from the starter;
  • it starts the app on a local deployment that needs no account, and checks that the app serves /login;
  • it asks before it logs in to Convex, changes anything in your accounts or puts a provider key in the project, and it never prints or replaces AUTH_SECRET;
  • init then adds the task skills of the installed version beside the core, and the other agent files.

The agent skills

The guidance comes as one small core skill and a task skill per feature. The core holds the rules every task follows and routes to the task skill a change needs; each task skill lists its docs pages and the API each one uses. They ship in the package, so every app already has them at node_modules/nuxt-backend/skills/, for exactly the version installed.

Agent skills lists every skill, what each holds in references/, and how to install them outside an app.

Keep them on your version

An app's skills should describe the version it runs, not the newest one:

  • The AGENTS.md section init writes points agents at the skills inside node_modules, the core first, and names the installed version.
  • After npx nuxt-backend upgrade, run npx nuxt-backend init --agents: it rewrites the section for the new version and refreshes the skill copies. The upgrade's own next steps list it.
  • doctor warns with agent-files while the section names another version, or a skill copy differs from the installed one.
  • Skills you installed with the skills CLI are recorded in the project's skills-lock.json and left to that CLI: reinstall the installed version's with npx skills add ./node_modules/nuxt-backend/skills --skill '*' -y.

Let the agent check its work

  • npx nuxt-backend doctor --json prints every finding with its fix, as one JSON document (its schema). Each finding's short link, /d/<id>, opens its entry on Diagnostics.
  • Sign in without a mailbox. On a dev deployment, an agent requests a code for [email protected] and reads it with npx nuxt-backend inbox [email protected] --json (Read test mail in the dev inbox).
  • Run the tests. The function and page tests need no deployment, so an agent runs them after every change (Test your app).
  • Read the deployment, not a guess. The developer MCP server init adds to .mcp.json answers doctor, each capability's state and the env names, reads the tables, functions and logs through Convex's own tools, and reads your billing, email and hosting accounts.
  • Read the docs as Markdown: /llms.txt, a twin of every page, or the docs MCP.

The agent plugin installs the developer MCP server, the docs MCP and the skills in Claude Code in one step.

How an agent builds an app

  1. It installs the package from one prompt, and runs the app on a dev deployment.
  2. It reads the rules first. The AGENTS.md section points it at the core skill inside node_modules, and the core names the task skill each change needs.
  3. It looks things up instead of guessing. A page's Markdown twin, the docs MCP, or the public-surface manifest tells it whether a name exists before it writes one.
  4. It checks its own work with doctor --json, the tests and the dev inbox.
  5. It asks before it touches your accounts. The skills and the developer server confirm with you before anything logs in to a provider, writes to it, or puts a key in the project.

In this section

Agent skills

The core skill and the task skills it routes to, what each holds, and how to install them outside an app.

Agent files

What init writes for agents: the AGENTS.md section, .mcp.json and the skill copies.

Developer MCP server

One server for your project's state, the docs, and the Convex, Polar, Resend and Vercel consoles, with writes confirmed by you.

Docs for agents

Every page as Markdown, /llms.txt, /sitemap.md, the skills, the public-surface manifest and the rename map.

Docs MCP

These docs as read-only MCP tools at mcp.nuxt-backend.dev, with no sign-in.

Agent plugin

The skills and both MCP servers in one install for Claude Code.

MCP endpoint for your users' agents

Why the package ships no /mcp for your users' agents, and what to build until a later release brings it.

Not covered here

  • AI features your app sells. Metered model calls, jobs and chat are in AI.
  • Agents that use your app as a person. An MCP endpoint your users' agents sign in to waits for a later release: see the Roadmap.
  • API keys. The package issues none (Principles).
  • The docs site's Ask AI. It answers readers of these docs from the docs MCP, and shares no key, model or credits with your app.