In short.
The Nitro skill gives coding assistants and developers guidance for building Nitro servers, but its beta-specific instructions and internal contradictions require version-aware use. Its strongest material explains changes that older examples can miss: explicit imports, opt-in directory scanning, renamed storage APIs and changed cache defaults. The package includes 13 topic references and identifies its upstream source revision. Server-entry placement and legacy storage compatibility receive inconsistent descriptions. Runtime correctness, deployment compatibility and effects on assistant output remain untested.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete captured skills/nitro folder: SKILL.md, GENERATION.md and all 13 references covering migration, assets, caching, configuration, rendering, routing, storage, deployment, database access, OpenAPI, plugins, tasks and WebSockets/SSE. The repository-root LICENSE.md is included as the accompanying notice outside the selected folder. Other skills, generation scripts, the upstream Nitro implementation and linked documentation contents are excluded. No code, commands, examples, assistant integration or deployment was executed; compatibility, performance and runtime behavior remain untested.
The overview
identity
This is Anthony Fu's nitro skill in the antfu/skills repository. It packages Markdown guidance about Nitro, the server toolkit that powers Nuxt and also works independently. Applications still require the Nitro framework and their own dependencies.
The folder contains SKILL.md, GENERATION.md and 13 topic references. SKILL.md declares skill version 2026.9.25 and says its guidance is based on Nitro v3 beta 3.0.260903. The source folder is [https://github.com/antfu/skills/tree/main/skills/nitro].
assessment
The skill is useful as a focused reference for assistant-assisted Nitro v3 development, particularly when migrating code or correcting suggestions based on Nitro v2. Its examples connect configuration choices with implementation details such as imports, route discovery and cache persistence.
Its specificity also limits its reach. The documented beta must match the project's APIs, and the rendering reference contains contradictory server-entry advice. The supplied material establishes documentation depth, while correctness of generated code and gains in development productivity remain unassessed.
users
The clearest audience is developers asking a coding assistant to edit Nitro configuration, HTTP handlers, storage, caching or deployment settings. Developers moving from nitropack v2 have a dedicated migration reference.
Beginners receive short examples and explanations, but the material assumes familiarity with JavaScript or TypeScript, HTTP requests, environment variables and project files. Experienced developers get import paths, defaults and platform caveats. For a Nuxt project, establish its Nitro version before applying this v3 guidance; Nuxt-specific integration compatibility is not established.
capabilities
The guidance covers file-based routes, dynamic parameters, middleware, errors and route rules for caching, headers, redirects, proxies and CORS. It also explains configuration, runtime environment overrides, public and bundled assets, rendering, key-value storage and deployment presets.
Additional references explain startup plugins and lifecycle hooks, on-demand and scheduled tasks, SQL access through db0, OpenAPI generation, WebSockets and server-sent events. Tasks, database access and OpenAPI are marked experimental. The asset guide distinguishes public files from server-only bundled assets and documents build-time compression.
Using it
requirements
Using the folder as an assistant skill requires a host that can read SKILL.md and its relative reference files. Supported assistant products, installation commands, model requirements, context requirements and automatic activation behavior are not documented in the supplied files.
The application needs dependencies compatible with the documented Nitro v3 beta. The migration reference states a Node.js minimum of 20 for Node-based use. Building zstd-compressed public assets requires Node.js 22 or later. Storage drivers, SQL connectors and deployment targets introduce additional dependencies whose complete requirements are not supplied.
mechanism
SKILL.md acts as an index: it summarizes Nitro concepts and points to separate Markdown references for particular tasks. These files supply instructions and examples that an assistant can use as context. The captured folder contains documentation; its loading and retrieval behavior depends on the assistant host.
The documented framework uses H3 v2 request and response handling, builds file-based routes, exposes storage through unstorage and produces deployment-specific output through presets. These are described Nitro mechanisms, with no execution results supplied.
setup
Keep SKILL.md, GENERATION.md and the references directory together, with the accompanying licence notice. The files do not establish a host-specific skill installation procedure.
For the documented Nitro application layout, import defineConfig from nitro in nitro.config.ts and set serverDir to ./server before relying on scanned routes, middleware, plugins or tasks. Import runtime helpers explicitly. Enable experimental.tasks, experimental.database or experimental.openAPI when using those features, and features.websocket for WebSockets.
Choose the intended deployment preset and compatibilityDate. Declare runtime configuration keys before overriding them with NITRO_-prefixed environment variables. The configuration reference says built servers do not load .env files at runtime, so production values must come from the deployment environment.
example
The cache reference illustrates an API endpoint that fetches a repository's GitHub star count. It wraps the upstream request in defineCachedFunction, uses the repository name as the key and sets maxAge to 3600 seconds. A normal defineHandler calls that cached function.
This arrangement gives the cached function an invalidate method for removing an entry on demand. The reference recommends explicitly choosing both maxAge and swr, passing the request event first on edge workers when needed for background refresh, and configuring a persistent cache mount when entries must survive restarts. This is a documentation example; its behavior was not tested.
Assessment & evidence
limitations
The guidance targets a named Nitro v3 beta. Compatibility with other betas, stable releases, particular Nuxt versions or every listed deployment target is unknown. Experimental tasks, database and OpenAPI features require additional care when matching project versions.
The rendering reference contradicts itself: its main server-entry description says the handler runs only for requests without a matching route, while its closing summary calls it a global pre-routing handler that runs every request. This matters for authentication and logging. The routing reference identifies middleware as the mechanism that runs before route matching.
Legacy storage compatibility is also described inconsistently. The storage reference says old names remain as deprecated aliases, while the cache reference calls the storage configuration option removed. Verify compatibility against the installed framework. No executed application, benchmark or assistant-quality evaluation is supplied.
reasoning
The migration emphasis has practical value because older patterns conflict with the documented v3 defaults. Code needs explicit imports, and file-based routes need directory scanning enabled. The cache reference documents a one-second default lifetime, disabled stale-while-revalidate by default and in-memory storage unless persistence is configured.
These details help explain why seemingly familiar server code may need changes during migration. Separate topic references make those decisions easier to locate. Whether an assistant retrieves the right reference and applies it correctly remains unassessed.
alternatives
The references identify upstream Nitro documentation as a direct alternative for learning the APIs: migration [https://nitro.build/docs/migration], routing [https://nitro.build/docs/routing] and caching [https://nitro.build/docs/cache]. Consult documentation matching the installed release when resolving contradictions or working outside this beta.
Those linked pages' current contents are not included in the supplied evidence, so their present accuracy and coverage have not been assessed. No comparison with another assistant skill establishes a superior option.
evidence
The available snapshot covers all 15 selected Markdown files and the accompanying root LICENSE.md at antfu/skills revision d524ed287eef22757297827ce42e3cad88abd20c. The immutable folder location is [https://github.com/antfu/skills/tree/d524ed287eef22757297827ce42e3cad88abd20c/skills/nitro].
The material supplies explanations, code examples, generation provenance and licence terms. It does not include the Nitro implementation, an installed environment, execution logs, benchmarks or comparative assistant results. Links to upstream projects identify sources without independently establishing their current behavior.
Access & freshness
costs
The accompanying MIT notice grants permission to use and redistribute the material without a licence fee. Total operating cost is unknown.
The files provide no assistant subscription prices, model inference rates, token measurements, hosting prices or storage and database estimates. Deployment examples identify services and runtimes without establishing their charges.
rights
The accompanying repository LICENSE.md supplies MIT terms and credits Anthony Fu, 2025–present. It permits use, copying, modification, publication, distribution, sublicensing and sale, provided the copyright and permission notices remain in copies or substantial portions.
The material is provided without warranty. Rights for separately obtained framework packages, dependencies and linked documentation are not established by this notice. The captured licence is available at [https://raw.githubusercontent.com/antfu/skills/d524ed287eef22757297827ce42e3cad88abd20c/LICENSE.md].
freshness
GENERATION.md records generation on 2026-09-25 from sources/nitro at upstream Git SHA 076ef12947c6509b1cdd956d130a6c77209a1223. SKILL.md identifies the framework baseline as Nitro v3 beta 3.0.260903 and the skill version as 2026.9.25.
The repository snapshot was captured on 2026-11-16 at 05:08:41 UTC. These dates establish provenance; they do not establish compatibility with subsequent releases. Current Nitro release status and later changes to this skill are unknown.
actions
Before adopting the guidance, compare the project's Nitro version with the documented beta. Read the migration reference for older code, verify explicit imports and serverDir, and select a deployment preset and compatibility date appropriate to the target environment.
Resolve the server-entry contradiction against version-matched documentation before using it for request-wide behavior; the routing reference directs authentication logic to middleware. For caching, choose lifetime and revalidation explicitly, account for stripped query parameters, headers and cookies, and configure persistence when needed.
Validate affected routes, cache behavior and optional features in the intended runtime before deployment. Preserve the reference files, generation metadata and MIT notice when sharing the skill. Runtime behavior remains untested.
