Agent skill · software engineering · secondsky
nuxt-server
Nuxt 5 server-side development with Nitro v3, h3 v2, API routes, middleware, and database integration. Use when creating server routes, integrating D1/Drizzle, or migrating from Nitro v2.
Why this skill is useful
Provides specific API patterns and server-side development practices for Nuxt 5 that the AI wouldn't reliably generate on its own.
What it needs
Requires node installed locally. About 7k tokens when loaded. Last updated 2026-08-06. 204 stars on the source repository.
What this skill does
Nuxt 5 Server Development Server routes, API patterns, and backend development with Nitro v3. Use when: creating server API routes, implementing server middleware, integrating databases (D1, PostgreSQL, Drizzle), handling file uploads, migrating from Nitro v2/h3 v1 to Nitro v3/h3 v2, or building backend logic. Quick Reference Nuxt 5 Server API Changes (from Nuxt 4) Area Nuxt 4 (Nitro v2) Nuxt 5 (Nitro v3) ------ ------------------- ------------------- Package nitropack nitro h3 imports import { ... } from 'h3' import { ... } from 'nitro/h3' Error creation createError({statusCode}) new HTTPError({status}) Event path event.path event.url.pathname Event method event.method event.req.method Status code event.node.res.statusCode event.res.status Response headers setResponseHeader(event, ...) event.res.headers.set(...) Runtime config useRuntimeConfig(event) useRuntimeConfig() Route rules redirect statusCode status File-Based Server Routes HTTP Method Suffixes Suffix HTTP Method -------- ------------- .get.ts GET .post.ts POST .put.ts PUT .patch.ts PATCH .delete.ts DELETE .ts All methods When to Load References Load references/server.md when: Implementing complex API routes Handling authentication and sessions Working with cookies and headers Building file upload endpoints Migrating from h3 v1 to h3 v2 API Basic Event Handler Web Standard Event API (v5) Request Properties Response Properties Legacy Helpers Still Work The h3 v1 helper functions (auto-imported) still work for request reading: But for setting responses, prefer the Web Standard API: Error Handling (v5 Change) Server-Side: HTTPError In server routes, use HTTPError instead of createError: App-Side: createError (Unchanged) In the Vue part of your app (app/ directory), createError continues to work: Validation Errors Request Utilities URL Parameters Query Parameters Request Body Cookies Server Middleware Runtime Config (v5 Change) Database Integration Cloudflare D1 with Drizzle CRUD Operations File Uploads Server …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills secondsky/nuxt-server--7aa1bf