This is your reference for building server-side features in Nuxt 4 with Nitro. It covers the file-based routing system for API endpoints, all the request/response utilities you'll actually use (getRouterParam, readBody, setCookie), and patterns for integrating databases like Cloudflare D1 with Drizzle ORM. The middleware examples show how to handle auth across routes, and there are practical snippets for CRUD operations and error handling. Load the database patterns reference when you're setting up migrations or complex queries, and the WebSocket reference if you need real-time features. It's comprehensive without being overwhelming, just the patterns you need to ship backend logic quickly.

skills.sh installs
415
GitHub stars
248
last updated
Aug 21, 2026

Install

$ npx -y skills add secondsky/claude-skills --skill nuxt-server --agent claude-code

Installs into .claude/skills of the current project.

Files

Nuxt 4 Server Development

Server routes, API patterns, and backend development with Nitro.

Quick Reference

File-Based Server Routes

server/
├── api/                      # API endpoints (/api/*)
│   ├── users/
│   │   ├── index.get.ts      → GET  /api/users
│   │   ├── index.post.ts     → POST /api/users
│   │   ├── [id].get.ts       → GET  /api/users/:id
│   │   ├── [id].put.ts       → PUT  /api/users/:id
│   │   └── [id].delete.ts    → DELETE /api/users/:id
│   └── health.get.ts         → GET  /api/health
├── routes/                   # Non-API routes
│   └── sitemap.xml.get.ts    → GET  /sitemap.xml
├── middleware/               # Server middleware
│   └── auth.ts               # Runs on every request
├── plugins/                  # Nitro plugins
│   └── database.ts           # Initialize database
└── utils/                    # Server utilities
    └── db.ts                 # Database helpers

HTTP Method Suffixes

SuffixHTTP Method
.get.tsGET
.post.tsPOST
.put.tsPUT
.patch.tsPATCH
.delete.tsDELETE
.tsAll methods

When to Load References

Sponsors

Details

Repository
github.com/secondsky/claude-skills
Categories
Frontend Development, Backend & APIs, Databases
First seen
Jun 3, 2026

More from secondsky/claude-skills

All 146
1davila7 avatarbackend-to-frontend-handoff-docsdavila7/claude-code-templatesCreate API handoff documentation for frontend developers. Use when backend work is complete and needs to be documented for frontend integration, or user says 'c413skills.sh installs
2ihlamury avatarairbnb-ui-skillsihlamury/design-skillsAirbnb's UI design system. Use when building interfaces inspired by Airbnb's aesthetic - light mode, Inter font, 4px grid.407skills.sh installs
3arjenschwarz avatarui-ux-reviewerarjenschwarz/agentic-codingEvaluate and improve user experience of interfaces (CLI, web, mobile)405skills.sh installs
4gonzalochale avatarviral-tiktok-hooksgonzalochale/skillsGenerates viral-style TikTok slide scripts with multiple formats, angles, and voices. Use this skill whenever someone asks for TikTok content, slide scripts, sh388skills.sh installs
5sickn33 avatarangular-state-managementsickn33/antigravity-awesome-skillsangular state management372skills.sh installs
6claudekit avatarfrontend-design-proclaudekit/frontend-design-pro-demoCreates jaw-dropping, production-ready frontend interfaces AND delivers perfectly matched real photos (Unsplash/Pexels direct links) OR flawless custom image-ge369skills.sh installs