nitro

antfu/skills · Agent Skill

Nitro is the framework-agnostic server toolkit (powering Nuxt) for building and deploying web servers anywhere. Use when working with nitro.config, server routes/event handlers, route rules, caching, storage, tasks, websockets, or deploying to Node/Bun/Deno/Cloudflare/Vercel.

Jump to install ↓

Overview

PublisherantfuCommunity
Repositoryantfu/skills ↗
Skill foldernitro
Stars6,011
Forks338
Bundled files15
LicenseMIT
Last updatedOctober 23, 2026
LinksSkill source ↗ · Repository ↗

Mozgi check

What we found in the skill files. Details come with a subscription.

Security
low risk · no obvious risks found — the full report shows the details
Compatibility
needs extra software
Similar skills
139 similar skills found
Also with subscription

Installation

A skill is a folder with a SKILL.md file. Pick your agent and run the commands in a terminal (macOS, Linux or Git Bash on Windows) from your project root.

Copy the prompt into Claude, Codex or another assistant: it will review the skill and install it for you.

Install the “nitro” skill from mozgi.io (https://mozgi.io/skills/antfu-nitro/) for me.

1. Download the archive: https://mozgi.io/skills/antfu-nitro/download
   If it fails, take the skill folder from the source: https://github.com/antfu/skills/tree/main/skills/nitro
2. Read SKILL.md and the other files. Check the skill is safe: no hidden commands, no sending data elsewhere, no scripts doing something other than described. If anything looks suspicious, stop and tell me.
3. Put the “nitro” folder into your agent's skills folder: .claude/skills/ for Claude Code, .agents/skills/ for Codex, .cursor/skills/ for Cursor, .gemini/skills/ for Gemini CLI. Inside the project if we are in one, otherwise in the home folder (~/.claude/skills/ etc.).
4. Make sure <skills folder>/nitro/SKILL.md exists.
5. Briefly tell me what this skill does and offer to try it on my task.

If you cannot do a step yourself, tell me what to click or type.

Review the source files

15 files Download Zip

Read SKILL.md and any companion files before deciding whether to install. Click a file to preview it.

SKILL.md contents

Original author text · read-only

> The skill is based on Nitro v3 (beta, 3.0.260903), generated at 2026-09-25.

Nitro is a framework-agnostic, deployment-agnostic server toolkit powered by H3 ↗ v2, unstorage ↗, and Vite/Rolldown/Rollup. It powers Nuxt and works standalone. From one codebase it builds optimized output for Node.js, Bun, Deno, Cloudflare, Vercel, Netlify, and more.

Key capabilities:

  • Filesystem routing with H3 v2 event handlers, dynamic params, and method suffixes.
  • Route rules for declarative caching, headers, redirects, proxying, and CORS.
  • Caching layer (cached handlers/functions, SWR) on top of the unstorage KV layer.
  • Runtime config overridable via NITRO_* env vars.
  • Tasks (on-demand + scheduled/cron), WebSockets/SSE, a SQL database layer, and OpenAPI auto-docs.
  • Plugins & lifecycle hooks, custom renderer/server entry, and portable deployment presets.

> Key v3 changes (vs. nitropack v2): the package is renamed nitropack → nitro with H3 v2 (web-standard Request/Response); auto-imports are removed (import everything explicitly); directory scanning is opt-in via serverDir; useStorage → useKV (nitro/kv) and the storage config option → kv; cache swr now defaults to false. If unsure about v2-vs-v3 APIs, read advanced-migration ↗ first.

Core

| Topic | Description | Reference |

|-------|-------------|-----------|

| Routing | File-based routes, defineHandler, params, middleware, route rules, errors | core-routing ↗ |

| Configuration | nitro.config.ts, defineConfig, key options, runtime config | core-configuration ↗ |

| Storage | unstorage KV, mount points, drivers, dynamic mounts | core-storage ↗ |

| Cache | defineCachedHandler, defineCachedFunction, SWR, invalidation | core-cache ↗ |

| Assets | Public assets, compression, server assets via storage | core-assets ↗ |

| Rendering | Renderer (HTML/SSR), server entry, framework integration | core-rendering ↗ |

Features

| Topic | Description | Reference |

|-------|-------------|-----------|

| Plugins & Hooks | definePlugin, runtime lifecycle hooks, error capture | features-plugins ↗ |

| Tasks | On-demand & scheduled (cron) tasks, runTask | features-tasks ↗ |

| WebSocket & SSE | defineWebSocketHandler, pub/sub, namespaces, event streams | features-websocket ↗ |

| Database | Built-in SQL layer via db0, useDatabase, connectors | features-database ↗ |

| OpenAPI | Auto spec from defineRouteMeta, Scalar/Swagger UIs | features-openapi ↗ |

Advanced / Deployment

| Topic | Description | Reference |

|-------|-------------|-----------|

| Deployment Presets | Runtimes & providers, compatibility dates, platform integration | deploy-presets ↗ |

| v2 → v3 Migration | Package rename, nitro/* imports, H3 v2 API, preset changes | advanced-migration ↗ |

Frequently asked questions

What does the nitro skill do?

Nitro is the framework-agnostic server toolkit (powering Nuxt) for building and deploying web servers anywhere. Use when working with nitro.config, server routes/event handlers, route rules, caching, storage, tasks, websockets, or deploying to Node/Bun/Deno/Cloudflare/Vercel.

How do I install nitro?

Open the “Installation” block on this page and pick your agent — Claude Code, Codex, Cursor or Gemini CLI — for ready-made commands that copy the skill folder to the right place. Or copy the prompt from the “Via assistant” tab and let the assistant review and install the skill.

Which AI models work with nitro?

Skills are plain Markdown instructions (the Agent Skills format), so nitro works with any agent that reads SKILL.md: Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and more. The model loads the instructions only when a task matches the skill's description.

Is nitro free?

The skill is published openly by antfu under the MIT license. The skill itself costs nothing — you only pay your AI provider for the tokens you use.

Is it safe to install skills?

A skill is a set of instructions your agent will follow, so read SKILL.md and its companion files before installing. Scripts in the skill folder only run if your agent runs them — keep an eye on what it does and do not grant unnecessary permissions.

How is a skill different from an MCP server or a plugin?

An MCP server or plugin gives the model new tools — code that runs and returns a result. A skill gives it knowledge and process: how to approach a task, which steps to follow and what good output looks like. It needs no server or API key.

Related skills

All skills →