Build with a coding agent
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
initwrites, their checks indoctor, and these docs as Markdown and over MCP.
What an agent gets
| Piece | What it gives the agent | How it arrives | Page |
|---|---|---|---|
| Agent skills | A core skill with the ground rules, and a task skill per part of the app | Inside the package, copied into the project by init | Agent skills |
| Agent files | An AGENTS.md section, an MCP server in .mcp.json, and the skill copies | npx nuxt-backend init | Agent files |
| Docs as Markdown | Every page as a Markdown twin, /llms.txt, /sitemap.md, the public names and the rename map | This site | Docs for agents |
| Docs MCP | Search, every page, and lookups of findings, env names, composables and components | https://mcp.nuxt-backend.dev/mcp, with no sign-in | Docs MCP |
| Developer MCP server | doctor, the capabilities, the env, the catalog and the functions, the docs, and the Convex, Polar, Resend and Vercel consoles | A command of the CLI, which init wires into .mcp.json | Developer MCP server |
| Agent plugin | The skills and both MCP servers in one install | Claude Code's plugin manager | Agent 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; initthen 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.mdsectioninitwrites points agents at the skills insidenode_modules, the core first, and names the installed version. - After
npx nuxt-backend upgrade, runnpx 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. doctorwarns withagent-fileswhile 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.jsonand left to that CLI: reinstall the installed version's withnpx skills add ./node_modules/nuxt-backend/skills --skill '*' -y.
Let the agent check its work
npx nuxt-backend doctor --jsonprints 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 withnpx 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
initadds to.mcp.jsonanswersdoctor, 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
- It installs the package from one prompt, and runs the app on a dev deployment.
- It reads the rules first. The
AGENTS.mdsection points it at the core skill insidenode_modules, and the core names the task skill each change needs. - 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.
- It checks its own work with
doctor --json, the tests and the dev inbox. - 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
Developer MCP server
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.
Related
- Agent skills: every skill and what it holds.
- Agent files: what
initwrites for agents, and how it merges into files you have. - Docs for agents: everything this site serves to agents.
- Diagnose your setup with doctor: the checks the agent runs.
- Upgrade to a new version: the edit each release since
0.2.0asks for, with the names the upgrade skill carries.