nitro
Skill365 starsChanged 8 months agoApache-2.0View on GitHub
Build and deploy universal JavaScript servers with Nitro v3. Use when working with nitro.config.ts, defineNitroConfig, defineHandler, defineConfig, server.ts entry, filesystem routing, route rules, useStorage, defineCachedHandler, useDatabase, definePlugin, runtime hooks, Vercel/Cloudflare deployment, or migrating from Nitro v2/nitropack.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- antfu/skillstheir own version, first seen Sep 30, 2026
- onmax/nuxt-skillstheir own version, first seen Sep 18, 2026
- ElyzeSolutions/skillstheir own version, first seen Aug 6, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- antfu/skills★ 5.9ksame name
- onmax/nuxt-skills★ 717same name
- ElyzeSolutions/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository42 other files it gives its agents.
- AGENTS.mdAGENTS.md
- packages/docs/public/llms.txtllms.txt
- pi-agent-integrationSkill
- public-docsSkill
- slack-developmentSkill
- vercel-queuesSkill
- vercel-sandboxSkill
- example-bundle-helpSkill
- example-localSkill
- agent-browserSkill
- demo-videoSkill
- visual-web-qaSkill
- amplitudeSkill
- cloudflareSkill
- datadogSkill
- coding-workspace-fixtureSkill
- github-headless-pr-fixtureSkill
- eval-guardian-actionsSkill
- eval-authSkill
- eval-directorySkill
- eval-mcpSkill
- eval-oauthSkill
- eval-operationSkill
- incident-briefSkill
- resilient-working-directorySkill
- source-handbookSkill
- weather-lookupSkill
- github-codeSkill
- github-issuesSkill
- hexSkill
- linearSkill
- self-updateSkill
- notionSkill
- octolensSkill
- sentrySkill
- jr-rpcSkill
- eval-authSkill
- eval-mcp-openSkill
- ttsSkill
- vercelSkill
- junior-qaSkill
- juniorSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 1 is distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Import defineHandler from "nitro", not defineEventHandler (v2 API).
- Very specific: line 21
Import config helpers from subpaths: "nitro/config", "nitro/cache", "nitro/storage", "nitro/database", "nitro/runtime-config", …
- Very specific: line 22
Use web standard event.req (Request) for body/headers — not v2 utilities like readBody or getHeader.
- Distinctive: line 23
Never return from middleware unless intentionally terminating the request.
- Very specific: line 24
Only GET/HEAD requests are cached by defineCachedHandler.
- Very specific: line 26
Use "nitro" package name, not "nitropack" (v2).
- Very specific: line 40
Run nitro dev and verify routes respond correctly.
- Very specific: line 41
Run nitro build and check .output/server/ contains expected files.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Build, configure, and deploy Nitro v3 applications using correct APIs and patterns.
Step 1: Classify the request
| Request type | Read first |
| API surface, handler signatures, imports, config options | references/api-surface.md |
| Setup, routing, caching, storage, plugins, frameworks, common patterns | references/common-use-cases.md |
| Build failures, runtime errors, deployment issues, migration from v2 | references/troubleshooting-workarounds.md |
Load only the reference(s) matching the request. If the task spans categories, load relevant files.
Step 2: Apply core guardrails
- Import
defineHandlerfrom"nitro", notdefineEventHandler(v2 API). - Import config helpers from subpaths:
"nitro/config","nitro/cache","nitro/storage","nitro/database","nitro/runtime-config","nitro/types". - Use web standard
event.req(Request) for body/headers — not v2 utilities likereadBodyorgetHeader. - Never return from middleware unless intentionally terminating the request.
- Only
GET/HEADrequests are cached bydefineCachedHandler; other methods bypass automatically. useDatabaseanddefineTaskrequire experimental feature flags.- Use
"nitro"package name, not"nitropack"(v2).
Step 3: Implement
- For new projects, use
defineConfigfrom"nitro"innitro.config.tsor addnitro()plugin from"nitro/vite"tovite.config.ts. - For server entry, export a web-compatible
fetch(Request): Responsehandler fromserver.ts, or useserver.node.tsfor Express/Fastify. - For filesystem routes, place handlers in
routes/orapi/with[param]for dynamic segments and.get.ts/.post.tsfor method-specific routes. - For caching, use
defineCachedHandlerfrom"nitro/cache"withmaxAgeandswroptions. - For storage, use
useStorage(namespace)from"nitro/storage"and configure drivers viastorageconfig. - For plugins, create files in
plugins/directory usingdefinePluginand hook intorequest,response,error, orclose. - For deployment, set
presetin config or useNITRO_PRESETenv var; Vercel/Netlify/Cloudflare are auto-detected.
Step 4: Validate
- Run
nitro devand verify routes respond correctly. - Run
nitro buildand check.output/server/contains expected files. - For cached routes, verify cache headers (
etag,cache-control) and 304 responses. - For storage, verify data persists across requests with configured driver.
- For deployment, verify the preset produces correct output format.
Step 5: Troubleshoot
defineEventHandler is not defined→ usedefineHandlerfrom"nitro"(v3 API).Cannot find module 'nitropack'→ rename to"nitro"in imports and package.json.- Route not matched → check file is in
routes/orapi/, or verifyroutesconfig mapping. - Middleware returning responses unexpectedly → ensure middleware does not return a value.
- For detailed diagnostics, read
references/troubleshooting-workarounds.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

