What problem does it solve?
This skill codifies conventions for building Web APIs in Adynato projects, aligning route handlers, middleware, authentication, validation, error handling, and consistent response formats for Next.js and Node.js backends.
Core Features & Use Cases
- Route handlers for Next.js App Router and API Routes with robust request handling.
- Validation with Zod for input schemas and query parameters.
- Authentication integration using NextAuth.js, session checks, and protected routes.
- Error handling patterns with standardized response shapes and a global API error wrapper.
- Database access through Prisma with PostgreSQL and typed inputs.
- Use Case: scaffold a secure API endpoint that lists users and supports creation with validation and auth.
Quick Start
Create a new API route under app/api/users/ and implement GET and POST using the patterns shown.