Claude Cursor Skill

nitro

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.

LLM Mart · 0 points · 0 views 0 listing impressions 0 install-command copies
Download beginwithu-agent-skills-skills_nitro-a960304.zip · 32 KB

Install

skills CLI npx skills add https://github.com/beginwithu/agent-skills/tree/main/skills/nitro
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install beginwithu-agent-skills@llmmart
Git git clone https://github.com/beginwithu/agent-skills.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole beginwithu/agent-skills collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

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
Files (agent-skills)
  • references
    • advanced-migration.md 6.8 KB
      Loading…
    • core-assets.md 3.7 KB
      Loading…
    • core-cache.md 7.9 KB
      Loading…
    • core-configuration.md 5.7 KB
      Loading…
    • core-rendering.md 5 KB
      Loading…
    • core-routing.md 8.3 KB
      Loading…
    • core-storage.md 4.4 KB
      Loading…
    • deploy-presets.md 3.8 KB
      Loading…
    • features-database.md 3.5 KB
      Loading…
    • features-openapi.md 3.5 KB
      Loading…
    • features-plugins.md 3.9 KB
      Loading…
    • features-tasks.md 4 KB
      Loading…
    • features-websocket.md 3.8 KB
      Loading…
  • GENERATION.md 135 B
    Loading…
  • LICENSE 1.1 KB · in bundle
  • SKILL.md 3.7 KB
    ---
    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
      version: "2026.9.25"
      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](https://h3.dev) v2, [unstorage](https://unstorage.unjs.io), 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](references/advanced-migration.md) first.
    
    ## Core
    
    | Topic | Description | Reference |
    |-------|-------------|-----------|
    | Routing | File-based routes, `defineHandler`, params, middleware, route rules, errors | [core-routing](references/core-routing.md) |
    | Configuration | `nitro.config.ts`, `defineConfig`, key options, runtime config | [core-configuration](references/core-configuration.md) |
    | Storage | unstorage KV, mount points, drivers, dynamic mounts | [core-storage](references/core-storage.md) |
    | Cache | `defineCachedHandler`, `defineCachedFunction`, SWR, invalidation | [core-cache](references/core-cache.md) |
    | Assets | Public assets, compression, server assets via storage | [core-assets](references/core-assets.md) |
    | Rendering | Renderer (HTML/SSR), server entry, framework integration | [core-rendering](references/core-rendering.md) |
    
    ## Features
    
    | Topic | Description | Reference |
    |-------|-------------|-----------|
    | Plugins & Hooks | `definePlugin`, runtime lifecycle hooks, error capture | [features-plugins](references/features-plugins.md) |
    | Tasks | On-demand & scheduled (cron) tasks, `runTask` | [features-tasks](references/features-tasks.md) |
    | WebSocket & SSE | `defineWebSocketHandler`, pub/sub, namespaces, event streams | [features-websocket](references/features-websocket.md) |
    | Database | Built-in SQL layer via db0, `useDatabase`, connectors | [features-database](references/features-database.md) |
    | OpenAPI | Auto spec from `defineRouteMeta`, Scalar/Swagger UIs | [features-openapi](references/features-openapi.md) |
    
    ## Advanced / Deployment
    
    | Topic | Description | Reference |
    |-------|-------------|-----------|
    | Deployment Presets | Runtimes & providers, compatibility dates, platform integration | [deploy-presets](references/deploy-presets.md) |
    | v2 → v3 Migration | Package rename, `nitro/*` imports, H3 v2 API, preset changes | [advanced-migration](references/advanced-migration.md) |
    

Comments

Sign in to join the conversation.

No comments yet. Start the conversation.

Reviews (0)

No reviews yet.