Agent skill

Nitro Server Toolkit

by antfu in antfu/skills

Reference for Nitro v3, the server toolkit behind Nuxt: file routing, route rules, caching, storage, tasks, websockets and deployment presets.

MITAuto-check passedBackend & APIs

Install Nitro Server Toolkit

skills CLI
$ npx skills add antfu/skills --skill nitro -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install antfu/skills nitro --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/antfu/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/nitro .claude/skills/nitro && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
nitro
GitHub stars
5.9k
Token cost
~948 tokens
SKILL.md length
290 words
Files
15 (incl. references)
Skills in repo
2
Repo updated
First seen
Licence
MIT

At a glance

Reference for Nitro v3, the server toolkit behind Nuxt: file routing, route rules, caching, storage, tasks, websockets and deployment presets.

  • Writing server routes and event handlers in a Nitro project
  • SKILL.md covers Core, Features and Advanced / Deployment
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Configuring route rules, caching or storage in nitro.config

What it does

Nitro builds one codebase into output for Node.js, Bun, Deno, Cloudflare, Vercel, Netlify and more, and runs on H3 v2 and unstorage. The skill lists its capabilities: filesystem routing with event handlers, route rules for caching, headers, redirects, proxying and CORS, a caching layer with stale-while-revalidate, runtime config overridable by `NITRO_*` variables, scheduled and on-demand tasks, WebSockets and server-sent events, a SQL database layer, OpenAPI docs, plugins with lifecycle hooks and custom renderers.

A notice flags the changes from the older `nitropack` v2: the package is now `nitro`, auto-imports are removed, directory scanning is opt-in through `serverDir`, `useStorage` became `useKV` with a `kv` config option, and cache SWR now defaults to off. Fifteen files in `references` cover routing, configuration, storage, cache, assets, rendering, plugins, tasks, websockets, database, OpenAPI, deploy presets and migration, with a migration page to read first when versions are unclear.

When your agent uses it

  • Writing server routes and event handlers in a Nitro project
  • Configuring route rules, caching or storage in nitro.config
  • Deploying a Nitro app to Cloudflare, Vercel or another preset
  • Migrating from nitropack v2 to Nitro v3

Example prompts

  • “Add a cached API route in Nitro that revalidates with SWR and set it up for Cloudflare.”
  • “Convert this nitropack v2 storage code to the v3 KV API.”
  • “Create a scheduled Nitro task that runs nightly and write its config.”

Requirements

  • Node.js, Bun or Deno with a Nitro v3 project

What it can do on your machine

Read from SKILL.md and the folder at commit e53a142. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • h3.dev
    • unstorage.unjs.io

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Nitro Server Toolkit loads about 948 tokens when it runs, and up to ~17k if it reads all its reference files. Until then it costs about 71 tokens; SKILL.md has 290 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~71
When it runs · the whole SKILL.md, loaded when a task matches
~948
With references · SKILL.md plus every file in references/, read only if the agent opens them
~17k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from antfu/skills at commit e53a142, republished under its MIT licence (© antfu). 290 words, ~948 tokens.

