Skip to content
Skill

Nitro API development

Guides an agent to build Nitro v3 and H3 server APIs with CRUD and Drizzle ORM

Nitro API development is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
TypeScript
Platforms
Claude Code, Codex, Cursor
GitHub stars
5
Last commit
License
MIT
Listing updated

Similar skills

About Nitro API development

This skill walks an agent through standing up server APIs with Nitro v3 and H3, covering both a standalone backend project and adding full-stack server routes to an existing Vite app. It sets out conventions for handlers, including wrapping logic in try-catch and returning responses typed against a shared ApiResponse and PageData structure, along with date formatting handled in the API layer.

The skill also covers project setup: deciding whether a repo is a Vite full-stack project or a pure Nitro API before editing configuration, setting serverDir so routes get bundled, enabling OpenAPI with a Scalar docs page, and adding Cloudflare or Vercel deployment settings. Database guidance centres on Drizzle ORM, with the connection obtained per request rather than at module scope, plus notes on migrating away from mock JSON data.

The workflow relies on TypeScript and typical Node tooling such as pnpm, optional Zod validation and Vitest tests. Reference templates for types, date helpers and common pitfalls are bundled alongside the instructions.

When your agent uses it

使用 Nitro v3 框架和 H3 编写服务端 API 的技能。适用于初始化纯后端 Nitro 项目、 为 Vite 项目赋予全栈能力、编写符合规范的 CRUD 接口、以及使用 Drizzle ORM 进行数据库交互。当需要开发新的 Nitro 接口、初始化 Nitro 配置、 或咨询 Nitro 开发规范时使用此技能。

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 13 files (86 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the dev-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add ruan-cat/monorepo
/plugin install dev-skills@ruan-cat-tools

Or copy only this skill to ~/.claude/skills/nitro-api-development:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/nitro-api-development &&
cp -R "$tmp/ai-plugins/dev-skills/skills/nitro-api-development" ~/.claude/skills/nitro-api-development &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/nitro-api-development inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/nitro-api-development to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/nitro-api-development &&
cp -R "$tmp/ai-plugins/dev-skills/skills/nitro-api-development" ~/.agents/skills/nitro-api-development &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/nitro-api-development inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/nitro-api-development to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/nitro-api-development &&
cp -R "$tmp/ai-plugins/dev-skills/skills/nitro-api-development" ~/.cursor/skills/nitro-api-development &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/nitro-api-development inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/ruan-cat/monorepo.git --path ai-plugins/dev-skills/skills/nitro-api-development

Or copy the folder to ~/.gemini/skills/nitro-api-development yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/nitro-api-development:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/nitro-api-development &&
cp -R "$tmp/ai-plugins/dev-skills/skills/nitro-api-development" ~/.copilot/skills/nitro-api-development &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/nitro-api-development inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/ruan-cat/monorepo.git

Then copy monorepo/ai-plugins/dev-skills/skills/nitro-api-development into your agent's skills folder as nitro-api-development. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Nitro and H3 handlers
Shows how to define route handlers with defineHandler and the correct H3 imports.
Standard response typing
Requires responses to be annotated against shared ApiResponse and PageData types.
Project type detection
Helps choose between a Vite full-stack setup and a pure Nitro API configuration.
Nitro configuration templates
Provides a full nitro.config.ts with OpenAPI, Scalar docs and serverDir settings.
Drizzle database access
Explains per-request database connections and schema setup with Drizzle ORM.
Cloudflare and Vercel deployment
Covers platform environment variable access and deployment config snippets.

Good for

  • Set up a new pure backend API project with Nitro v3
  • Add server routes to an existing Vite app
  • Write a CRUD endpoint with typed list and detail responses
  • Migrate mock JSON endpoints to a Drizzle database
  • Configure OpenAPI docs and Scalar UI for a Nitro API
  • Fix a Cloudflare Worker database connection issue

Nitro API development FAQ

Which Nitro version does Nitro API development target?

It targets Nitro v3 and H3, using defineHandler rather than defineEventHandler.

Does Nitro API development need a particular database?

It recommends Drizzle ORM for all database work and includes connection guidance for Cloudflare Workers and Vercel.

Will Nitro API development change my project configuration?

It guides creating or editing nitro.config.ts and package.json scripts, but only after checking whether the project is a Vite full-stack or pure Nitro API setup.

How do I install Nitro API development in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/nitro-api-development to use it in all your projects, or to .claude/skills/nitro-api-development in one project. Or install the dev-skills plugin, which includes it: /plugin marketplace add ruan-cat/monorepo, then /plugin install dev-skills@ruan-cat-tools.

Does Nitro API development run scripts?

Yes. It runs TypeScript scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Nitro API development?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Nitro API development?

The closest alternatives to Nitro API development are Nuxt, API integration, React frontend, Build tooling and Use vercel deploy in monorepo.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from ruan-cat/monorepo

  1. Works through an OpenSpec change's task list, implementing and checking off each task

    • Open source
    • 5 GitHub stars
    • Developer tools
  2. Finalizes a completed OpenSpec change, syncing its specs and moving it to the archive

    • Open source
    • 5 GitHub stars
    • Developer tools
  3. Generates all OpenSpec planning artifacts for a change in one pass

    • Open source
    • 5 GitHub stars
    • Developer tools
  4. Starts a new OpenSpec change and shows its first artifact template for review

    • Open source
    • 5 GitHub stars
    • Developer tools
  5. Checks and normalizes package.json, tsup and tsconfig setup for monorepo Node packages

    • Open source
    • 5 GitHub stars
    • Developer tools
  6. Turns incident reports and repeated failures into durable, verifiable agent skill rules

    • Open source
    • 5 GitHub stars
    • Developer tools