Agent skill · software engineering · secondsky
nuxt-server
| Nuxt 4 server-side development with Nitro: API routes, server middleware, database integration, and backend patterns. Use when: creating server API routes, implementing server middleware, integrating databases (D1, PostgreSQL, Drizzle), handling file uploads, implementing WebSockets, or building backend logic with Nitro.
Why this skill is useful
Provides specific patterns and utilities for server-side development with Nuxt 4 that the AI wouldn't reliably generate on its own.
What it needs
Requires node installed locally. About 6k tokens when loaded. Last updated 2026-08-06. 204 stars on the source repository.
What this skill does
Nuxt 4 Server Development Server routes, API patterns, and backend development with Nitro. Quick Reference 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 Understanding Nitro internals Load references/database-patterns.md when: Integrating Cloudflare D1 with Drizzle Setting up PostgreSQL connections Implementing database migrations Building query patterns Load references/websocket-patterns.md when: Implementing real-time features Building WebSocket endpoints Using Durable Objects for state Basic Event Handler Request Utilities URL Parameters Query Parameters Request Body Headers Response Utilities Setting Status Code Redirects Error Handling Cookies Server Middleware Accessing Context in Routes Database Integration Cloudflare D1 with Drizzle Schema Definition CRUD Operations Validation with Zod File Uploads Server Utilities Common Anti-Patterns Missing Method Suffix Not Throwing Errors Forgetting Async/Await Troubleshooting 404 on API Routes: Ensure file is in server/api/ (not app/api/) Check method suffix matches request (.get.ts for GET) Verify file extension is .ts Body is Empty: Ensure await readBody(event) not readBody(event) Check Content-Type header is set correctly For multipart, use readMultipartFormData Middleware Not Running: Check file is in server/middleware/ Middleware runs for ALL requests unless filtered D1 Binding Not Found: Check wrangler.toml has [[d1databases]] configured Access via event.context.cloudflare.env.DB Related Skills nuxt-core: Project setup, routing, configuration nuxt-data: Composables, data fetching, state nuxt-production: Performance, testing, deployment cloudflare-d1: D1 database patterns --- Version: 4.0.0 Last Update …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills secondsky/nuxt-server