Download SKILL.mdSave it as .claude/skills/nitro/SKILL.md (or your agent's skills folder). This skill also uses 14 other files; get the full folder from GitHub.
name
nitro
description
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.
metadata.author
Anthony Fu
metadata.version
2026.9.25
metadata.source
Generated from https://github.com/nitrojs/nitro, scripts located at https://github.com/antfu/skills

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

TopicDescriptionReference
RoutingFile-based routes, defineHandler, params, middleware, route rules, errorscore-routing
Configurationnitro.config.ts, defineConfig, key options, runtime configcore-configuration
Storageunstorage KV, mount points, drivers, dynamic mountscore-storage
CachedefineCachedHandler, defineCachedFunction, SWR, invalidationcore-cache
AssetsPublic assets, compression, server assets via storagecore-assets
RenderingRenderer (HTML/SSR), server entry, framework integrationcore-rendering

Features

TopicDescriptionReference
Plugins & HooksdefinePlugin, runtime lifecycle hooks, error capturefeatures-plugins
TasksOn-demand & scheduled (cron) tasks, runTaskfeatures-tasks
WebSocket & SSEdefineWebSocketHandler, pub/sub, namespaces, event streamsfeatures-websocket
DatabaseBuilt-in SQL layer via db0, useDatabase, connectorsfeatures-database
OpenAPIAuto spec from defineRouteMeta, Scalar/Swagger UIsfeatures-openapi

Advanced / Deployment

TopicDescriptionReference
Deployment PresetsRuntimes & providers, compatibility dates, platform integrationdeploy-presets
v2 → v3 MigrationPackage rename, nitro/* imports, H3 v2 API, preset changesadvanced-migration

© antfu, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 14 other files (references) in skills/nitro of antfu/skills.

  • SKILL.md
  • GENERATION.md
  • references/advanced-migration.md
  • references/core-assets.md
  • references/core-cache.md
  • references/core-configuration.md
  • references/core-rendering.md
  • references/core-routing.md
  • references/core-storage.md
  • references/deploy-presets.md
  • references/features-database.md
  • references/features-openapi.md
  • references/features-plugins.md
  • references/features-tasks.md
  • references/features-websocket.md

Open the folder on GitHubat commit e53a142

Compare with similar skills

Nitro Server Toolkit next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Nitro Server Toolkit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Nitro Server Toolkit this skillantfu/skills5.9k—~948Automated safety check: PassMIT
Nuxt Productionsecondsky/claude-skills227—~3.3kAutomated safety check: NotesMIT
Nuxt Productionsecondsky/claude-skills227—~2.7kAutomated safety check: PassMIT
Golivemikehasa/golive-skill1.2k—~13kAutomated safety check: NotesMIT
Edge ComputingTheBeardedBearSAS/claude-craft107—~485Automated safety check: PassMIT
Vercel Functionsvercel/vercel-plugin301—~12kAutomated safety check: NotesCustom licence

Similar skills

  • Nuxt Production

    secondsky/claude-skills

    | Nuxt 4 production optimization: hydration, performance, testing with Vitest, deployment to Cloudflare/Vercel/Netlify, and v4 migration.

    227 GitHub stars~3.3k tokensUpdated 9 days ago
    Testing & QAAuto-check: notes
  • Nuxt Production

    secondsky/claude-skills

    | Nuxt 5 production optimization: hydration, performance, testing with Vitest, deployment to Cloudflare/Vercel/Netlify, and migration from Nuxt 4.

    227 GitHub stars~2.7k tokensUpdated 9 days ago
    Testing & QAAuto-check passed
  • Golive

    mikehasa/golive-skill

    Take an agent-written app from repo to live production on the user's OWN accounts, with providers they choose (hosting, database, auth, payments, email, domain/DNS).

    1.2k GitHub stars~13k tokensUpdated 3 days ago
    Backend & APIsAuto-check: notes
  • Edge Computing

    TheBeardedBearSAS/claude-craft

    Cloudflare Workers, Deno Deploy, Vercel Edge Functions, edge patterns (geo-routing, caching).

    107 GitHub stars~485 tokensUpdated 23 days ago
    Backend & APIsAuto-check passed
  • Vercel Functions

    vercel/vercel-plugin

    Official

    Vercel Functions expert guidance — Node.js/Bun/Python runtimes, Fluid Compute, long-duration (30 min) functions, large functions (5 GB bundles), Docker/OCI container images, plan limits, streaming…

    301 GitHub stars~12k tokensUpdated today
    Backend & APIsAuto-check: notes
  • Local opennext documentation reference (latest). An agent skill from olorehq/olore.

    103 GitHub stars~825 tokensUpdated today
    Backend & APIsAuto-check passed

More from antfu/skills

  • Publishes a GitHub PR for the checked-out branch with a Conventional Commits style title, a description backed by commands run, and screenshots when the UI changed.

    5.9k GitHub stars~1.2k tokensUpdated 7 days ago
    Auto-check passed

Categories

Questions about Nitro Server Toolkit

What does Nitro Server Toolkit do?

Reference for Nitro v3, the server toolkit behind Nuxt: file routing, route rules, caching, storage, tasks, websockets and deployment presets. js, Bun, Deno, Cloudflare, Vercel, Netlify and more, and runs on H3 v2 and unstorage. The skill lists its capabilities: filesystem routing with event handlers, route rules for caching, headers, redirects, proxying and CORS, a caching layer with stale-while-revalidate, runtime config overridable by `NITRO_*` variables, scheduled and on-demand tasks, WebSockets and server-sent events, a SQL database layer, OpenAPI docs, plugins with lifecycle hooks and custom renderers.

When should I use Nitro Server Toolkit?

Nitro Server Toolkit fits situations like: writing server routes and event handlers in a Nitro project; configuring route rules, caching or storage in nitro.config; deploying a Nitro app to Cloudflare, Vercel or another preset; migrating from nitropack v2 to Nitro v3.

How do I install Nitro Server Toolkit in Claude Code?

Run `npx skills add antfu/skills --skill nitro -a claude-code`. Or copy the skill folder (skills/nitro in antfu/skills) into .claude/skills/nitro in your project. Claude Code loads it when a task matches its description.

How do I install Nitro Server Toolkit in Codex?

Run `npx skills add antfu/skills --skill nitro -a codex`. Or copy the skill folder (skills/nitro in antfu/skills) into .agents/skills/nitro in your project. Codex loads it when a task matches its description.

Can I use Nitro Server Toolkit in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add antfu/skills --skill nitro -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/nitro, .gemini/skills/nitro, .github/skills/nitro and .opencode/skills/nitro in your project.

What does Nitro Server Toolkit need to run?

SKILL.md names no scripts, command-line tools or credentials: Nitro Server Toolkit is instructions for the agent only. Our summary lists: Node.js, Bun or Deno with a Nitro v3 project.

Does Nitro Server Toolkit access the network?

SKILL.md names 2 domains. As links in the text: h3.dev and unstorage.unjs.io. This is read from the text; nothing was executed.

Is Nitro Server Toolkit safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Nitro Server Toolkit use?

Nitro Server Toolkit is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Nitro Server Toolkit use?

About 948 tokens (SKILL.md is roughly 3.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 16k tokens, read only when the agent opens those files.

What are the alternatives to Nitro Server Toolkit?

Skills that share tags, products or a category with Nitro Server Toolkit: Nuxt Production (secondsky/claude-skills, 227 stars), Nuxt Production (secondsky/claude-skills, 227 stars), Golive (mikehasa/golive-skill, 1.2k stars) and Edge Computing (TheBeardedBearSAS/claude-craft, 107 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Nitro Server Toolkit?

antfu (a GitHub user) maintains it in antfu/skills, which has 5,943 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on September 30, 2026.

Source: antfu/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.